OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.


Help: OASIS Mailing Lists Help | MarkMail Help



   Attribute defaulting to element NS may cause problems (was: Re: SAX2 NS

[ Lists Home | Date Index | Thread Index ]
  • From: Stefan Haustein <haustein@ls8.cs.uni-dortmund.de>
  • To: james anderson <James.Anderson@mecomnet.de>
  • Date: Fri, 07 Jan 2000 16:25:22 +0100

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


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/ and on CD-ROM/ISBN 981-02-3594-1
To unsubscribe, mailto:majordomo@ic.ac.uk the following message;
unsubscribe 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)

  • Follow-Ups:


News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 2001 XML.org. This site is hosted by OASIS