xsl-list
[Top] [All Lists]

Re: [xsl] Re: position last and attributes

2012-09-26 06:29:07
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:

http://www.w3.org/TR/xpath-datamodel/#document-order

"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
http://andrewjwelch.com

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

<Prev in Thread] Current Thread [Next in Thread>