Table of Contents

Module: xslt trunk/xslt.py

xslt.py : XSL transformation with local 4Suite or xsltproc in eXistDA

Functions   
transform
xsltproc
  transform 
transform (
        xslStyleSheet,
        xmlInput,
        params=None,
        xsl_base_uri='',
        apply_xsl=1,
        encoding=utils.DEFAULT_ENCODING,
        )

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. Must be a string

  • apply_xsl : set to 1 (default) to apply the XSLT, 0 to return the XML string not transformed

  xsltproc 
xsltproc (
        xsl,
        xml,
        params,
        uri,
        encoding=utils.DEFAULT_ENCODING,
        )

Do the transformation, using xsltproc

Exceptions   
( 'Unable to complete XSLT with xsltproc' )

Table of Contents

This document was automatically generated on Wed Apr 4 20:49:08 2007 by HappyDoc version 2.1