SAX2: NamespaceDeclHandler
David Megginson
david at megginson.com
Wed Dec 22 15:12:08 GMT 1999
Here is my current draft of the NamespaceDeclHandler for SAX2. Note
that the purpose of this handler is to let the application know what
Namespace prefix mappings are currently in scope, *not* to tell
anything about a specific name.
The purpose of this handler is to allow prefix-qualified names to be
used in attribute values and character data. The Namespaces REC makes
no explicit provision for this sort of usage, but as others have
pointed out, it is required for several other specs.
public interface NamespaceDeclHandler
{
public void startNamespaceDeclScope (String prefix, String uri)
throws IOException;
public void endNamespaceDeclScope (String prefix)
throws IOException;
}
There are two important questions here:
1. Is this adequate for its goal?
2. Should support for this handler be required (assuming that
Namespace processing is required)?
All the best,
David
--
David Megginson david at megginson.com
http://www.megginson.com/
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/ and on CD-ROM/ISBN 981-02-3594-1
To unsubscribe, mailto:majordomo at ic.ac.uk the following message;
unsubscribe 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