Next / Previous / Contents / TCC Help System / NM Tech homepage

6.14. The option template element

This element is used to insert the content of some string that is passed as an option when the PyStyler program is run to build the output files.

Use the name attribute of this element to specify the name of some option. The element expands to the value of that option. If the option is not defined, it expands to nothing. Here is the schema:

template.rnc
option = element option
{ attribute name { xsd:Name },
  empty
}

The xsd:Name reference means your option names must conform to the general rules for XML element names.

For example, suppose you want to be able to build a set of pages marked “** DRAFT **”. You could define an option named “draft-mode”, and use an option template element to insert that option when defined.