fr.paris.lutece.util.xml
Class XmlTransformer

java.lang.Object
  extended by fr.paris.lutece.util.xml.XmlTransformer

public final class XmlTransformer
extends java.lang.Object

This class provides methods to transform XML documents using XSLT with cache


Constructor Summary
XmlTransformer()
           
 
Method Summary
static void cleanTransformerList()
          Remove all Transformer instance from cache
 java.lang.String transform(javax.xml.transform.Source source, javax.xml.transform.Source stylesheet, java.lang.String strStyleSheetId, java.util.Map<java.lang.String,java.lang.String> params, java.util.Properties outputProperties)
          Transform XML documents using XSLT with cache
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XmlTransformer

public XmlTransformer()
Method Detail

cleanTransformerList

public static void cleanTransformerList()
Remove all Transformer instance from cache


transform

public java.lang.String transform(javax.xml.transform.Source source,
                                  javax.xml.transform.Source stylesheet,
                                  java.lang.String strStyleSheetId,
                                  java.util.Map<java.lang.String,java.lang.String> params,
                                  java.util.Properties outputProperties)
                           throws java.lang.Exception
Transform XML documents using XSLT with cache

Parameters:
source - The XML document content
stylesheet - The XSL source
strStyleSheetId - The StyleSheet Id
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
Throws:
java.lang.Exception - The exception


Copyright © 2011 Mairie de Paris. All Rights Reserved.