XFA Specification
Chapter 15, Template Specification
Guide to the Template Specification
419
<fill
Properties:
id="xml-id"
presence="visible
| invisible | hidden"
use="cdata"
>
<color>
[0..1]
>
One-of properties:
<linear>
[0..1]
<pattern>
[0..1]
<radial>
[0..1]
<solid>
[0..1]
<stipple>
[0..1]
Children:
<extras>
[0..n]
</fill>
Italicized types indicate a placeholder
for a value of the given type.
Non-italicized symbols indicate
choices in enumerated values.
Underlined symbols indicate the
default value the application should
use if the attribute is omitted.
Element names (blue)
Attribute names (red)
Comments (green)
[min..max]
number of occurrences
within the element
Properties
As in object-oriented programming, properties describe the objects to which they are attached.
A property represents a logical grouping of information that may be represented as a single attribute or as
as a tree structure of elements. A property includes all the information contained in the elements and
attributes used to represent it.
Properties may be unstructured or structured; XFA-Template uses attributes to describe unstructured
properties and child elements to describe structured properties. For example, the
fill
element’s
attributes (see above syntax) are all unstructured properties, while its
color
element is a structured
property.
All properties must be in the XFA template namespace to be included in the template DOM. That is, the
XFA template grammar cannot be extended through the use of custom namespaces. However, the XFA
template grammar provides
extras
elements that can be used for extensions.
The element descriptions in the template syntax reference differentiate between (regular) properties and
one-of properties, as shown in the example on the previous page.