| 237 | |
| 238 | ---- |
| 239 | |
| 240 | == XML Tools == |
| 241 | |
| 242 | A 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 | |
| 249 | Apply 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 | |
| 260 | All 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 | |
| 268 | This applies the stylesheet in `util/convert.xsl` to the source file `src.xml`, and writes the resulting XML document to `dest.xml`. |