Skip to Main Content
SAX2
book

SAX2

by David Brownell
January 2002
Intermediate to advanced content levelIntermediate to advanced
240 pages
6h 58m
English
O'Reilly Media, Inc.
Content preview from SAX2

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.)

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Special Edition Using XML, Second Edition

Special Edition Using XML, Second Edition

- et al. David Gulbransen

Publisher Resources

ISBN: 0596002378Supplemental ContentCatalog PageErrata