Create a DDX document that inserts a form fragment into an XDP document

Here are the general steps for creating a DDX document that includes a form fragment in an XDP document.

  1. Specify the resultant document by selecting New Result > XDP. In the XDP Result panel, leave the default values unchanged.

  2. Drag the XDP icon from the Sources panel onto your canvas. Position the icon under the XDP result icon added in the previous step.

  3. In both the XDP Result panel and the XDP Source panel, leave the default values unchanged.

  4. Drag the XDP Content icon from the Document Components panel onto your canvas. Position the icon to be subordinate to the source XDP icon.

  5. With the XDP Content icon selected, supply these values in the XDP Content panel:

    • Source: Specify a string or URL that provides the XDP content.

    • Fragment: Specify the name of the subform to use from the source XDPContent file. The named subform is the fragment inserted into the parent XDP source document.

    • Insertion Point: Specify the name of the insertion point in the XDP source file where the fragment is inserted.

    • Other fields: Leave the other fields with the default settings.

  6. Save your work and then click Validate to validate the DDX file. (See Validating the DDX Document.)

  7. Click Preview to view an example of the resultant document. (See Previewing the Result from a DDX Document.)

  8. (Optional) Set XDP result properties. (See Set PDF result and source properties.)

  9. (Optional) Set other XDP Content properties. (See Set XDP Content source properties.)

Here is the appearance of the canvas that these steps create. The resulting DDX document produces an XDP document that is assembled from one source XDP document. The fragment in the XDP Content is inserted into the XDP source document. The XDP Content panel shows the properties for the Insertion Point and Fragment. These values mean that the fragment named Alabama from the myFragmentSource document is inserted into the ddx_fragment_goes_here insertion point in the sourceXDP1 document.

Here is the DDX source that these steps create. The name of the insertion point is ddx_fragment_goes_here. The name of the fragment is Alabama.

<DDX xmlns="http://ns.adobe.com/DDX/1.0/"> 
     <XDP result="Untitled 1"> 
       <XDP source="sourceXDP1" fragment=""> 
         <XDPContent fragment="Alabama" insertionPoint="ddx_fragment_goes_here" source="myFragmentSource"/> 
       </XDP> 
     </XDP> 
     <?ddx-source-hint name="sourceXDP1"?> 
     <?ddx-source-hint name="myFragmentSource"?> 
</DDX>