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

Re: Comments on DOM level 2

From: David Brownell <david-b@pacbell.net>
Date: Wed, 08 Dec 1999 11:27:08 -0800
Message-ID: <384EB10C.90C5BF4D@pacbell.net>
To: lauren@sqwest.bc.ca
Cc: www-dom@w3.org
Lauren Wood wrote:
> 
> > 2) DOM level 2 should not require lexical-checking for URIs,
> > system and public identifiers, and XML names, except at some
> > user-supplied option.
> 
> The DOM currently does not do such checking except for XML
> Names; the rest will be in Level 3.

Speaking of which ...

How does DOM know whether to accept or reject a name based
on namespace support?

Consider two legal XML 1.0 names:

    "prefix:local" ...
	- Illegal in PI names when XML Namespaces support is in use

	- Possibly illegal as an element or attribute name if
	  the prefix is undeclared (no "xmlns:prefix" attribute
	  in scope)

    ":" ...
	- Illegal anywhere when XML Namespaces support is in use

Is the assumption that namespaces always be used ... or is
that an application's choice?  If it's the application's choice
there needs to be some API whereby the DOM can be told so, and
which then will perform additional error checks for cases such
ast hose above.

- Dave
Received on Wednesday, 8 December 1999 14:27:14 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Friday, 22 June 2012 06:13:47 GMT