Arbortext Command Language > Functions by Alphabetical Listing > styler_get_styled_elements
  
styler_get_styled_elements
style_get_styled_elements(sspath[, flags])
This function takes a the stylesheet path sspath and returns the document identifier of a Free-form XML document containing a list of all of the styled elements in the stylesheet, that is, all of the elements with an assigned style other than Unstyled. If the stylesheet is not already loaded in memory, the function loads the stylesheet and leaves it loaded.
The sspath argument must be the path to a Arbortext Styler stylesheet.
The optional flags argument can have one of the following values:
0 — User Formatting Elements and Styler Formatting Elements are not included in the output. This is the default.
1 — User Formatting Elements are included in the output.
2 — Styler Formatting Elements are included in the output.
3 — User Formatting Elements and Styler Formatting Elements are both included in the output.
The Free-form document identified by this function has the following format:
<?xml version="1.0"?>
<doc namespace declarations>
<chapter/>
<section/>
<namespace:element/>
...
</doc>
The doc element is the wrapper element and contains all of the necessary namespace declarations used with elements in the stylesheet. Other elements represent the styled elements in the stylesheet. These elements are listed in alphabetical order in singleton syntax with any necessary namespace prefixes.