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

Re: Attribute Order

canonical xml attribute order
In a message dated 07/12/01 21:06:09 GMT Standard Time, Mike.Champion@S... writes:

> If there are attribute sequence *requirements* then I don't think the
document is XML,
> although it may be similar in all other respects. By definition, in XML,
attribute order
> is not important.  

That's a bit strong ... the data is XML if it's syntactically well-formed.
The problem is simply that application is not going to interoperate cleanly
with other XML applications if it takes advantage of syntactic structures
that aren't guaranteed to be preserved by an XML parser or the InfoSet.   In
other words, the application is fragile, but it's not illegal. You're not
breaking the rules of XML by treating attribute order as significant, you're
just relying on the behavior of some tool rather than the behavior specified
in the XML contract.


I was right and I was wrong. :)

If attribute order is specified it may be "XML" if it is Canonical XML.

We agree, I think, that the practical implication is that attribute ordering other than in the very specific setting of Canonical XML is inadvisable.

Andrew Watt


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.
First Name
Last Name
Subscribe in XML format
RSS 2.0
Atom 0.3

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.

Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

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.