Arbortext Command Language > Functions by Alphabetical Listing > stylesheet_select
  
stylesheet_select
stylesheet_select ([name[, use[, doc]]])
This function controls the selection of a stylesheet; it corresponds to the Format > Select Stylesheets menu item. All parameters are optional.
If you do not supply a name, the function launches the Select Stylesheets dialog box for document doc; (the value of current_doc() is used if you do not specify doc).
If you supply a name, this function selects the named stylesheet and returns its full path name. name can be specified in the following ways:
The name can be the path and file name of the stylesheet, with or without the .fos, .xsl, or .style extension. Arbortext Editor first looks for a .fos file, and then an .xsl file, and then a .style file.
The name can be the base name of the stylesheet file (the file name without the path). If just the base name is supplied, Arbortext Editor looks for the file in the document directory, and, if not found, in the application directory.
The use parameter determines what use the stylesheet is selected for:
If use = 0, the function selects the stylesheet for the Editor view.
If use = 1, it selects the stylesheet for print published output (printing and print preview, publish PDF file).
If use = 2, it selects the stylesheet to be used for Save as HTML or Publish > HTML File.
If use = 3, it selects the stylesheet to be used for or Publish > For HTML Help.
If use = 4, it selects the stylesheet to be used for or Publish > For Web.
Related Topics
Default stylesheet locations
Select Stylesheets dialog box