transform (
xslStyleSheet,
xmlInput,
params=None,
xsl_base_uri='',
apply_xsl=1,
)
Performs an XSL transformation of xmlInput with xslStyleSheet . Returns a string containing the result of the XSLT.
xslStyleSheet : a string or stream containing the XSL to use
xmlInput : the XML string to be transformed
params : a dict containing the parameters to be passed to the xsl
xsl_base_uri : base uri of the XSL
apply_xsl : set to 1 (default) to apply the XSLT, 0 to return the XML string not transformed
|