About Arbortext Styler > Property Value Precedence in Arbortext Styler > Processing Order During Publishing
  
Processing Order During Publishing
The following procedure describes how Arbortext Editor processes contexts and conditions to determine property values when publishing a document.
1. Arbortext Editor starts processing the document using the Arbortext Styler default settings.
2. For each element, Arbortext Editor determines which context of the current element is the best match based on the current position in the document. See Context Priority for details on context priorities.
3. Once Arbortext Editor selects a context for an element in the document, it processes the context's base properties, applied via the Base (All Outputs) option.
First, all property sets referenced by the context's base properties are merged in the order referenced, from top to bottom, as they appear in the Property Sets list The Property Sets list icon - a small black A in the top left corner and a large blue A in the bottom right corner in Arbortext Styler. For a property set being merged, any property sets that it references are first merged, again in the order referenced. When merging occurs, any property that is specified becomes the current value for that property in the property set, overriding any previous value.
The context's base properties are merged into the result of the previous step. Again, any property that is specified becomes the current value for that property in the property set, overriding any previous value.
4. Once a context's base properties have been processed, Arbortext Editor processes the context's output-specific properties for the output being published.
First, all property sets referenced by the output-specific properties are merged in the order referenced, from top to bottom, as they appear in the Property Sets list in Arbortext Styler. For each property set being merged, any property sets that it references are first merged, again in the order referenced.
Then the output-specific properties are merged with the base properties resulting from step 4. Any property specified as part of the output-specific properties becomes the current value for that property, overriding any previous value.
5. Finally, Arbortext Editor evaluates a context's conditions. If a condition is true, Arbortext Editor overlays the properties of that condition on the previous results. Arbortext Editor first processes the condition's base properties and then its output-specific properties. All true conditions are processed in the order they are specified in the Elements list The Elements list icon - the yellow element icon in Arbortext Styler. You can modify the order of a condition (and hence its position in the processing order) by selecting it in the Elements list and pressing either the up or down arrow in the Elements toolbar to move the condition up or down in the list, or the right or left arrows to increase or decrease its nesting level.
This is an image of the toolbar buttons to be used to reorder and nest conditions in the window
Property sets associated with conditions are processed via the same logic as for contexts.