This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: position()=1 (was: RE: Dynamic creation of frames & the data within)


Jonathan,

> I am trying to use the following statement on my XSL file.
> 
> 	<xsl:if test="answer[position() = 1]">
> 
> And Internet Explorer 5.5 returns this:
> 
> 	Unknown method. answer[-->position()<-- = 1]

aside from using an old thread and most probably an out-of-date 
msxml.dll -- what are you trying to achieve?
Your test is saying: among the answer children of the context node, is
there one at position 1? This is the same as: are there answer children
at all?
So your test can be written simpler
   <xsl:if test="answer">

Best regards,
Oliver

/-------------------------------------------------------------------\
|  ob|do        Dipl.Inf. Oliver Becker                             |
|  --+--        E-Mail: obecker@informatik.hu-berlin.de             |
|  op|qo        WWW:    http://www.informatik.hu-berlin.de/~obecker |
\-------------------------------------------------------------------/

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]