PTC ALD Source Code Edit Locations
At the start of a publishing process or print preview, PTC ALD interrogates the Arbortext Styler stylesheet and creates an PTC ALD template based on set of defaults. A number of namespace libraries are attached to the template.PTC ALD then creates the tags it needs to format the XML instance, including a large volume of JavaScript functions which are used to apply style and to build page layouts. These JavaScript functions are exposed to Arbortext Styler users through the source edit interface.
When a source edit is requested for a particular object, PTC ALD generates its usual code for the object and returns it to Arbortext Styler for edit.
The locations which Arbortext Styler exposes for source edits are:
• PTC ALD root template
The tags in the root PTC ALD template source of a stylesheet support stylesheet definitions such as tables. Configure these tags if you want to define default settings for the definitions in a particular stylesheet, and save them with the stylesheet.
• Element contexts
An PTC Arbortext Layout Developer tag is generated for the onEnter and onExit events associated with matching an XML context declared in Arbortext Styler.
• Property sets
As with element contexts, onEnter and onExit code is generated for property sets.
• Page sets
When an element calls a page set, PTC ALD JavaScript code is run to create all the page layout objects needed. The highest level function of this code is exposed as the page set source.
• Page types
When a page set function is run, it calls code to create the different page types required. This code is exposed as page type source.
• Page regions
Page type source creates any page regions it needs by calling page region functions, which are exposed as page region source.