[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

Re: [xsl] Re: position last and attributes

Subject: Re: [xsl] Re: position last and attributes
From: Andrew Welch <andrew.j.welch@xxxxxxxxx>
Date: Wed, 26 Sep 2012 12:28:54 +0100

> the specification doesn't guarantee that ../@* is in the same order of
> the node-set returned by @* when the apply-templates was done.

> Or have I got that wrong.

Yep, document order is consistent:


"Attribute Nodes immediately follow the Namespace Nodes of the element
with which they are associated. If there are no Namespace Nodes
associated with a given element, then the Attribute Nodes associated
with that element immediately follow the element. **The relative order
of Attribute Nodes is stable but implementation-dependent**."

(I added the **)

Andrew Welch

Current Thread