XFA Specification
Chapter 15, Template Specification
Template Reference
651
The template element
An element that describes a template. One such element exists for each template and all other elements
described in this specification are descendants of the template element.
<template
Properties:
>
<extras>
Children:
<subform>
</template>
[0..1]
[0..n]
This element may contain an
originalXFAVersion
processing instruction. This processing instruction
exists to allow a template to be upgraded from an earlier (pre-XFA 2.4) schema to XFA 2.4 or later without
having to manually rewrite the scripts to accomodate changes in the event model. The parameters of the
processing instruction are interpreted as follows:
First parameter (mandatory):
An XFA namespace URI identifying the XFA version for which the template was originally
generated. If this corresponds to XFA 2.4 or later then the 2.4 event model is used regardless of any
additional parameter.
Additional parameter (optional):
Provided the first parameter identified an XFA version of 2.3 or earlier, if there is an additional
parameter with the value
LegacyEventModel:1
then the old pre-2.4 event model is used.
Otherwise the XFA 2.4 event model is used.
The extras property
An enclosure around one or more sets of custom properties. The content of this element may be used by
custom applications.
For more information see "The
The subform child
A
container
element that describes a single subform capable of enclosing other containers.
For more information see "The