Class XmlTransformerService
- java.lang.Object
-
- fr.paris.lutece.portal.service.html.XmlTransformerService
-
public final class XmlTransformerService extends Object
This 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 cacheStringtransformBySourceWithXslCache(String strXml, byte[] baSource, String strStyleSheetId, Map<String,String> params)This method performs XSL transformation with cache.StringtransformBySourceWithXslCache(String strXml, byte[] baSource, String strStyleSheetId, Map<String,String> params, Properties outputProperties)This method performs XSL transformation with cache.StringtransformBySourceWithXslCache(String strXml, StyleSheet xslSource, Map<String,String> params)This method performs XSL transformation with cache.StringtransformBySourceWithXslCache(String strXml, StyleSheet xslSource, Map<String,String> params, Properties outputProperties)This method performs XSL transformation with cache.StringtransformBySourceWithXslCache(String strXml, Source sourceStyleSheet, String strStyleSheetId, Map<String,String> params, Properties outputProperties)This method performs XSL transformation with cache.StringtransformBySourceWithXslCache(Source sourceXml, Source sourceStyleSheet, String strStyleSheetId, Map<String,String> params, Properties outputProperties)This method performs XSL transformation with cache.
-
-
-
Method Detail
-
transformBySourceWithXslCache
public String transformBySourceWithXslCache(String strXml, StyleSheet xslSource, Map<String,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 String transformBySourceWithXslCache(String strXml, StyleSheet xslSource, Map<String,String> params, 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 String transformBySourceWithXslCache(String strXml, byte[] baSource, String strStyleSheetId, Map<String,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 String transformBySourceWithXslCache(String strXml, byte[] baSource, String strStyleSheetId, Map<String,String> params, 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 String transformBySourceWithXslCache(String strXml, Source sourceStyleSheet, String strStyleSheetId, Map<String,String> params, 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 String transformBySourceWithXslCache(Source sourceXml, Source sourceStyleSheet, String strStyleSheetId, Map<String,String> params, 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
-
-