[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: Re: . in for
Jeni Tennison: > - I think that users of XSLT will find it confusing that they have > two choices for iterating over a sequence - a for expression or an > xsl:for-each instruction - and will unadvisedly choose to use a for > expression, which is not as extensible as xsl:for-each (you can't > add sorting, can't assign variables, can't change to applying > templates rather than iterating if you start with a for > expression). Yes, it will be a bit confusing that there are two ways of doing it. But I don't think you're right about the limitations of the XPath "for" expression. You can do sorting using the new sort() function defined in XSLT 2.0, and you can switch back into XSLT (e.g. to do apply-templates) by calling a stylesheet function. Mike Kay XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|