[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: How to sort attribute?

Subject: Re: How to sort attribute?
From: Soren Kuula <dongfang@xxxxxxxxxxx>
Date: Mon, 15 Aug 2005 13:05:48 +0200
xml attributes sort serializer
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

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.