ZMSGlobals.xslProcess(xsl, xml)
Version: ZMS 2.0; deprecated with 2.11: Use ZMSGlobals.processData('xslt') instead.
BESCHREIBUNG:
Transforms the XML-stream given by the input parameter xml with the XSL-transformation given by the input parameter xsl.
Note: With introduction of the filter interface since ZMS 2.1 function ZMSGlobals.xslProcess() is substituted by ZMSGlobals.processData().
EINGABE-PARAMETER:
xml[string]: stream of the XML-documents
xsl[string]: stream of the XSL-transformation
AUSGABE-PARAMETER:
xml[string]: stream of the transformed XML-document
| [1] |
In the example the XML stored in the attribute text is transformed with the XSL-transformation trafo.xsl from the common-folder and stored in the attribute html:
<!-- Process xml-text to html -->
<dtml-call "REQUEST.set('xmlin',getObjProperty('text',REQUEST))">
<dtml-call "REQUEST.set('xsl',_.getattr(common,'trafo.xsl'))">
<dtml-call "REQUEST.set('xmlout',xslProcess(xsl,xmlin))">
<!-- Cache html in object -->
<dtml-call "setObjStateModified(REQUEST)">
<dtml-call "setObjProperty('html',xmlout,lang)">
<dtml-call "onChangeObj(REQUEST)">
|