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]
Other format: [Raw text]

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


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