W3C home > Mailing lists > Public > public-qt-comments@w3.org > April 2004

[XSLT2.0] variable preceding sort in for-each

From: Bjoern Hoehrmann <derhoermi@gmx.net>
Date: Fri, 16 Apr 2004 18:09:00 +0200
To: public-qt-comments@w3.org
Message-ID: <40800320.126023221@smtp.bjoern.hoehrmann.de>

Hi,

  Some XSLT 2.0 constructs like xsl:for-each allow xsl:sort* in their
content model, it is however defined that no other xsl:* elements may
precede xsl:sort in these cases. It happens that you want to use sort
expression later in the body of the respective construct and would thus
like to assign it to a variable,

  <xsl:for-each ...>
    <xsl:variable ... />
    <xsl:sort ... />
    ...

which is not allowed, which is rather counter-intuitive. Please allow
xsl:variable to precede xsl:sort in xsl:for-each and xsl:for-each-group
(maybe others I did not check whether it makes sense anywhere else too).

regards.
Received on Friday, 16 April 2004 12:09:23 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 15:45:19 UTC