fr.paris.lutece.portal.service.html
Class XmlTransformerService

java.lang.Object
  extended by fr.paris.lutece.portal.service.html.XmlTransformerService

public abstract class XmlTransformerService
extends java.lang.Object

This class provides methods to transform XML documents using XSLT.


Constructor Summary
protected XmlTransformerService()
          Constructor
 
Method Summary
static java.lang.String transformBySource(java.lang.String strXml, byte[] baSource, java.util.Map<java.lang.String,java.lang.String> params)
          This method performes XSL transformation.
static java.lang.String transformBySource(java.lang.String strXml, byte[] baSource, java.util.Map<java.lang.String,java.lang.String> params, java.util.Properties outputProperties)
          This method performes XSL transformation.
static java.lang.String transformBySource(java.lang.String strXml, javax.xml.transform.Source sourceStyleSheet, java.util.Map<java.lang.String,java.lang.String> params, java.util.Properties outputProperties)
          This method performes XSL transformation.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XmlTransformerService

protected XmlTransformerService()
Constructor

Method Detail

transformBySource

public static java.lang.String transformBySource(java.lang.String strXml,
                                                 byte[] baSource,
                                                 java.util.Map<java.lang.String,java.lang.String> params)
This method performes XSL transformation.

Parameters:
strXml - The XML document content
baSource - The XSL source
params - Parameters that can be used by the XSL stylesheet
Returns:
The output document

transformBySource

public static java.lang.String transformBySource(java.lang.String strXml,
                                                 byte[] baSource,
                                                 java.util.Map<java.lang.String,java.lang.String> params,
                                                 java.util.Properties outputProperties)
This method performes XSL transformation.

Parameters:
strXml - The XML document content
baSource - The XSL source
params - Parameters that can be used by the XSL stylesheet
outputProperties - properties to use for the xsl transform. Will overload the xsl output definition.
Returns:
The output document

transformBySource

public static java.lang.String transformBySource(java.lang.String strXml,
                                                 javax.xml.transform.Source sourceStyleSheet,
                                                 java.util.Map<java.lang.String,java.lang.String> params,
                                                 java.util.Properties outputProperties)
This method performes XSL transformation.

Parameters:
strXml - The XML document content
sourceStyleSheet - The XSL source
params - Parameters that can be used by the XSL stylesheet
outputProperties - properties to use for the xsl transform. Will overload the xsl output definition.
Returns:
The output document


Copyright © 2009 Mairie de Paris. All Rights Reserved.