generate_id Callback Type
Function prototype:
function funcname (doc, oid, attrname)
generate_id is called to provide a generated ID to replace an ID that would otherwise be generated by Arbortext Editor. It returns the generated ID string or null, if no ID is being generated.
Arguments
• doc is the identifier of the document for which the ID is being generated. When an ID is being generated in a context that does not involve an open or existing document, the value of doc will be zero.
• oid is the object identifier of the element for which the ID is being generated. When an ID is being generated in a context that does not involve a particular element, the value of oid will be oid_null( ).
• attrname is the name of the attribute for which the ID is being generated or a null string when the ID is not being generated for use as an attribute value.
|
The generate_id callback type is currently used only for DITA document types.
|