Cookbook

Define Folder Shortcuts

April 11, 2017 Cookbook

Suppose you have defined a set of folders to contain clauses for insertion using the My Clauses or Shared Clauses features in the XpressDox ribbon.  Normally you would group clauses together into folders containing clauses for similar uses.  For example, they might be “Contracts”, “Notices”, “Letters”, etc. In some cases the folder and sub-folder structure […]

Read the full article →

Arithmetic in XpressDox

February 13, 2017 Cookbook

Because XpressDox uses XSLT as its document automation engine, the arithmetic features of XSLT are all available to template authors. There is a caveat, though, and that is that XSLT requires that all number presented to it in calculations must be in a specific format.  The specific format is that the numbers must be only […]

Read the full article →

Inserting documents with variable names (Part 2)

September 16, 2016 Cookbook

The original article regarding inserting documents with variable names was written way back in 2009.  Since then, as a result of further maturing of XpressDox, some really useful innovations have been added.  In particular, if there are data elements whose values are set very early in the process (in fact before step 1 in The […]

Read the full article →

Configure a Web Service as a Data Source

September 12, 2016 Cookbook

Configuring a web service as a data source follows the same first steps as for other data sources. The first place where it differs is (obviously) at the point where you choose the type of data source: When you press the “Finish” button, the data source will be entered into the Configuration window with a […]

Read the full article →

The Command Editor

August 17, 2016 Cookbook
Thumbnail image for The Command Editor

The Command Editor empowers the template author by presenting an alphabetic list of all the XpressDox commands, with functionality which provides wizards for completion of the command as well as supplying examples of commands.

Read the full article →

Data Sheets

June 6, 2016 Cookbook

In XpressDox, a Data Sheet is a document that contains a table with a list of data elements and values. A data sheet is useful in the case where, for example, a lengthy and complex document is produced by a template, and where the list of data elements used by the template is relatively small. […]

Read the full article →

Manage the number of occurrences of a repeater

April 5, 2016 Cookbook

Manage the number of occurrences of a repeater. “Repeaters” are otherwise called “complex elements” in XML, but are essentially items through which you can iterate using a «ForEach()» in the template. An example would be My children are: «ForEach(Child)» Name: «Name» Age: «Age» «End()» In general, XpressDox will allow the user to enter either no […]

Read the full article →

Advanced Conditional Logic

August 13, 2015 Cookbook

Suppose you would like to write a sentence something like one of the following, depending on the age of a child: My child <ChildName> is a teenager and is allowed to watch movies rated for 13 and older. OR My child <ChildName> is not a teenager but in any case, being <Age>, is old enough to be […]

Read the full article →

Get the Last Day of the Month

May 29, 2014 Cookbook

Suppose you want to get the date of the last day of a month. There are a number of ways to achieve this with XpressDox. With version 8.2.1 of XpressDox, this can now very easily be achieved using the LastDayInMonth function. Brute Force Method Assume that you have a data element containing the month name, […]

Read the full article →

Conditional Numbering of Paragraphs

May 5, 2014 Cookbook

Suppose you have a document where names and other identifying information are listed.  They could be parties to a contract or names and addresses of directors of a company, or something like that. Suppose further that if there are a number of parties to be listed, the paragraphs in which they appear should be numbered, […]

Read the full article →