Re: Namespaces in 20 lines (and dtd encoding)

james anderson (James.Anderson@mecomnet.de)
Wed, 05 Aug 1998 10:51:59 +0000


James Clark wrote:
> At first glance the new namespace draft might appear rather complicated,
> ...

at second glance too...

> String expandName(String name, Element element, boolean isAttribute) {
> // ...
> for (; element != null; element = element.getParent()) {
> String ns = element.getAttributeValue(declAttName);
// ...
> }

(as an addenda to my questions re dtd encoding:)

how does one do attribute defaulting on attributes in the "xmlns" namespace
when the universal name of the element type is not yet defined?