You can use XPath to formulate logical conditions in the mappings, so it is very easy to implement case differentiations in mappings.
If you enter the following XPath expressions as selection of a RuleSet, rules within this Ruleset are only applied if the XPath expression applies, i. e. logical “true” results.
Logical expression | Description |
---|---|
[@DocNumber>0] | If DocNumber has a value greater than 0, execute rule of a ruleset. |
[@DocNumber>0 and @DocNumber<2] | If DocNumber has a value greater than 0 and less than 2, execute rule of a ruleset. |
[@DocNumber>0 or @DocNumber>2] | If DocNumber has a value greater than 0 or greater than 2, execute rule of a ruleset. |
[@DocNumber>=1] | If DocNumber has a value greater than or equal to 1, execute rule of a ruleset. |
[@DocNumber!=0] | If DocNumber has a value other than 0, execute rule of a ruleset. |