B2B Integration : Trading Networks Administrator's Guide : Creating XML Document Types : Creating an XML Document Type : Specifying Document Attributes to Extract : Transforming Extracted Attributes : Built-In Transformations for STRING or STRING LIST Data Type Attributes
Built-In Transformations for STRING or STRING LIST Data Type Attributes
If you extract an attribute that has the data type STRING or STRINGLIST, you can transform the string value using one of the built-in transformations below.
Format
Description
Uppercase
Transforms the extracted string attribute value to all uppercase.
Lowercase
Transforms the extracted string attribute to all lowercase.
String Substitution
Substitutes extracted values with a pattern you specify. Trading Networks uses the java.text.MessageFormat class to perform this transformation.
For example, you might specify the pattern Items Ordered: {0}, {1}, {2}, and specify an XQL query for the attribute that extracts this array of values:
0 Cellular phone
1 Belt clip
2 Rapid mobile charger
Trading Networks would store the following for the value of the attribute:
Items Ordered: Cellular phone, Belt clip, Rapid mobile charger
If you place more arguments in the pattern than there are extracted values, the string stored in the database for the attribute will contain the extra arguments. If you specify fewer arguments than there are extracted values, the string will contain only the values for the number of arguments.
Copyright © 2016- 2017 Software AG, Darmstadt, Germany.

Product LogoContact Support   |   Community   |   Feedback