Attribute defaulting to element NS may cause problems (was: Re: SAX2 NS processing (was Re: Namespace question))

Stefan Haustein haustein at ls8.cs.uni-dortmund.de
Fri Jan 7 15:25:56 GMT 2000


If attributes are defaulted to the element's namespace in SAX, 
and you build a DOM tree of the parser output, access to 
unprefixed attributes will be unclear in DOM:

call getAttributeNS (null, ....) or getAttributeNS (elementNS, ....) ?

Also, a DOM writer that follows the namespace spec, would add 
prefixes to all unprefixed attributes (!!)

Thus, either the namespace specification should be simplified or
unprefixed attributes should not default to the element's namespace.

Best regards

Stefan

xml-dev: A list for W3C XML Developers. To post, mailto:xml-dev at ic.ac.uk
Archived as: http://www.lists.ic.ac.uk/hypermail/xml-dev/ and on CD-ROM/ISBN 981-02-3594-1
To unsubscribe, mailto:majordomo at ic.ac.uk the following message;
unsubscribe xml-dev
To subscribe to the digests, mailto:majordomo at ic.ac.uk the following message;
subscribe xml-dev-digest
List coordinator, Henry Rzepa (mailto:rzepa at ic.ac.uk)





More information about the Xml-dev mailing list