Currency Formatting

XML Publisher enables you to define specific currency format masks to apply to your published data at runtime.

To utilize currency formatting, you must:

  1. Define your currency formats in XML Publisher's Administration interface. See Defining Currency Formats.

  2. Assign the Currency Format Set as a configuration property at the desired level (site, data definition, or template). It is available from the FO Processing Properties list.

  3. Enter the format-currency command in your RTF template to apply the format to the field at runtime.

To use the format-currency command:

  1. In the form field dialog of the field you want to format, enter the following syntax:

    <?format-currency:ELEMENT_NAME;'currency-format-code'?>

    For example, to format an element from your XML file named CURRENT_BALANCE according to a currency code USD, enter the following in the form field for the element:

    <?format-currency:CURRENT_BALANCE;'USD'?>

    The currency code must correspond to a currency format that is defined in the Currency Format Set to be used with this report. The Currency Format Set can be specified at the site level, data definition level, or template level. For more information, see Defining Currency Formats.