Skip to topic | Skip to bottom
Home

TWiki
TWiki.SablotronPluginr1.7 - 21 Feb 2006 - 00:19 - AngeloDiIoriotopic end

Start of topic | Skip to actions

SablotronPlugin

This is the SablotronPlugin. It uses XML::Sablotron to transform an XSL stylesheet and XML data file into HTML. Both the XSL stylesheet and XML document are Wiki Topics.

Syntax Rules

Place the directive %XSLTRANSFORM{xsl="SablotronXsl",xml=...}% at the top of the XML document where SablotronXsl is the name of the stylesheet and ... is the xml codes.

SablotronPlugin Settings

  • Debug plugin: (See output in data/debug.txt)
    • Set DEBUG = 0

Plugin Installation Instructions

Design History

  • Thanks to MartinCleaver? for the XmlXslPlugin?. My browser apparently does not have the feature needed to do client-side transformations so I make use of XML::Sablotron to perform the transformation on the server.
  • I wanted to be able to see the transformation take place during the Preview Changes of an XML document. This way any extraneous characters or parsing problems will show up as an error.

Issues Outstanding

  • Double quotes are used in the xml code so cannot follow proper form for TWiki::Func::extractNameValuePair
  • In most cases of error in the XML the result is an "Internal Server Error" - viewing the web server error log tells you the line number to fix. I really should handle this in the plugin.

Plugin Info

Plugin Author: CharlieReitsma?
Plugin Version: 13 Mar 2002
Change History: 13 Mar 2002: Bug Fixes
12 Mar 2002: Initial version
CPAN Dependencies: XML::Sablotron
Other Dependencies:  
Perl Version: 5.0
Plugin Home: http://TWiki.org/cgi-bin/view/Plugins/SablotronPlugin
Feedback: http://TWiki.org/cgi-bin/view/Plugins/SablotronPluginDev

Related Topics: TWikiPreferences, TWikiPlugins

-- CharlieReitsma? - 13 Mar 2002

to top


You are here: TWiki > SablotronPlugin

to top

Copyright © Fabio Vitali 2017 Last update of SablotronPlugin on 21 Feb 2006 - 00:19 by AngeloDiIorio