Class XmlTransformerService
- java.lang.Object
-
- fr.paris.lutece.portal.service.html.XmlTransformerService
-
public final class XmlTransformerService extends java.lang.ObjectThis class provides methods to transform XML documents using XSLT.
-
-
Constructor Summary
Constructors Constructor Description XmlTransformerService()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static voidclearXslCache()This method clean XSL transformer cachejava.lang.StringtransformBySourceWithXslCache(java.lang.String strXml, byte[] baSource, java.lang.String strStyleSheetId, java.util.Map<java.lang.String,java.lang.String> params)This method performs XSL transformation with cache.java.lang.StringtransformBySourceWithXslCache(java.lang.String strXml, byte[] baSource, java.lang.String strStyleSheetId, java.util.Map<java.lang.String,java.lang.String> params, java.util.Properties outputProperties)This method performs XSL transformation with cache.java.lang.StringtransformBySourceWithXslCache(java.lang.String strXml, StyleSheet xslSource, java.util.Map<java.lang.String,java.lang.String> params)This method performs XSL transformation with cache.java.lang.StringtransformBySourceWithXslCache(java.lang.String strXml, StyleSheet xslSource, java.util.Map<java.lang.String,java.lang.String> params, java.util.Properties outputProperties)This method performs XSL transformation with cache.java.lang.StringtransformBySourceWithXslCache(java.lang.String strXml, javax.xml.transform.Source sourceStyleSheet, java.lang.String strStyleSheetId, java.util.Map<java.lang.String,java.lang.String> params, java.util.Properties outputProperties)This method performs XSL transformation with cache.java.lang.StringtransformBySourceWithXslCache(javax.xml.transform.Source sourceXml, javax.xml.transform.Source sourceStyleSheet, java.lang.String strStyleSheetId, java.util.Map<java.lang.String,java.lang.String> params, java.util.Properties outputProperties)This method performs XSL transformation with cache.
-
-
-
Method Detail
-
transformBySourceWithXslCache
public java.lang.String transformBySourceWithXslCache(java.lang.String strXml, StyleSheet xslSource, java.util.Map<java.lang.String,java.lang.String> params)This method performs XSL transformation with cache.- Parameters:
strXml- The XML document contentxslSource- The XSL sourceparams- Parameters that can be used by the XSL StyleSheet- Returns:
- the output html
-
transformBySourceWithXslCache
public java.lang.String transformBySourceWithXslCache(java.lang.String strXml, StyleSheet xslSource, java.util.Map<java.lang.String,java.lang.String> params, java.util.Properties outputProperties)This method performs XSL transformation with cache.- Parameters:
strXml- The XML document contentxslSource- The XSL sourceparams- Parameters that can be used by the XSL StyleSheetoutputProperties- Properties to use for the XSL transform. Will overload the XSL output definition.- Returns:
- the output html
-
transformBySourceWithXslCache
public java.lang.String transformBySourceWithXslCache(java.lang.String strXml, byte[] baSource, java.lang.String strStyleSheetId, java.util.Map<java.lang.String,java.lang.String> params)This method performs XSL transformation with cache.- Parameters:
strXml- The XML document contentbaSource- The XSL sourcestrStyleSheetId- The StyleSheet Idparams- Parameters that can be used by the XSL StyleSheet- Returns:
- The output document
-
transformBySourceWithXslCache
public java.lang.String transformBySourceWithXslCache(java.lang.String strXml, byte[] baSource, java.lang.String strStyleSheetId, java.util.Map<java.lang.String,java.lang.String> params, java.util.Properties outputProperties)This method performs XSL transformation with cache.- Parameters:
strXml- The XML document contentbaSource- The XSL sourcestrStyleSheetId- The StyleSheet Idparams- Parameters that can be used by the XSL StyleSheetoutputProperties- Properties to use for the XSL transform. Will overload the XSL output definition.- Returns:
- The output document
-
transformBySourceWithXslCache
public java.lang.String transformBySourceWithXslCache(java.lang.String strXml, javax.xml.transform.Source sourceStyleSheet, java.lang.String strStyleSheetId, java.util.Map<java.lang.String,java.lang.String> params, java.util.Properties outputProperties)This method performs XSL transformation with cache.- Parameters:
strXml- The XML document contentsourceStyleSheet- The XSL sourcestrStyleSheetId- The StyleSheet Idparams- Parameters that can be used by the XSL StyleSheetoutputProperties- the output parameter- Returns:
- The output document
-
transformBySourceWithXslCache
public java.lang.String transformBySourceWithXslCache(javax.xml.transform.Source sourceXml, javax.xml.transform.Source sourceStyleSheet, java.lang.String strStyleSheetId, java.util.Map<java.lang.String,java.lang.String> params, java.util.Properties outputProperties)This method performs XSL transformation with cache.- Parameters:
sourceXml- The XML document contentsourceStyleSheet- The XSL sourcestrStyleSheetId- The StyleSheet Idparams- Parameters that can be used by the XSL StyleSheetoutputProperties- the output parameter- Returns:
- The output document
-
clearXslCache
public static void clearXslCache()
This method clean XSL transformer cache
-
-