]> sipb.mit.edu Git - ikiwiki.git/blob - doc/plugins/contrib/xslt.mdwn
xslt plugin
[ikiwiki.git] / doc / plugins / contrib / xslt.mdwn
1 ## NAME
2
3 IkiWiki::Plugin::xslt - ikiwiki directive to process an XML file with XSLT
4
5 ## SYNOPSIS
6
7 \[[!xslt file="data1.xml" stylesheet="style1.xsl"]]
8
9 ## DESCRIPTION
10
11 IkiWiki::Plugin::xslt is an IkiWiki plugin implementing a directive
12 to process an input XML data file with XSLT, and output the result in
13 the page where the directive was called.
14
15 It is expected that the XSLT stylesheet will output valid HTML markup.
16
17 ## OPTIONS
18
19 There are two arguments to this directive.
20
21 * **file:**
22   The file which contains XML data to be processed.  This file is searched for using the usual IkiWiki mechanism, thus finding the file first in the same directory as the page, then in the directory above, and so on.
23
24 * **stylesheet:**
25   The file which contains XSLT stylesheet to apply to the XML data.  This file is searched for using the usual IkiWiki mechanism, thus finding the file first in the same directory as the page, then in the directory above, and so on.
26
27 ## PREREQUISITES
28
29     IkiWiki
30     XML::LibXML
31     XML::LibXSLT
32
33 ## DOWNLOAD
34
35 * browse at GitHub: <http://github.com/rubykat/ikiplugins/blob/master/IkiWiki/Plugin/xslt.pm>
36 * git repo at git://github.com/rubykat/ikiplugins.git
37