XSL translator

The Extensible Stylesheet Language (XSL) is used to transform XML documents into display formats such as HTML.

In Sterling Selling and Fulfillment Foundation, a classpath can be used to find the XSL files included by the xsl:include directive. You can define the class to provide a custom URIResolver during XSL processing using the yfs.xsl.uriresolver property. By default, the value of this property is set to com.yantra.interop.util.YantraDefaultURIResolver.

If you want to specify a different class name, modify the yfs.xsl.uriresolver property in the <INSTALL_DIR>/properties/customer_overrides.properties file.

Note: If the yfs.xsl.uriresolver property is set to another class name, this new class will be used in place of the default YantraDefaultURIResolver class. The new class must implement the javax.xml.transform.URIResolver interface.

Configuration properties

The following are the properties of this node:

Table 1. XSL translator configuration properties
Property Description
XSL Name Enter the XSL template name. The location is relative to the CLASSPATH of the integration adapter.

Connection properties

The following are the XSL Translator node's connection properties:

Table 2. XSL translator connection properties
Connection Node Connection Rules
Can be the first node after the start node Only for services invoked synchronously
Can be placed before
  • Any transport node except for FTP or File I/O
  • Any other component node
Can be placed after
  • Start node
  • Any transport node except for FTP or File I/O
  • Any other component node
Passes data unchanged Yes. The XSL translator can manipulate data streams to fit specific business integration needs.