RE: [xsl] Why doesn't <xsl:for-each select="*[position()&lt;last( )] work?

Subject: RE: [xsl] Why doesn't <xsl:for-each select="*[position()&lt;last( )] work?
From: "Crowers, Steve" <scrowers@xxxxxxxxxxxx>
Date: Mon, 13 Aug 2001 10:08:50 -0400
I get the following outputs.

Xalan:

	Jeff/555-1234/555-4321/lightgrey&#13;
	David/383-1234/383-4321/lightblue&#13;
	Roger/888-1234/888-4321/lightyellow&#13;

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>&#xD;&#xA;</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


Current Thread