Contents

Popular
 Contents

The XML policy allows user to configure source and target document structures using Fiorano Mapper and create an XSL used for transforming documents. Alternatively, it allows users to define XSL created using external tools. Documents passed to the component are transformed using the XSL defined.

Xalan (2.7.0) and Saxon (8.4) transformer implementations are bundled with Fiorano environment for performing transformations.

Icon

To retrieve simple elements from XML, Assign Variables policy with XPath option is preferred. 

Configuration

The properties that have to be configured to use the policy are described below.


Figure 1: XML to XML Policy Configuration attributes

Property
Description

Skip Namespaces

Whether to skip adding namespace declarations to XML elements while conversion or not.
XSLT Engine

Select the XSL Transformation engine to be used. Below are the available options:

  • Xalan
    Xalan implementation (org.apache.xalan.processor.TransformerFactoryImpl) is used to perform transformation.
  • Saxon
    Saxon implementation (net.sf.saxon.TransformerFactoryImpl) is used to perform transformation.

    Icon

    Saxon implementation does not support custom functions

  • Other
    This option should be used when a custom transformer implementation has to be used. Selecting this option shows property Transformer factory class which can be used to provide the transformation factory implementation that should be used.
XSL

This is an XML-based style sheet which defines the XSL that is used to transform source data to the desired output.

It is the language for expressing style sheets. An XSL style sheet, like with CSS, is a file that describes how to display an XML document of a given type.

Example

To retrieve only the body from a SOAP based web service response, please use the following XSL:

Stripping SOAP envelope
Adaptavist ThemeBuilder EngineAtlassian Confluence