entity_notation Callback Type
Function prototype:
function funcname (doc, entity, pubid, sysid, type, notation)
entity_notation is invoked whenever an NDATA-type entity reference is inserted into the document. It is also called for each NDATA-type entity encountered when the document is initially opened. It is not called for NDATA-type entities assigned as attribute values.
Normally, Arbortext Editor treats NDATA entities as "graphic" entities. NDATA entities are treated specially only when they are assigned to a designated attribute of an element marked as a graphic tag. Arbortext Editor ignores graphic entities inserted into the document body (for example, using insert("&ndataent;")) because they have no effect on the document structure. This callback type allows the application writer to provide any special processing for such entities.
Arguments
• doc is the identifier of the current document.
• entity is the name of the entity inserted.
• pubid is the public identifier or a null string if no PUBLIC ID was specified in the entity declaration.
• sysid is the system identifier or a null string if no SYSTEM ID was specified in the entity declaration.
• type is the declared type of the entity and is always "NDATA".
• notation is the specified data notation.
The return value, if any, of the callback function is ignored.