A common use case is to let the end user select various fragments to insert in the final PDF. The screen shot below would better explain what I mean by this. AS you can see this screen captures some user information, and allows the user to select fragments that need to be inserted in the final pdf. When the user hits the submit button it will call a LC process which will parse the parameters and build the DDX needed for XDP Stitching. The Process makes use of a custom component called xmlUtilities which allows you to insert elements in an xml document. The input parameters to the process are the name,city,address,state,zip and fragments. The fragments variable will hold a comma separated list of selected fragments.

I have written a simple component which creates a DDX from a list of file names. It is very common to create a package or assemble a map of documents. To do this you would have to create a DDX which needs to match the file names of documents in the map. To avoid all that hard work, I have a component which creates a DDX from list of file names.

The process also makes use of another component which writes out map contents to the file system

Document Builder
Document Builder is WYSIWYG editor for DDX and ships with LiveCycle Workbench ES2. In previous releases of LiveCycle ES you had to hand code DDX; Document Builder gives you tools to design, validate and test DDX files in a graphical manner.

What is DDX?
To specify documents that you want the Assembler service to produce, you use an XML-based language called Document Description XML (DDX). DDX is a declarative markup language whose elements represent building blocks of documents. These building blocks include PDF pages and other elements such as comments, bookmarks, and styled text. The DDX document can be considered a template for the document(s) that you want the Assembler service to produce.

Document Builder Features:

WYSIWYG editor for designing DDX

Full integration with Workbench and Assembler’s Invoke DDX service

Schema Validation

Ability to test DDX and to preview results

Templates for the most commonly used Assembler operations

Design and Source modes

—-
Original article at http://livecycleapps.wordpress.com/2009/10/21/livecycle-es2-highlight-document-builder-for-ddx/.