Re: [xsl] Grouping upon various attribute values

Subject: Re: [xsl] Grouping upon various attribute values
From: "andrew welch" <andrew.j.welch@xxxxxxxxx>
Date: Wed, 16 Aug 2006 16:02:46 +0100
On 8/16/06, David Carlisle <davidc@xxxxxxxxx> wrote:

> Changing the read technique mid-transform would be a bit strange, even
> if it was conformant

It wouldn't be conformant.
document order of attribute nodes is stable and well defined, given an
input tree. What isn't defined is how the nodes are ordered in an input
tree, given the XML document markup. So once teh document has been
parsed, attribute order is just as fixed as eleemnt order.

Yes, but I'm not thinking clearly at the moment -

<foo a="a" b="b"/>


<foo b="b" a="a"/>

are semantically equivalent but the result of string-join(@*,'-')
would (I think, most of the time) be different, so it really depends
on the consistency of the ordering in the on-disk version, and the
order in which the XML parser reports the attributes.

It's good to know though that once parsed the order is fixed.

Current Thread