Skip to content

XSL Plug-in

This is a plug-in that transform a xml stream by using XSL code from the rpl file. The output is a stream. In order to use it a number properties has to be set in the rpl file.

Report Plug-in Layout

Layout properties

The required layout properties for the xsl plug-in:

Name Value
plugin-type XSL
plugin-class ifs.application.reportingservices.impl.extendedformatter.xslplugin.XSLPlugin
output-extension xml

Plug-in properties

This plug-in does not use any properties.

Plug-in data

The XSL code is written inside the <data> tag of the rpl. The expected format is:

    <![CDATA[Write your xsl code here!]]>  

Plug-in variables

This plug-in does not use the variable tag of the report plug-in layout.


An example of a rpl file with xsl code that transforms a xml file into a csv file.

<?xml version="1.0" encoding="UTF-8"?>  
        <layout-type>XSL</layout-type> <!--SCRIPT,XSL,XML,EXCEL-->  
        <output-method>FILE</output-method> <!-- BINARY,FILE,E-MAIL-->  
   <e-mail-subject>Email Subject</e-mail-subject>  
Email Body Content from the RPL  
        <report-title>RPL LAYOUT</report-title>  
            <!-- not used by this plugin -->  
                <xsl:stylesheet version="1.0" xmlns:xsl="">  
                    <xsl:output method="text" encoding="UTF-8"/>  
                    <xsl:param name="delim" select="string(';')" />  
                    <xsl:param name="quote" select="string('&quot;')" />  
                    <xsl:param name="break" select="string('&#xD;')" />  
                    <xsl:template match="/">  
                        <xsl:apply-templates select="*/Row" />  
                    <xsl:template match="Row">  
                        <xsl:apply-templates />  
                        <xsl:if test="following-sibling::*">  
                            <xsl:value-of select="$break" />  
                    <xsl:template match="*">  
                        <xsl:value-of select="concat($quote, normalize-space(.), $quote)" />  
                        <xsl:if test="following-sibling::*">  
                            <xsl:value-of select="$delim" />  
                    <xsl:template match="text()" />  
            <!-- not used by this plugin -->