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: Why doesn't <xsl:for-each select="*[position()&lt;last( )] work?


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


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