It takes an an (HTTP) URL to a XLST file, which is used to transform the XML content. The XSLT file may include absolute links to other files.
This component can not be used as the first component in a flow, since it expects to consume XML exchanges.
The XSLT component has the following configuration options:
Property | Description |
URL | Path to XSLT file that defines the transformation |
XSLT File | A xslt file that has been uploaded to be used with the flow. |
- You can't use both options in the XSLT component. You can only use one or the other.
- Using the
has an advantage on theURL
. When using theXSLT File
property your xslt file are also versioned with your flow versions. That isn't the case when you use theURL
! - The XSLT component has to be configured with an (HTTP) URL
It also has a Compile XSLT
button, that validates whether Dovetail can access the XSLT file and that the XSLT file is valid.
The XSLT component compiles the XSLT during installation and caches it. Changes to a XSLT file will not take effect unless an integration flow is re=depolyed/re-installed.
Special care with the XSLT
Any files referenced inside the XSLT must have an absolute http url that can be reached by Dovetail ESB, otherwise it will not be able to find these resources.
<!-- DON'T DO THIS -->
<xsl:with-param name="file" select="'./codeconversion.xml'" as="item()"/>
<!-- DO THIS INSTEAD! -->
<xsl:with-param name="file" select="'http://dovetail.example.local/xslt/codeconversion.xml'" as="item()"/>