Skip to main content
Skip table of contents

Using Parameters in XSL Mappings

You can use global, project and system parameters in XSL stylesheets.

Examples

The following example shows the use of parameters in a mapping. Before using them, the relevant parameters must be inserted in the XSL stylesheet.

Creating a mapping 

The XSL mapping must be structured according to the following scheme. The parameters to be used must first be declared in the XSL stylesheet under their fully qualified name. Then they can be used as usual.

Example: XSL Mapping
XML
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="2.0">
  <xsl:output media-type="text/xml" method="xml"></xsl:output>
  <xsl:param name="PARAM_MyGroup_MyTargetHost"></xsl:param>
  <xsl:param name="PARAM_Thresholds_MinMessages"></xsl:param>
  <xsl:param name="PARAM_Thresholds_MaxMessages"></xsl:param>
  <xsl:template match="/">
    <Result>
      <MyGroup>
        <MyTargetHost><xsl:value-of select="$PARAM_MyGroup_MyTargetHost"></xsl:value-of></MyTargetHost>
      </MyGroup>
      <Thresholds>
        <MinMessages><xsl:value-of select="$PARAM_Thresholds_MinMessages"></xsl:value-of></MinMessages>
        <MaxMessages><xsl:value-of select="$PARAM_Thresholds_MaxMessages"></xsl:value-of></MaxMessages>
      </Thresholds>
    </Result>
  </xsl:template>
</xsl:stylesheet>

Modelling the Technical Process

  1. Create a new Technical Process via the menu New > Technical Process.

  2. Drag a file for the input of the mapping into the process.

  3. Drag the XSL mapping (see example) into the Technical Process. 

  4. Optional: Create a file to store the output of the mapping.

  5. Save the Technical Process and then run it.

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.