Release Notes F000 > Updates in this Release > Arbortext Styler Changes
  
Arbortext Styler Changes
Add JavaScript to HTML Produced Using Arbortext Styler Stylesheets
Arbortext Styler provides the option to add custom interactivity and dynamics to HTML pages, with two new features:
Custom HTML JavaScript function definitions in a stylesheet
Association of JavaScript libraries with a stylesheet
Custom HTML JavaScript Functions in Stylesheet
You can create and manage custom JavaScript functions in an Arbortext Styler stylesheet, for inclusion in HTML output. A custom HTML function can be passed as the value of an attribute for event-based HTML tags such as onclick and onmouseover. The functions can also be referenced in stylesheet extensions based on source code edits.
For more information, see Custom JavaScript Functions.
HTML functions are defined in a stylesheet as HTML Function objects. Arbortext Styler provides a HTML Functions list view where you can create, edit, and delete HTML Function objects. From here you can access the HTML JavaScript Editor to add custom JavaScript code to an HTML function.
For more information, see HTML Functions List.
A new option Function in the HTML Attribute dialog box allows you to specify an HTML function that will be passed as the value for an HTML attribute in output.
For more information, see HTML Attribute Dialog Box.
Associate JavaScript Libraries with a Stylesheet
Arbortext Styler allows you to reference JavaScript libraries as part of a stylesheet’s properties. You can reference common libraries, such as jQuery or AngularJS, or custom libraries.
When a library is associated with a stylesheet it can be included in HTML output generated with the stylesheet.
For more information, see Associating a JavaScript Library with a Stylesheet.
A new field Associated JavaScript Libraries has been added to the HTML areas of Stylesheet Properties. Here you can add references to the required JavaScript libraries.
For more information, see Stylesheet Properties — HTML File and Stylesheet Properties — HTML Chunk.
Stylesheet Properties for HTML File and Chunked HTML Outputs
The HTML area of the Stylesheet Properties dialog box has been split into two tabs, allowing you to define separate properties for HTML File and chunked HTML (EPUB, HTML Help, and Web) outputs:
For more information, see Stylesheet Properties — HTML File and Stylesheet Properties — HTML Chunk.
Insert Multiple Pages of PDF Graphic
When configuring a PDF graphic to insert into content and include in PDF output, there are now two options for specifying the pages of the graphic to use:
Single page (default)
Set the value of an XML attribute with the View role
This is existing behavior.
Multiple pages or a range
A new Graphic property category for a context, condition or property set provides more specific control over the pages in a PDF graphic to be output
The Page selection field specifies the method of determining which pages of a PDF graphic to output:
<Derive>
Show all pages from PDF — include all pages
Use a custom page range — specify the range of pages to be included
Use Graphic 'view' role attribute — use the value of the attribute of the element styled as Graphic that has the View role as the page number to include (see above)
The Page range field specifies the details of the page range, if the Use a custom page range option is selected:
Simple range, for example 1–3
Range with open start, for example -3 (all pages up to and including 3)
Range with open end, for example 3– (all pages from page 3 to last page)
Range with open start and end, i.e. - (all pages)
You can also use a combination of page range and single pages, separated by a comma, for example:
1–3, 5
1–3, 10–15
For more information, see PDF Graphics and Graphic Category.