Hello,
when using IDREFS and the id function, the returned NodeSet is
always sorted by the IDs and not (as expected) by the position in the IDREFS string.
Example:
XML-Fragment:
("ids" is defined as IDREFS, "id" is defined as ID)
<item id="_01" />
<item id="_02" />
<item id="_03" />
<list ids="_01 _03 _02"/>
Using:
<xsl:template match="list">
<xsl:for-each select="id(@ids)">
<xsl:value-of select="@id" />,
</xsl:for-each>
</xsl:template>
will output:
_01, _02, _03
What I expect is:
_01, _03, _02
Now I've got 2 questions:
1) Is this a bug or a feature? I didn't found something about that
in the XSLT rec.
2) How can I sort the IDs in the order I expect?
Cheers!
jens
____________________________________________________________
Jens von Pilgrim
4flow AG
Berlin, Germany
