On 20/09/2012 19:16, John P. McCaskey wrote:
Right now, I'm just guessing that the processor will use document order,
Bad choice of wording really as the processor _has_ to use "document
order" for attribute nodes, just as for any other node. That is a
defined term in the relevant specifications.
It is not (in the case of attributes) necessarily the same as the order
that the attribute markup appears in the document (if there was a
document that was parsed to produce the XDM tree, which is not
necessarily the case).
Whether the document markup order is preserved tends to depend on the
parser being used rather that the xslt processor. Some parsers implement
things by putting attributes into a hash table or similar structure
associated with the start tag and if they do that then order isn't
preserved.
David
--
google plus: https:/profiles.google.com/d.p.carlisle
--~------------------------------------------------------------------
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>
--~--