Extended Properties Reference


Here’s a detailed and structured explanation of the Extended Token Syntax properties in XDOC, including formatting, cleansing, and value mapping:

Extended Token Syntax – Instruction Properties

Extended tokens allow you to apply formatting, cleansing, and value mapping to token data using additional properties. These are placed after the token name, separated by vertical bars (|), and must follow a positional order.

Syntax Format:

$NAMESPACE.tokenName|dataType|dataFormat|dataMaxLen|mappedValues$

1. dataType

Specifies the type of data being formatted.\ Valid values:

This maps to .NET IXDataFormatter interface classes. Developers can plug in custom formatters if needed.

2. dataFormat

Defines the format mask to apply, based on the dataType.

For date and number:

Use any valid .NET format mask (e.g., yyyy-MM-dd, 0000.00).

For string:

You can use special formatting and cleansing masks:

Formatting Masks:

Cleansing Masks:

Multiple masks can be combined using commas:\ uppercase,alpha → Converts to uppercase and removes non-alphabetic characters

3. dataMaxLen

Specifies the maximum length of the final output after formatting.\ If the result exceeds this length, it will be truncated.

Example:

$CONTAINER.name|string|uppercase,alpha|10$

4. mappedValues

Allows you to remap values using a delimiter-separated list of key-value pairs.

Syntax:

<delimiter><key1><value1><key2><value2>...

Example:

$CONTAINER.docType|string|||,1,tif,2,pdf,3,other$

Example Token with All Properties:

$CONTAINER.loanNumber|number|000000000|9,,1,LoanA,2,LoanB$