Stylesheet Development with PTC ALD > Adding PTC ALD Code to Stylesheet Source > Samples > Testing > Test Attribute Values and Apply Formatting Properties
Test Attribute Values and Apply Formatting Properties
Samples directory: Arbortext-path/samples/ALD/Testing/Attributes
Sample file: applyAttributes.xml
Main stylesheet:
Stylesheet modules: and
The sample is based on the standard axdocbook document type. It demonstrates how to drive formatting directly from attribute values. The value of the attributes can then be used to decide which formatting properties should be applied to the text:
Text height
Text color
Multiple properties
Inline text is tagged as emphasis. Each context of emphasis in the associated stylesheet includes PTC ALD source code edits to test attributes values and apply formatting properties accordingly. Access the source code for the context by selecting it in the Elements list, and using the Edit > Edit Context Source > APP menu option.