John Li wrote:
Hi,
When exporting one node and its attribute, I want to sort its attributes
lexicographic. I try it as below but always fail. Anyone could help?
XML attributes have no notion of order -- attributes are just a set of
name--value mappings.
<x foo="a" bar="b"/> <x bar="b" foo="a"/> are indistinguishable.
(but if you need to control the serialization order od attributes, for
the matter or appearance, you could tweak the serializer class(es) of
some open source DOM library, then just parse and serialize back the
documents).
Soren
--~------------------------------------------------------------------
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>
--~--