Throughout the XpressDox documentation, reference is made to Commands and also to Functions. Syntactically commands and functions appear the same, but their functionality is different and in some cases this difference is important. A rule
XpressDox offers various ways of connecting templates in some way; IncludeTemplate, IncludeCodeTemplate, InsertTemplate as well as MergeTemplate and RunTemplate. But what is the difference between all these commands and functions? Below is a summary
When designing interviews that will be used on web, or that will be integrated interviews, there are commands which should be considered: EnableWebLocalSave Enables the “Save Local” feature in the browser interview. EnableWebPreview
In some situations, the name of a file to be included in the document is contained in the Data Set. In these cases, instead of
IncludeTemplate, the command
InsertDocument is used.
Parameterized scripts assist with the re-use of XpressDox code Here are some examples of Scripts which may be useful: Write out a full name from individual data elements: «Script(FullName,FirstName,MiddleName,LastName)» «concat(SuffixWith(&FirstName&,’ ‘),SuffixWith(&MiddleName&,’ ‘),&LastName&)» «ScriptEnd()» The
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 numbers presented
When entering dates for a contract, it is important to get them right during the interview. It might be possible to control this via the Rule command, but often it is very useful to reflect
Performing calculations on currency amounts Probably the most accurate way to perform arithmetic on money values in XpressDox is to reduce all currency to integer values (e.g. Dollars to cents, Pounds to pence, etc), perform
It would be really useful for XpressDox to be able to present an interview in French if the user is a French speaker, and in English for English users, where the document itself is in English. For the same template. And vice versa. XpressDox can indeed do that, as long as the template author marks up the template accordingly.