Edgewall Software

Changes between Version 6 and Version 7 of Recipe Commands


Ignore:
Timestamp:
Oct 3, 2005, 9:49:52 PM (19 years ago)
Author:
cmlenz
Comment:

Add doc for new XSLT command

Legend:

Unmodified
Added
Removed
Modified
  • Recipe Commands

    v6 v7  
    153153|| `file` || Path of the script to execute, relative to the project source directory. ||
    154154|| `module` || Name of the Python module to execute. ||
     155|| `function` || Name of the function in the Python module to run. Only works when also specifying the `module` attribute. ||
    155156|| `args` || Any arguments that should be passed to the script. ||
    156157|| `output` || Path to a file where any output by the script should be recorded. ||
     
    234235 <python:pylint file="build/pylint.out" />
    235236}}}
     237
     238----
     239
     240== XML Tools ==
     241
     242A collection of recipe commands for XML processing.
     243
     244 ''Namespace'':: `http://bitten.cmlenz.net/tools/xml`
     245 ''Common prefix'':: `x`
     246
     247=== `<x:transform>` ===
     248
     249Apply an XSLT stylesheet .
     250
     251''Note that this command requires either [http://xmlsoft.org/XSLT/ libxslt] (with [http://xmlsoft.org/XSLT/python.html Python bindings]) or, on Windows platforms, MSXML (version 3 or later) to be installed on the slave machine.''
     252
     253==== Parameters ====
     254
     255|| Name || Description ||
     256|| `src` || Path of the source XML file. ||
     257|| `dest` || Path of the destition XML file. ||
     258|| `stylesheet` || Path to the XSLT stylesheet file. ||
     259
     260All these are interpreted relative to the project source directory.
     261
     262==== Examples ====
     263
     264{{{
     265 <x:transform src="src.xml" dest="dest.xml" stylesheet="util/convert.xsl" />
     266}}}
     267
     268This applies the stylesheet in `util/convert.xsl` to the source file `src.xml`, and writes the resulting XML document to `dest.xml`.