Callback interfaces for notation and entity declarations.

See:
http://www.saxproject.org/apidoc/org/xml/sax/DTDHandler.html

Name Description
notationDecl Called for each declared notation.
unparsedEntityDecl Called for each declaration of an unparsed entity (data entity).

Member Details

notationDecl(name, pubid, sysid)

Called for each declared notation.

Also called for an artificial notation generated by Linkhandler.

notationDecl calls are called after a startDtd event (delivered as LexicalHandler callback), and before the corresponding endDtd event; the startDtd and endDtd demarcation events inform about the declaration set name of the notation declaration.

Parameters

Name Type Description
name string

the name of the declared notation

pubid string

the declared public identifier, if any

sysid string

the declared system identifier, if any

unparsedEntityDecl(name, pubid, sysid, notationName, dataAttributes)

Called for each declaration of an unparsed entity (data entity).

Also called for delivering DAFE attributes by Linkhandler.

unparsedEntityDecls calls are called after a startDtd event (delivered as LexicalHandler callback), and before the corresponding endDtd event; the startDtd and endDtd demarcation events inform about the declaration set name of the entity declaration.

Moreover, unparsedEntityDecl() callbacks are always called after notationDecl() calls for the respective notation (as of notationName) in the declaration set.

Parameters

Name Type Description
name string

the name of the entity being declared

pubid string

the declared public identifier, if any

sysid string

the declared system identifier, if any

notationName string

the declared content notation

dataAttributes string

declared data attributes or DAFE attributes as attribute specification string