You can pass parameters to an XSL stylesheet using specified values
in <xsl:param> elements. These values are
then used in the templates defined throughout the stylesheet.
Using the XSLT Transformation filter, you can
pass the values of message attributes to the configured stylesheet.
For example, you can take the value of the
authentication.subject.id message attribute,
pass it to the configured XSL stylesheet, and then output this value
to the result produced by the conversion.
To use this feature, select the Use Message Attributes as
Stylesheet Parameters checkbox, and specify the message
attribute to pass to the stylesheet by clicking the Add
button.
The following example from an XSL stylesheet that uses parameters shows
how to configure this:
| | |
|
<xsl:param name="authentication.subject.id"/>
<xsl:param name="authentication.issuer.id"/>
| |
| | |
|
To pass the corresponding message attribute values to the stylesheet,
you must add the authentication.subject.id
and authentication.issuer.id message attributes to
the Message Attributes to use table.
Important Note:
The name of the specified parameter must be a valid Enterprise Gateway message
attribute name, and there must be an equivalent parameter
name in the stylesheet.
|