Arbortext Command Language > Functions by Alphabetical Listing > oid_declared_tag
  
oid_declared_tag
oid_declared_tag (tagname[, oid[, doc]])
This function returns 1 (true) if tagname is the name of an element declared in the document type (defined in a DTD or schema). The function returns 0 (false) when:
tagname is not a valid tag name, or
tagname is a Arbortext Editor supplied tag (for example, the processing instructions _font or _ignore),or
the tag is from a foreign namespace.
tagname is looked up with respect to the position in the document represented by oid. If oid is not supplied, the current caret point of the current document is assumed. If oid is supplied and is oid_null(), tagname is looked up independent of any document instance and is only looked up with respect to the document type of doc.
Note that the doc parameter is only used if oid is supplied and is oid_null(). If doc is not supplied or is 0, the current document is used.