[
Lists Home |
Date Index |
Thread Index
]
- From: David Megginson <ak117@freenet.carleton.ca>
- To: xml-dev@ic.ac.uk
- Date: Sun, 4 Jan 1998 20:13:10 -0500
Sean Mc Grath writes:
> Annex G of the SGML handbook just says the order is insignificant. However,
> nsgmls ESIS supplies then in declaration order and I for one have written
> apps that relied on that. Perhaps writing apps that rely on a specific
> order of attribute event arrival is just plain bad design!
The order of attributes should never be significant (how would you
deal with defaulted attribute values?) -- perhaps making this point
explicit would be a good minor change for the PR (Tim?).
> Anyway, the dictionary approach, supplying all the attributes in one go
> side-steps buffering and state space for simple little SAX apps. that want
> to pick
> up attributes X and Y of element Z and nothing else.
>
> While on this subject, what comes first, a start-tag event or its attribute
> event(s)?
I prefer to put the attributes first, so that all the information will
have been delivered by the time the startElement event arrives.
All the best,
David
--
David Megginson ak117@freenet.carleton.ca
Microstar Software Ltd. dmeggins@microstar.com
http://home.sprynet.com/sprynet/dmeggins/
xml-dev: A list for W3C XML Developers. To post, mailto:xml-dev@ic.ac.uk
Archived as: http://www.lists.ic.ac.uk/hypermail/xml-dev/
To (un)subscribe, mailto:majordomo@ic.ac.uk the following message;
(un)subscribe xml-dev
To subscribe to the digests, mailto:majordomo@ic.ac.uk the following message;
subscribe xml-dev-digest
List coordinator, Henry Rzepa (mailto:rzepa@ic.ac.uk)
|