Software AG Products 10.7 | Integrating On-Premises and Cloud Applications | Service Development | Building XSLT Services | Using Name/Value Pairs with an XSLT Service
 
Using Name/Value Pairs with an XSLT Service
 
Passing Name/Value Pairs from the Pipeline to the Style Sheet
Passing Name/Value Pairs from the Style Sheet to the Pipeline
Sample Style Sheet: Adding Name/Value Pairs to the Pipeline
The XML data passed to an XSLT service for transformation might contain elements that include a name/value pair, which consists of an XML attribute and its corresponding value. For example, in the XML element <customer custid=”wm339”>, custid=”wm339” is a name/value pair.
Using the appropriate instructions in the XSLT style sheet in conjunction with the XSLT service xslParamInput parameter, you can:
*Override the value of a name/value pair defined in the style sheet. By passing a new value from the pipeline to the style sheet you can specify values during the transformation that were not available when you wrote the style sheet, and run different transformations without changing the underlying XSLT style sheet.
*Define a new name/value pair in the style sheet, and pass it to the pipeline when you run the service.