[Bug 1308] proposal: merge xsl:perform-sort and xsl:sequence

http://www.w3.org/Bugs/Public/show_bug.cgi?id=1308





------- Additional Comments From mike@saxonica.com  2005-05-13 18:19 -------
We discussed this on 12 May without coming to a firm conclusion: the outstanding
technical question was what we should do about an xsl:perform-sort instruction
containing a sequence constructor (which is allowed by xsl:perform-sort but not
by xsl:sequence). 

I suggested during the telcon that

<xsl:perform-sort>
  <xsl:sort select="..."/>
  <instructions>...
</xsl:perform-sort>

is equivalent to

<xsl:for-each select=".">
  <xsl:sort select="..."/>
  <instructions>...
</xsl:perform-sort>

but I was wrong: the second case computes sort keys from the input sequence (.),
not from the output sequence.

I think my instinct now is to leave it alone. It ain't broke, and fixing things
that ain't broke during the end game always risks introducing bugs.

Michael Kay

Received on Friday, 13 May 2005 18:19:21 UTC