W3C home > Mailing lists > Public > www-dom@w3.org > October to December 2001

Re: default attributes and namespaces

From: Joseph Kesselman <keshlam@us.ibm.com>
Date: Mon, 29 Oct 2001 10:41:51 -0500
To: www-dom@w3.org
Message-ID: <OFEF4423EC.28645D0D-ON85256AF4.0055DB74@pok.ibm.com>

This is an XML processing question more than a DOM question. In brief, DTDs
do not support namespaces nor vice versa.

DTDs are not namespace-aware. Period. They match on the full qualified
name. If you're using DTDs to set up your default attributes, a default for
attribute foo:bar is applied to all attributes with exactly that name, and
only those attributes, no matter what namespace foo: is bound to.

If you don't like that answer, find a processor that supports the XML
Schema language and rewrite your document type description into that format
rather than using the old DTD syntax. Defaults set in the XML Schema are
applied on a namespace-aware basis, matching the localname and namespace
URI rather than the qname.

Joe Kesselman  / IBM Research
Received on Monday, 29 October 2001 10:42:30 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 20 October 2015 10:46:09 UTC