This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: position()=1 (was: RE: Dynamic creation of frames & the data within)
- To: xsl-list at lists dot mulberrytech dot com
- Subject: Re: position()=1 (was: RE: [xsl] Dynamic creation of frames & the data within)
- From: Oliver Becker <obecker at informatik dot hu-berlin dot de>
- Date: Fri, 29 Dec 2000 09:51:02 +0100 (MET)
- Reply-To: xsl-list at lists dot mulberrytech dot com
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