= XSL-Transformation Macro
The XsltMacro allows you to embed the result of an XSL-transformation in a page. It takes two parameters, a stylesheet and a document to transform. These can be an attachment on any wiki-page or ticket, any page from the htdocs area, any file in the repository, or any url (these options are similar to those for Trac's native [http://projects.edgewall.com/trac/wiki/WikiMacros#AvailableMacros ImageMacro]).
For more details see the documentation in the macro.
The following table is produced with this macro call:
Here's how you would tell it to use an iframe:
[[Xslt(format.xsl, info.xml, use_iframe, if_height=500)]]
For the full docs see the WikiMacros page after installing this macro.
The macro can either be installed as a simple macro or as a plugin; the ''use_iframe'' and ''use_object'' options (see below) only work when installed as a plugin.
This macro requires that [http://xmlsoft.org/ libxml2], [http://xmlsoft.org/ libxslt], and their python bindings are installed.
Because a macro's output is embedded in the html of the wiki page, the xsl-stylesheet must not produce a full html page. As an alternative, you can pass the ''use_iframe'' or ''use_object'' option to the macro; this will cause the macro put an
||42 Easy St
||1 Heavenly Way