Arbortext Command Language > Functions by Alphabetical Listing > stylesheet_saveas
  
stylesheet_saveas
stylesheet_saveas ([pathname[, doc]])
This function lets you save a modified stylesheet. If the current stylesheet was created or modified by Arbortext Styler, it is automatically saved as a .style file.
This function will save the stylesheet in one of three ways:
As a document level stylesheet, using the current doc directory as the target directory, and the current docname to create a document-specific stylesheet, (the resulting stylesheet is written to doc-pathname/docname.xsl)
As an application level stylesheet, using the current doc directory as the target directory, and the current application-name to create a local version of the application stylesheet (the resulting stylesheet is written to doc-pathname/application-name.xsl)
As an independent stylesheet, using a target directory and name specified by the user.
If no pathname is supplied, this function launches the Save Stylesheet As dialog box for document doc.
If doc is omitted or 0, the current document is used.
The two possible return values from the dialog box are:
OK
The function returns the path the stylesheet was saved to.
Cancel
The function returns an empty string.
The Save Stylesheet As menu item corresponds to stylesheet_saveas.
Related Topics
Save Stylesheet As dialog box
Default stylesheet locations