Arbortext Command Language > Callbacks > doc_add_callback > reference_path Callback Type
  
reference_path Callback Type
Function prototype:
function funcname (doc, oid, attrname, refvalue)
reference_path is used to resolve references other than graphic references. It returns the possibly modified reference value or null, if there was an error. The returned reference value is usually an absolute or relative path name or a Logical ID. If refvalue is to be used unchanged, its value should be returned.
Arguments
doc is the identifier of the document containing the reference for which the value is being resolved. If doc is set to zero, the current document is used.
oid is the object identifier of the element containing the reference for which the value is being resolved.
attrname is the name of the attribute for which the value is being resolved.
refvalue is the value of the attribute for which the value is being resolved.
* 
The reference_path callback type is currently used only for DITA references.