Book HomeSAX2Search this book

B.12. Notation Information Items

When notations are used, these information items are normally saved by applications during DTD processing (keyed by notation name) and then accessed on demand. Notations are used with NOTATION attributes (at most one per element) or with unparsed entities, and perhaps with processing instruction target names.

 

Property

Callbacks

Explanation

[name]

DTDHandler.notationDecl(), name parameter

[system identifier]

DTDHandler.notationDecl(), systemId parameter

Notations are not required to have system identifiers if they have a public identifier. This ID should be absolutized by the parser. However, some parsers have a bug here and don't absolutize this URI -- although, because of an issue with early versions of the SAX1 and SAX2 specifications, some parsers might absolutize such URIs.

[public identifier]

DTDHandler.notationDecl(), publicId parameter

Notations are not required to have public identifiers if they have a system identifier. When provided, this value is normalized.

[declaration base URI]

Locator.getSystemId()

If a SAX event producer provides a Locator, it can be used to determine the current base URI during parser callbacks. (xml:base does not apply.)



Library Navigation Links

Copyright © 2002 O'Reilly & Associates. All rights reserved.