Stylesheet Development with APP > Introduction to APP in Arbortext Styler > APP Code Types
  
APP Code Types
An APP application can be written using either of the following methods, or a combination:
1. FOM/JavaScript: APP applications can be coded in the JavaScript scripting language, using as a base the application, content, and formatting object definitions provided by APP’s Formatting Object Model (FOM).
2. APP proprietary syntax: the traditional APP programming method. APP’s own macros, processing instructions and scripts define the actions in a template that will format a document.
Both of these types of code can be incorporated into an Arbortext Styler stylesheet, meaning that you can take advantage of both new or existing APP template code to provide effects not available via the Arbortext Styler interface. The table below details how each code is applicable in the .style file, depending on the method that you choose to extend the stylesheet:
Extension Method
FOM / JavaScript
APP Proprietary Syntax
Edit .style stylesheet source with APP code
ü
Associate a template with a .style stylesheet1
ü
ü
1
An APP template to be associated with a .style stylesheet is permitted to contain a combination of FOM/JavaScript code and APP proprietary syntax