Class XmlTransformerService
java.lang.Object
fr.paris.lutece.portal.service.html.XmlTransformerService
This class provides methods to transform XML documents using XSLT.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidThis method clean XSL transformer cachetransformBySourceWithXslCache(String strXml, byte[] baSource, String strStyleSheetId, Map<String, String> params) This method performs XSL transformation with cache.transformBySourceWithXslCache(String strXml, byte[] baSource, String strStyleSheetId, Map<String, String> params, Properties outputProperties) This method performs XSL transformation with cache.transformBySourceWithXslCache(String strXml, StyleSheet xslSource, Map<String, String> params) This method performs XSL transformation with cache.transformBySourceWithXslCache(String strXml, StyleSheet xslSource, Map<String, String> params, Properties outputProperties) This method performs XSL transformation with cache.transformBySourceWithXslCache(String strXml, Source sourceStyleSheet, String strStyleSheetId, Map<String, String> params, Properties outputProperties) This method performs XSL transformation with cache.transformBySourceWithXslCache(Source sourceXml, Source sourceStyleSheet, String strStyleSheetId, Map<String, String> params, Properties outputProperties) This method performs XSL transformation with cache.
-
Constructor Details
-
XmlTransformerService
public XmlTransformerService()
-
-
Method Details
-
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
-