Changes between Version 3 and Version 4 of XsltMacro


Ignore:
Timestamp:
May 15, 2006, 10:58:07 AM (18 years ago)
Author:
ronald
Comment:

The macro can now be installed as a regular plugin too

Legend:

Unmodified
Added
Removed
Modified
  • XsltMacro

    v3 v4  
    1111For more details see the documentation in the macro.
    1212
     13The macro can either be installed as a simple macro or as a plugin;
     14the ''use_iframe'' option (see below) only works when installed as a
     15plugin.
     16
    1317This macro requires that [http://xmlsoft.org/ libxml2],
    1418[http://xmlsoft.org/ libxslt], and their python bindings are
    1519installed.
    1620
     21
     22== IFrames ==
     23
     24Because a macro's output is embedded in the html of the wiki page, the
     25xsl-stylesheet must not produce a full html page. As an alternative,
     26you can pass the ''use_iframe'' option to the macro; this will cause
     27the macro put an <iframe> tag into the page instead of the results
     28from the stylesheet. The stylesheet can (and must) then generate a
     29complete html page.
     30
     31The downside of iframes is that you need to know the height of the
     32result in order to set the height of the iframe; otherwise you'll
     33either get extra space at the bottom or you'll have to scroll through
     34the frame. The macro generates some javascript to automatically set
     35this height, but that only works if the user has javascript enabled of
     36course.
    1737
    1838== Bugs/Feature Requests ==
     
    2646== Download ==
    2747
    28 Download the zipped source from [download:xsltmacro here].
     48To install as a simple macro, just download
     49[http://trac-hacks.org/svn/xsltmacro/0.9/xslt/Xslt.py this file] and
     50put it in your {{{wiki-macros}}} directory.
     51
     52To 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
     55resulting {{{dist/xslt-0.1-pyX.Y.egg}}} to your plugins directory.
    2956
    3057== Source ==
     
    4067[[Xslt(format.xsl, info.xml)]]
    4168
     69Here's how you would tell it to use an iframe:
     70{{{
     71[[Xslt(format.xsl, info.xml, use_iframe, if_height=500)]]
     72}}}
     73
    4274== Recent Changes ==
    4375
     
    4880'''Author:''' [wiki:roadrunner] [[BR]]
    4981'''Contributors:'''
     82
     83== User Comments ==
     84
     85Feel free to leave any comments about the plugin here.
     86
     87[[AddComment]]
     88