Namespaces in 20 lines (and dtd encoding)

james anderson James.Anderson at mecomnet.de
Wed Aug 5 10:51:26 BST 1998


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?

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/
To (un)subscribe, mailto:majordomo at ic.ac.uk the following message;
(un)subscribe 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