XFA Specification
Chapter 15, Template Specification
Template Reference
652
The text element
A content element that describes a single unit of data content representing a plain textual value.
<text
Properties:
id="xml-id"
maxChars="0
|
integer"
name="xml-id"
use="cdata"
usehref="cdata"
>
...pcdata...
</text>
The text element is used within the following other elements:
desc exObject extras items message proto value variables
Content
This element may contain text data which is simple XML PCDATA or it may contain rich text. It may also be
empty.
If the content is rich text it must be contained in an aggregating element such as body. The aggregating
element, as well as its content, must belong to the XHTML namespace. Only a subset of XHTML markup is
supported. The mechanism and its limitations are fully described in
Rich Text Reference.
When no data content is provided, the data content may be interpreted as representing a null value. This
behavior is dependent upon the context of where the data content is used. For instance, a field may
interpret empty data content as null based upon the associated
nullType
property in the data
description.
The id property
A unique identifier that may be used to identify this element as a target.
The maxChars property
This property specifies the maximum (inclusive) number of characters that this text value is permitted to
enclose. The
absolute omission
is no maximum.
The name property
An identifier that may be used to identify this element in script expressions.
The use property
Invokes another object in the same document as a prototype for this object. The content of this property is
either a SOM expression (which cannot start with '#') or a '#' character followed by an XML ID.
Starting with XFA 2.4 the object used as a prototype no longer needs to be the child of
proto
. Any object
of the appropriate class can be used as a prototype.