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

Attribute Order

  • From: Arjun Ray <arjun.ray@verizon.net>
  • To: "xml-dev@lists.xml.org" <xml-dev@lists.xml.org>
  • Date: Tue, 25 Mar 2014 00:02:54 -0400

Attribute Order
On Mon, 24 Mar 2014 22:49:26 -0400, Michael Sokolov
<msokolov@safaribooksonline.com> wrote:

| In general hashmaps do not preserve insertion order, so it may be
| that this was a rationale for discarding the order of attributes.

Actually, the order of attributes was _never_ a concern. 

SAX was invented/developed on this mailing list, back in 1997-98. The
early discussions were aimed at finding common ground between the
Aelfred and Lark parsers, both of which were implemented in Java.

One of the features decided upon quite early, in the overall context
of a "callback" or "push parser" framework, was that the attributes in
a start-tag would be presented as a collection to the app layer in the
start_element() notification, rather than individually. A dictionary
style interface would then allow the app to interrogate the attributes
it needed to know about, in an order that made logical sense at the
app level.  See for example:

	http://lists.xml.org/archives/xml-dev/199712/msg00232.html	

Going further back, one would have to know that the first cuts at XML
APIs were based - for reasons that may not be obvious today - on prior
experience with SGML APIs.  And here, the canonical exemplar was the
implementation of an adjunct of ISO 8879 (thr SGML standard) called
ESIS ("Element Structure Information Set") in James Clark's sgmls and
nsgmls parsers. 

	http://www.jclark.com/sp/sgmlsout.htm


The "official" spec for ESIS 

	http://xml.coverpages.org/WG8-n931a.html

did not consider attribute order significant, and so it has been - or
rather, not been - ever since.
	


[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]


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
 

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.