Cookbook

Download the AdventureWorks database

July 3, 2017 Cookbook

Some of the sample templates which are delivered with XpressDox make use of one of the early instances of the Microsoft AdventureWorks SQL Server database.  This database can no longer be obtained from any Microsoft web site, and so a backup is made available here. You can download either the .bak file itself, by clicking […]

Read the full article →

Using a Stored Procedure as a Data Source

June 30, 2017 Cookbook

This Cookbook article refers to the AdventureWorks database which needs to be installed at a location available to your development environment. If you have not already done so, you can download the database from Download the AdventureWorks Database. It is assumed that you already know how to configure a datasource for a SQL Server database. […]

Read the full article →

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 →