Acme-SList-XSLT Version 0.01
Schedule batch files for the SList suite of programs
SYNOPSIS
use Acme::SList::XSLT;
print "XSLT Module being used is: ", Acme::SList::XSLT->module, "\n";
print "XML Module being used is: ", Acme::SList::XML->module, "\n";
print "\n";
my $parser = Acme::SList::XML->new();
my $xslt = Acme::SList::XSLT->new();
my $source = $parser->parse_string(
q{<?xml version="1.0" encoding="iso-8859-1"?>
<index>
<data>aaa</data>
<data>bbb</data>
<data>ccc</data>
<data>ddd</data>
</index>
});
my $style_doc = $parser->parse_string(
q{<?xml version="1.0" encoding="iso-8859-1"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="xml" indent="yes" encoding="iso-8859-1"/>
<xsl:template match="/">
<html>
<body>
<title>Test</title>
Data:
<hr/>
<xsl:for-each select="index/data">
<p>Test: *** <xsl:value-of select="."/> ***</p>
</xsl:for-each>
</body>
</html>
</xsl:template>
</xsl:stylesheet>
});
my $stylesheet = $xslt->parse_stylesheet($style_doc);
my $results = $stylesheet->transform($source);
print $stylesheet->output_string($results);
INSTALLATION
To install this module, run the following commands:
perl Makefile.PL
make
make test
make install
SUPPORT AND DOCUMENTATION
After installing, you can find documentation for this module with the
perldoc command.
perldoc Acme::SList::XSLT
You can also look for information at:
RT, CPAN's request tracker
http://rt.cpan.org/NoAuth/Bugs.html?Dist=Acme-SList-XSLT
AnnoCPAN, Annotated CPAN documentation
http://annocpan.org/dist/Acme-SList-XSLT
CPAN Ratings
http://cpanratings.perl.org/d/Acme-SList-XSLT
Search CPAN
http://search.cpan.org/dist/Acme-SList-XSLT/
AUTHOR
Klaus Eichner <klaus03@gmail.com>
COPYRIGHT AND LICENSE
Copyright (C) 2009-2011 by Klaus Eichner
All rights reserved. This program is free software; you can redistribute
it and/or modify it under the terms of the artistic license 2.0,
see http://www.opensource.org/licenses/artistic-license-2.0.php