Arbortext Command Language > Functions by Alphabetical Listing > dita_version
  
dita_version
dita_version (docId)
This function returns the DITA version of the document associated with the docld parameter. The function searches for the version attribute of the Dita element of the .dcf file of that document’s document type. If the docId parameter is omitted or set to zero, the current document is used. The function returns one of the following values:
0 — The document is not a DITA document.
1.3 — The DITA version of the document is 1.3 or the .dcf file for that document type does not contain the dita element or the version attribute.
2.0 — The DITA version of the document is 2.0.