Arbortext Command Language > Functions by Alphabetical Listing > doc_default_stylesheet_path
  
doc_default_stylesheet_path
doc_default_stylesheet_path([use[, doc]])
This function returns the full path and file name for the stylesheet that will be used by default for the given use and document doc. Valid values for use are:
0Arbortext Editor
1 — Print and PDF
2 — HTML File
3 — HTML Help
4 — Web
5 — RTF
If no document is specified, the doc parameter is the value of current_doc.
If, for example, you opened a document with the doc_open() function, and passed the 0x200 flag to not load a stylesheet, you could then use doc_default_stylesheet_path(0, doc) to determine which stylesheet would be used as the editing stylesheet if you were to pass the document to doc_show().
The value returned does not reflect what stylesheets the document is currently set to use. It reflects what stylesheets would be used for the document if the document were opened in Arbortext Editor with no special application code. If use is 0 (Arbortext Editor), the stylesheet returned is determined by stylesheet association if one exists, or name and location. For example, by docname.style or doctype.style if such a file is found. For other uses, an empty string is returned unless there is a stylesheet association for the specified use.