Package bitten :: Package build :: Module xmltools

Module xmltools

Recipe commands for XML processing.
Functions
 
transform(ctxt, src=None, dest=None, stylesheet=None)
Apply an XSLT stylesheet to a source XML document.
Variables
  have_libxslt = False
  have_msxml = False
  log = logging.getLogger('bitten.build.xmltools')
  __package__ = 'bitten.build'
Function Details

transform(ctxt, src=None, dest=None, stylesheet=None)

 

Apply an XSLT stylesheet to a source XML document.

This command requires either libxslt (with Python bindings), or MSXML to be installed.

Parameters:
  • ctxt (Context) - the build context
  • src - name of the XML input file
  • dest - name of the XML output file
  • stylesheet - name of the file containing the XSLT stylesheet