| 21 | |
| 22 | == IFrames == |
| 23 | |
| 24 | Because a macro's output is embedded in the html of the wiki page, the |
| 25 | xsl-stylesheet must not produce a full html page. As an alternative, |
| 26 | you can pass the ''use_iframe'' option to the macro; this will cause |
| 27 | the macro put an <iframe> tag into the page instead of the results |
| 28 | from the stylesheet. The stylesheet can (and must) then generate a |
| 29 | complete html page. |
| 30 | |
| 31 | The downside of iframes is that you need to know the height of the |
| 32 | result in order to set the height of the iframe; otherwise you'll |
| 33 | either get extra space at the bottom or you'll have to scroll through |
| 34 | the frame. The macro generates some javascript to automatically set |
| 35 | this height, but that only works if the user has javascript enabled of |
| 36 | course. |
28 | | Download the zipped source from [download:xsltmacro here]. |
| 48 | To install as a simple macro, just download |
| 49 | [http://trac-hacks.org/svn/xsltmacro/0.9/xslt/Xslt.py this file] and |
| 50 | put it in your {{{wiki-macros}}} directory. |
| 51 | |
| 52 | To install as a plugin, download the zipped source from |
| 53 | [download:xsltmacro here], change the directory to |
| 54 | {{{xsltmacro/0.9}}}, run {{{python setup.py bdist_egg}}}, and copy the |
| 55 | resulting {{{dist/xslt-0.1-pyX.Y.egg}}} to your plugins directory. |