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

Unparsed Entity Information Items

When unparsed entities are used, these information items are normally saved by applications during DTD processing (keyed by entity name) and then accessed on demand. Unparsed entities are used only with attribute values of type ENTITY or ENTITIES.

Property

Callbacks

Explanation

[name]

DTDHandler.unparsedEntityDecl(), name parameter

[system identifier]

DTDHandler.unparsedEntityDecl(), systemId parameter

This ID should be absolutized by the parser. However, some parsers have a bug here and don’t absolutize this URI.

[public identifier]

DTDHandler.unparsedEntityDecl(), publicId parameter

Unparsed entities are not required to have public identifiers. When provided, this value is normalized.

[declaration base URI]

Locator.getSystemId()

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

[notation name]

DTDHandler.unparsedEntityDecl(), notationName parameter

[notation]

See the section on Notation Information Items. Locating notations is the responsibility of applications. It’s best not to try accessing this property until all declarations have been processed.

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