XpressDox Help Center

Use Google To Find Help Fast, e.g. xpressdox choosefromlist

Press Getting Started in the XpressDox toolbar for basic template development
Watch the tutorial videos
View command help from list of commands
Press F1 for help on a command in the Command Editor
Email support@xpressdox.com for assistance

The RegionToX and XToRegion Functions

The RegionToX and XToRegion Functions

These two functions work in tandem in those situations where calculations are to be done and the formats of the numbers involved need to be converted from regional-settings compliant format to a format where they can be used in the calculation. This latter format is referred to as “XSLT compliant”. The article Calculations and Regional Settings describes this in detail.


This will convert a number which is known to conform to the regional settings so that it can be used in a calculation, for example:

«SetVr('ExtendedPrice',RegionToX(UnitPrice) * RegionToX(Quantity))»


Use this to convert the result of a calculation so that it is rendered in a format that conforms to the regional settings:


The contents of this article apply to Version 4 (and later) of XpressDox.

Leave a Reply