Arbortext Command Language > Functions by Alphabetical Listing > tag_substitutions
  
tag_substitutions
tag_substitutions (tagname, arr[, doc])
This function fills the array arr with the list of elements specified in the .dcf file as being possible substitutions for the element specified by tagname. The function returns the number of elements added to the array. The order of the array matches the order specified in the .dcf file.
* 
If you have applied an alias map to the document, tagname can be either an alias or a real name. However, tag_substitutions will return the real names of the elements, not their aliases.
The doc argument specifies the identifier of the document tree. If doc is omitted or 0, the current document is used.
* 
If the document type definition for your document instance includes the NAMECASE GENERAL NO setting, the tagname parameter will be case sensitive.