Send comment and bugs to:
last modified on January 25th 2000.
This discussion list is archived at http://xmlxslt.listbot.com/.
You wrote some XML, and have a XSL Template. You want to use this on your website, but want to use Perl with your webserver. No Problem!
Remember that this project is Work in Progress! Rome wasn't build in one day! Any comment is welcome! Any programming effort as well! This modules *is* great stuff, but it isn't finished yet! However, if you need a xsl command urgently, please email us your request and place it in our high priority to-do list.
XML::XSLT will convert the XML doc on basis of the template. It is written in Perl and works. Not all xsl commands are implemented yet. Nor is it fast. But meanwhile it works: watch it in action. At this moment we need a lot of input. So try this script and give us your comment on it. Missing/needed xsl elements, bugs, anything...
This document gives some explanation on this project. Other Stuff to read is the Specification of XSLT and the XSL(T)-by-example page (see links). Below, given is a list of XSLT-command's that are supported.
Oke, let's see it work. The script takes a project name <project>. The files <project>.xml and <project>.xsl are read and converted to an internal object tree with XML::DOM. Then the XSL template is parsed against the XML tree, which results in a new doc that is redirected to STDOUT. That's all.
Ofcourse, it need not be HTML. With XSLT you can convert any XML document with any XSL doc you like.
NB! These are the updated examples. They only work with version 0.13 or higher.
This is the CML project:
The Agenda project:
The script can be used as an CGI script, but also as a command-line utility. Also accepts a XSL Template other than <project>.xsl. These behaviours are selected with some options. Run xslt-parser without options or parameters at the commandline to view its syntax.
the -n option
the -s option
The latest release is v0.21 which needs as always testing (see changelog and manpage). Required are the modules XML::Parser (version 2.23 or higher) and XML::DOM (version 1.25 or higher) which can be obtained from CPAN. Our module also depends on the module LWP::UserAgent as was pointed out by a user. This module can also be downloaded from CPAN.
A changelog is also available. Older version can be downloaded from this page.
Submit new bugs at the on-line bug-report list here!