XFA Specification
Chapter 3, Object Models in XFA
Scripting Object Model
83
Receipt
Detail
Detail
Sub_Total
Tax
Total_Price
Description
Description
Units
Units
Unit_Price
Unit_Price
Total_Price
Total_Price
Receipt Form Tree
It may be helpful to see the outline of a template that could be used with the receipt data shown above.
This is not the only possible template but it shows the basic features:
<xdp xmlns="http://ns.adobe.com/xdp/">
<template xmlns="http://www.xfa.org/schema/xfa-template/2.4/"
name="Template for receipt sample">
<subform name="Receipt" …>
<pageSet name="ReceiptPageSet" …> … </pageSet>
<subform name="Detail" …>
<field name="Description" …> … </field>
<field name="Units" …> … </field>
<field name="Unit_Price" …> … </field>
<field name="Total_Price" …> … </field>
</subform>
<subform name="Detail" …>
<field name="Description" …> … </field>
<field name="Units" …> … </field>
<field name="Unit_Price" …> … </field>
<field name="Total_Price" …> … </field>
</subform>
<field name="Sub_Total" …> … </field>
<field name="Tax" …> … </field>
<field name="Total_Price" …> … </field>
</subform>
</template>
</xdp>
SOM Conventions
One use for XFA SOM expressions is to specify an explicit binding between a field in the template and a
node in the Data DOM. For example:
Home Index Bookmark Pages
Pages: Home Index All Pages