This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: Why doesn't <xsl:for-each select="*[position()<last( )] work?
- To: xsl-list at lists dot mulberrytech dot com
- Subject: RE: [xsl] Why doesn't <xsl:for-each select="*[position()<last( )] work?
- From: "Crowers, Steve" <scrowers at liberate dot com>
- Date: Mon, 13 Aug 2001 10:08:50 -0400
- Reply-To: xsl-list at lists dot mulberrytech dot com
I get the following outputs.
Xalan:
Jeff/555-1234/555-4321/lightgrey
David/383-1234/383-4321/lightblue
Roger/888-1234/888-4321/lightyellow
MSXML:
Jeff/555-1234/555-4321/lightgrey
David/383-1234/383-4321/lightblue
Roger/888-1234/888-4321/lightyellow
I'm not sure why this isn't working for you. It may be a bug in Cocoon's
position() function. I don't have Cocoon here, but you might want to try
playing around with the predicate and see.
Also, the <xsl:text>
</xsl:text> node inserts
carriage-return/line-feed characters, which are usually stripped by a
browser, so <br/> is probably more appropriate for your environment.
hope this helps some...
-Steve Crowers
"The good Lord sets definite limits on man's wisdom but sets no limits on
his stupidity -- and that's just not fair." --Konrad Adenauer, German
Chancellor
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list