[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: Re: . in for

Subject: RE: Re: . in for
From: "Michael Kay" <michael.h.kay@xxxxxxxxxxxx>
Date: Sat, 5 Jan 2002 18:23:54 -0000
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


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.