[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: "John Li" <johnli121@xxxxxxx>
Date: Mon, 15 Aug 2005 10:22:46 +0800
john li
Hi Michael,

I implement a parser of one XML related spec. In it, it defines the  format
of output file clearly.

"... ... is canonical in the sense that within each child element of the
root, the attributes are sorted lexicographically, and then those elements
are sorted lexicographically with respect to the element names and attribute
values."

If xerces or xalan cannot do it, that will be a big trouble for me.

Thanks,
John

-----Original Message-----
From: xsl-list-return-19570-johnli121=163.com@xxxxxxxxxxxxxxxxxxxxxx
[mailto:xsl-list-return-19570-johnli121=163.com@xxxxxxxxxxxxxxxxxxxxxx] On
Behalf Of Michael Kay
Sent: Monday, August 15, 2005 5:14 AM
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject: RE:  How to sort attribute?

> I cannot accept to transform attribute to element. What I want is sort 
> the attribute lexicographic.

It would be interesting to know *why* you want to do this.

Is it just for the comfort and convenience of the human reader (an
acceptable reason, though I fear you will be disappointed), or is it because
you are sending the XML to a software application that requires the
attributes to be in a particular order (an unacceptable reason)?

Michael Kay
http://www.saxonica.com/

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.