xsl-list
[Top] [All Lists]

Re: [xsl] Grouping upon various attribute values

2006-08-16 08:04:01
On 8/16/06, David Carlisle <davidc(_at_)nag(_dot_)co(_dot_)uk> 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"/>

and

<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.

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--