Arbortext Command Language > Functions by Alphabetical Listing > legal_name
  
legal_name
legal_name (name[, doc[, unqualified]])
This function determines whether a given element or attribute name name is a valid XML name. If name is a valid XML element or attribute name, this function returns 1 (True). Otherwise, this function returns 0.
The doc argument specifies the identifier of the document to query. If omitted or 0, the current document is used.
The unqualified argument specifies whether namespace qualified names are considered valid for XML documents. If omitted or 0, then qualified names (a colon separating a valid prefix and a valid name) are considered valid. If 1, then qualified names are not considered valid.
* 
The XML version for a document is stored in the document's XML declaration processing instruction (PI). That version is used as the basis for testing an XML element or attribute stored in the document.