Building Your Event-Driven Architecture : Service Development Help : Building XSLT Services : 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 Pipeline to the Style Sheet
 
Specifying New Values for Name/Value Pair
Defining Name/Value Pair as an XSLT Parameter
An XSLT service can pass name/value pairs from the pipeline to the style sheet to use while transforming the XML data.
First, using the xslParamInput input variable, specify a new value for the name/value pair you want to override. Then, define the name/value pair as an XSLT parameter in the XSLT style sheet. An XSLT parameter is an XSLT element similar to a variable, except that its value can be changed at the time the XSLT style sheet is processed.
At run time, the value of the XSLT parameter defined in the style sheet is replaced with the new value defined in the xslParamInput variable. The tasks that you need to perform to pass name/value pairs from the pipeline to the style sheet are:
Task 1
In the Pipeline, specify new values for each name/value pair you want to override in the style sheet. For more information about specifying new values for each name/value pair you want to override in the style sheet, see Specifying New Values for Name/Value Pair.
Task 2
Define each name/value pair as an XSLT parameter in the style sheet. For more information about defining each name/value pair as an XSLT parameter in the style sheet, see Defining Name/Value Pair as an XSLT Parameter.
Copyright © 2016 - 2016 Software AG, Darmstadt, Germany.

Product LogoContact Support   |   Community   |   Feedback