XFA Specification
Chapter 16, Config Specification
Config Element Reference
692
The nameAttr element
This option controls the renaming of nodes in the XFA Data DOM based upon the value of an attribute.
<nameAttr
Properties:
desc="cdata"
>
...pcdata...
</nameAttr>
The nameAttr element is used within the following other elements:
transform
This option applies only to nodes corresponding to elements with tags that match the value of the
ref
attribute of its enclosing
transform
element.
This option takes effect during the data-load phase.
For more information about this element see the narrative description of this element at
Extended
Mapping Rules.
Content
The value of
nameAttr
is the name of an attribute. If the element in the XML document has an attribute
with this name and the attribute's value is not the empty string (""), the XFA application renames the
corresponding node in the XFA Data DOM as the value of the attribute. For example, if the configuration
document contains the fragment
<transform ref="foo">
<nameAttr>bar</nameAttr> </transform>
and the following element is present in the input XML document
<foo bar="blort">some text</foo>
then the XFA application renames the corresponding node in the XFA Data DOM from "foo" to "blort".
The desc property
An attribute to hold human-readable metadata.
Home Index Bookmark Pages
Pages: Home Index All Pages