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

Subject: Re: position()=1 (was: RE: [xsl] Dynamic creation of frames & the data within)
From: Oliver Becker <obecker@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Fri, 29 Dec 2000 09:51:02 +0100 (MET)
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@xxxxxxxxxxxxxxxxxxxxxxx             |
|  op|qo        WWW:    http://www.informatik.hu-berlin.de/~obecker |
\-------------------------------------------------------------------/

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


Current Thread