[libxml-saxon-xslt2-perl] 15/18: release new version incl bug fix; upgrade build system
Jonas Smedegaard
dr at jones.dk
Mon Aug 3 23:46:36 UTC 2015
This is an automated email from the git hooks/post-receive script.
js pushed a commit to tag 0.007
in repository libxml-saxon-xslt2-perl.
commit e8b9e8e8fa08353a67abd67053537e61c0027be4
Author: Toby Inkster <mail at tobyinkster.co.uk>
Date: Mon Oct 3 21:37:28 2011 +0000
release new version incl bug fix; upgrade build system
--HG--
branch : XML-Saxon-XSLT2
rename : Changes.ttl => meta/changes.ttl
extra : convert_revision : svn%3A3fe8e991-6959-4966-b76d-b07eca2b6e37/XML-Saxon-XSLT2%40954
---
Changes | 28 --------
Changes.xml | 102 -----------------------------
MANIFEST.SKIP | 10 ---
META.yml | 34 ----------
Makefile.PL | 48 ++------------
README | 141 ----------------------------------------
TODO | 3 +-
XML-Saxon-XSLT2-0.005.tar.gz | Bin 0 -> 42699 bytes
example1.pl | 52 ---------------
example2.pl | 15 -----
example2.xml | 9 ---
example2.xslt | 16 -----
example3.pl | 16 -----
lib/XML/Saxon/XSLT2.pm | 6 +-
Changes.ttl => meta/changes.ttl | 64 +++++-------------
meta/doap.ttl | 36 ++++++++++
meta/makefile.ttl | 10 +++
xt/01pod.t | 5 ++
xt/02pod_coverage.t | 8 +++
xt/03meta_uptodate.t | 3 +
20 files changed, 86 insertions(+), 520 deletions(-)
diff --git a/Changes b/Changes
deleted file mode 100644
index 4eb973f..0000000
--- a/Changes
+++ /dev/null
@@ -1,28 +0,0 @@
-############################################################################
-## Changes #################################################################
-############################################################################
-
-XML-Saxon-XSLT2
-===============
-
-Created: 2010-07-14
-Home page: <http://search.cpan.org/dist/XML-Saxon-XSLT2/>
-Bug tracker: <http://rt.cpan.org/Dist/Display.html?Queue=XML-Saxon-XSLT2>
-Maintainer: Toby Inkster <mailto:tobyink at cpan.org>
-
-0.004 [2011-02-18]
- - (Addition) Allow parameters to be passed through to Inline::Java from
- the 'use' line.
-
-0.003 [2010-07-19]
- - (Addition) Can determine <xsl:output> media-type, doctype-public,
- doctype-system, encoding and version attributes.
-
-0.002 [2010-07-15]
- - No longer default to 'xml' output method, but respect XSLT's specified
- output method.
- - (Addition) Can capture output from <xsl:message>.
- - (Addition) Can specify a base URI in the constructor.
-
-0.001 [2010-07-15] # Original version
-
diff --git a/Changes.xml b/Changes.xml
deleted file mode 100644
index 9293dcf..0000000
--- a/Changes.xml
+++ /dev/null
@@ -1,102 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<rdf:RDF xmlns:dbug="http://ontologi.es/doap-bugs#" xmlns:dc="http://purl.org/dc/terms/" xmlns:dcs="http://ontologi.es/doap-changeset#" xmlns:doap="http://usefulinc.com/ns/doap#" xmlns:foaf="http://xmlns.com/foaf/0.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#">
-<rdf:Description rdf:nodeID="r7EC56C683BB511E0BA9BC194EA151372r0">
- <dcs:item rdf:nodeID="r7EC56C683BB511E0BA9BC194EA151372r1"/>
- <dcs:item rdf:nodeID="r7EC56C683BB511E0BA9BC194EA151372r2"/>
- <dcs:item rdf:nodeID="r7EC56C683BB511E0BA9BC194EA151372r3"/>
- <dcs:versus rdf:resource="http://purl.org/NET/cpan-uri/dist/XML-Saxon-XSLT2/v_0-001"/>
-</rdf:Description>
-<rdf:Description rdf:nodeID="r7EC56C683BB511E0BA9BC194EA151372r1">
- <rdf:type rdf:resource="http://ontologi.es/doap-changeset#Addition"/>
- <rdfs:label xml:lang="en">Can capture output from <xsl:message>.</rdfs:label>
-</rdf:Description>
-<rdf:Description rdf:nodeID="r7EC56C683BB511E0BA9BC194EA151372r2">
- <rdf:type rdf:resource="http://ontologi.es/doap-changeset#Addition"/>
- <rdfs:label xml:lang="en">Can specify a base URI in the constructor.</rdfs:label>
-</rdf:Description>
-<rdf:Description rdf:nodeID="r7EC56C683BB511E0BA9BC194EA151372r3">
- <rdfs:label xml:lang="en">No longer default to 'xml' output method, but respect XSLT's specified output method.</rdfs:label>
-</rdf:Description>
-<rdf:Description rdf:nodeID="r7EC56C683BB511E0BA9BC194EA151372r4">
- <dcs:item rdf:nodeID="r7EC56C683BB511E0BA9BC194EA151372r5"/>
- <dcs:versus rdf:resource="http://purl.org/NET/cpan-uri/dist/XML-Saxon-XSLT2/v_0-002"/>
-</rdf:Description>
-<rdf:Description rdf:nodeID="r7EC56C683BB511E0BA9BC194EA151372r5">
- <rdf:type rdf:resource="http://ontologi.es/doap-changeset#Addition"/>
- <rdfs:label xml:lang="en">Can determine <xsl:output> media-type, doctype-public, doctype-system, encoding and version attributes.</rdfs:label>
-</rdf:Description>
-<rdf:Description rdf:nodeID="r7EC56C683BB511E0BA9BC194EA151372r6">
- <dcs:item rdf:nodeID="r7EC56C683BB511E0BA9BC194EA151372r7"/>
- <dcs:versus rdf:resource="http://purl.org/NET/cpan-uri/dist/XML-Saxon-XSLT2/v_0-003"/>
-</rdf:Description>
-<rdf:Description rdf:nodeID="r7EC56C683BB511E0BA9BC194EA151372r7">
- <rdf:type rdf:resource="http://ontologi.es/doap-changeset#Addition"/>
- <rdfs:label xml:lang="en">Allow parameters to be passed through to Inline::Java from the 'use' line.</rdfs:label>
-</rdf:Description>
-<rdf:Description rdf:nodeID="r7EC56C683BB511E0BA9BC194EA151372r8">
- <doap:browse rdf:resource="http://goddamn.co.uk/viewvc/perlmods/XML-Saxon-XSLT2/"/>
- <rdf:type rdf:resource="http://usefulinc.com/ns/doap#SVNRepository"/>
-</rdf:Description>
-<rdf:Description rdf:about="file:///home/tai/src/perlmods/XML-Saxon-XSLT2/Changes.ttl">
- <dc:creator rdf:resource="http://tobyinkster.co.uk/#i"/>
- <dc:description xml:lang="en">Revision history for Perl extension XML::Saxon::XSLT2.</dc:description>
- <dc:subject rdf:resource="http://purl.org/NET/cpan-uri/dist/XML-Saxon-XSLT2/project"/>
- <dc:title>Changes</dc:title>
-</rdf:Description>
-<rdf:Description rdf:about="http://purl.org/NET/cpan-uri/dist/XML-Saxon-XSLT2/project">
- <doap:bug-database rdf:resource="http://rt.cpan.org/Dist/Display.html?Queue=XML-Saxon-XSLT2"/>
- <doap:created rdf:datatype="http://www.w3.org/2001/XMLSchema#date">2010-07-14</doap:created>
- <doap:developer rdf:resource="http://tobyinkster.co.uk/#i"/>
- <doap:documenter rdf:resource="http://tobyinkster.co.uk/#i"/>
- <doap:download-page rdf:resource="http://search.cpan.org/dist/XML-Saxon-XSLT2/"/>
- <doap:homepage rdf:resource="http://search.cpan.org/dist/XML-Saxon-XSLT2/"/>
- <doap:license rdf:resource="http://dev.perl.org/licenses/"/>
- <doap:maintainer rdf:resource="http://tobyinkster.co.uk/#i"/>
- <doap:name>XML-Saxon-XSLT2</doap:name>
- <doap:programming-language>Perl</doap:programming-language>
- <doap:release rdf:resource="http://purl.org/NET/cpan-uri/dist/XML-Saxon-XSLT2/v_0-001"/>
- <doap:release rdf:resource="http://purl.org/NET/cpan-uri/dist/XML-Saxon-XSLT2/v_0-002"/>
- <doap:release rdf:resource="http://purl.org/NET/cpan-uri/dist/XML-Saxon-XSLT2/v_0-003"/>
- <doap:release rdf:resource="http://purl.org/NET/cpan-uri/dist/XML-Saxon-XSLT2/v_0-004"/>
- <doap:repository rdf:nodeID="r7EC56C683BB511E0BA9BC194EA151372r8"/>
- <doap:shortdesc xml:lang="en">process XSLT 2.0 using Saxon 9.x</doap:shortdesc>
- <doap:tester rdf:resource="http://tobyinkster.co.uk/#i"/>
- <rdf:type rdf:resource="http://usefulinc.com/ns/doap#Project"/>
-</rdf:Description>
-<rdf:Description rdf:about="http://purl.org/NET/cpan-uri/dist/XML-Saxon-XSLT2/v_0-001">
- <dc:issued rdf:datatype="http://www.w3.org/2001/XMLSchema#date">2010-07-15</dc:issued>
- <doap:file-release rdf:resource="http://backpan.cpan.org/authors/id/T/TO/TOBYINK/XML-Saxon-XSLT2-0.001.tar.gz"/>
- <doap:revision rdf:datatype="http://www.w3.org/2001/XMLSchema#string">0.001</doap:revision>
- <rdf:type rdf:resource="http://usefulinc.com/ns/doap#Version"/>
- <rdfs:label xml:lang="en">Original version</rdfs:label>
-</rdf:Description>
-<rdf:Description rdf:about="http://purl.org/NET/cpan-uri/dist/XML-Saxon-XSLT2/v_0-002">
- <dcs:changeset rdf:nodeID="r7EC56C683BB511E0BA9BC194EA151372r0"/>
- <dc:issued rdf:datatype="http://www.w3.org/2001/XMLSchema#date">2010-07-15</dc:issued>
- <doap:file-release rdf:resource="http://backpan.cpan.org/authors/id/T/TO/TOBYINK/XML-Saxon-XSLT2-0.002.tar.gz"/>
- <doap:revision rdf:datatype="http://www.w3.org/2001/XMLSchema#string">0.002</doap:revision>
- <rdf:type rdf:resource="http://usefulinc.com/ns/doap#Version"/>
-</rdf:Description>
-<rdf:Description rdf:about="http://purl.org/NET/cpan-uri/dist/XML-Saxon-XSLT2/v_0-003">
- <dcs:changeset rdf:nodeID="r7EC56C683BB511E0BA9BC194EA151372r4"/>
- <dc:issued rdf:datatype="http://www.w3.org/2001/XMLSchema#date">2010-07-19</dc:issued>
- <doap:file-release rdf:resource="http://backpan.cpan.org/authors/id/T/TO/TOBYINK/XML-Saxon-XSLT2-0.003.tar.gz"/>
- <doap:revision rdf:datatype="http://www.w3.org/2001/XMLSchema#string">0.003</doap:revision>
- <rdf:type rdf:resource="http://usefulinc.com/ns/doap#Version"/>
-</rdf:Description>
-<rdf:Description rdf:about="http://purl.org/NET/cpan-uri/dist/XML-Saxon-XSLT2/v_0-004">
- <dcs:changeset rdf:nodeID="r7EC56C683BB511E0BA9BC194EA151372r6"/>
- <dc:issued rdf:datatype="http://www.w3.org/2001/XMLSchema#date">2011-02-18</dc:issued>
- <doap:file-release rdf:resource="http://backpan.cpan.org/authors/id/T/TO/TOBYINK/XML-Saxon-XSLT2-0.004.tar.gz"/>
- <doap:revision rdf:datatype="http://www.w3.org/2001/XMLSchema#string">0.004</doap:revision>
- <rdf:type rdf:resource="http://usefulinc.com/ns/doap#Version"/>
-</rdf:Description>
-<rdf:Description xmlns:ns1="http://www.w3.org/2002/07/owl#" rdf:about="http://tobyinkster.co.uk/#i">
- <rdf:type rdf:resource="http://xmlns.com/foaf/0.1/Person"/>
- <ns1:sameAs rdf:resource="http://purl.org/NET/cpan-uri/person/tobyink"/>
- <foaf:homepage rdf:resource="http://tobyinkster.co.uk/"/>
- <foaf:mbox rdf:resource="mailto:tobyink at cpan.org"/>
- <foaf:name>Toby Inkster</foaf:name>
- <foaf:page rdf:resource="http://search.cpan.org/~tobyink/"/>
-</rdf:Description>
-</rdf:RDF>
diff --git a/MANIFEST.SKIP b/MANIFEST.SKIP
deleted file mode 100644
index 6341a6d..0000000
--- a/MANIFEST.SKIP
+++ /dev/null
@@ -1,10 +0,0 @@
-^MANIFEST.bak$
-^Makefile.old$
-^Makefile$
-^blib/
-^pm_to_blib
-^blibdirs
-\.svn
-^example.*\.pl$
-^[^/]+\.(tar\.gz|tar\.bz2|tgz|tbz2|tbz|zip|tar)$
-^MYMETA.yml
\ No newline at end of file
diff --git a/META.yml b/META.yml
deleted file mode 100644
index 584bfcc..0000000
--- a/META.yml
+++ /dev/null
@@ -1,34 +0,0 @@
----
-abstract: 'process XSLT 2.0 using Saxon 9.x.'
-author:
- - 'Toby Inkster <tobyink at cpan.org>'
-build_requires:
- ExtUtils::MakeMaker: 6.42
- Test::More: 0.61
-configure_requires:
- ExtUtils::MakeMaker: 6.42
-distribution_type: module
-generated_by: 'Module::Install version 1.00'
-license: perl
-meta-spec:
- url: http://module-build.sourceforge.net/META-spec-v1.4.html
- version: 1.4
-name: XML-Saxon-XSLT2
-no_index:
- directory:
- - inc
- - t
-requires:
- Carp: 1.00
- IO::Handle: 0
- Inline::Java: 0
- Scalar::Util: 0
- XML::LibXML: 1.60
- common::sense: 0
- perl: 5.8.0
-resources:
- bugtracker: http://rt.cpan.org/Dist/Display.html?Queue=XML-Saxon-XSLT2
- homepage: http://search.cpan.org/dist/XML-Saxon-XSLT2/
- license: http://dev.perl.org/licenses/
- repository: http://goddamn.co.uk/viewvc/perlmods/XML-Saxon-XSLT2/
-version: 0.004
diff --git a/Makefile.PL b/Makefile.PL
index 76683ed..3b247c3 100644
--- a/Makefile.PL
+++ b/Makefile.PL
@@ -1,50 +1,10 @@
-use strict;
-use warnings;
-
-use inc::Module::Install;
+use inc::Module::Package 'RDF:standard';
unless (-e '/usr/share/java/saxon9he.jar'
- or -e '/usr/local/share/java/saxon9he.jar'
- or -e '/usr/share/java/saxonb.jar'
- or -e '/usr/local/share/java/saxonb.jar')
+ or -e '/usr/local/share/java/saxon9he.jar'
+ or -e '/usr/share/java/saxonb.jar'
+ or -e '/usr/local/share/java/saxonb.jar')
{
warn "Need saxon9he.jar or saxonb.jar to be installed in /usr/share/java or /usr/local/share/java.";
exit 0;
}
-
-my $dist = 'XML-Saxon-XSLT2';
-my $fn = "lib/$dist.pm"; $fn =~ s#-#/#g;
-
-name $dist;
-perl_version_from $fn;
-version_from $fn;
-abstract_from $fn;
-readme_from $fn;
-author 'Toby Inkster <tobyink at cpan.org>';
-license 'perl';
-
-test_requires 'Test::More' => '0.61';
-
-requires 'common::sense' => 0;
-requires 'Carp' => '1.00';
-requires 'Inline::Java' => 0;
-requires 'IO::Handle' => 0;
-requires 'Scalar::Util' => 0;
-requires 'XML::LibXML' => '1.60';
-
-resources(
- 'homepage' => "https://metacpan.org/release/$dist",
- 'repository' => "http://goddamn.co.uk/svn-web/perlmods/browse/$dist/",
- 'bugtracker' => "http://rt.cpan.org/Dist/Display.html?Queue=$dist",
- );
-
-write_doap_changes;
-write_doap_changes_xml;
-auto_license;
-auto_manifest;
-
-auto_install;
-WriteAll(
- 'meta' => 1,
- 'sign' => 1,
- );
diff --git a/README b/README
deleted file mode 100644
index 85b9c48..0000000
--- a/README
+++ /dev/null
@@ -1,141 +0,0 @@
-NAME
- XML::Saxon::XSLT2 - process XSLT 2.0 using Saxon 9.x.
-
-SYNOPSIS
- use XML::Saxon::XSLT2;
-
- # make sure to open filehandle in right encoding
- open(my $input, '<:encoding(UTF-8)', 'path/to/xml') or die $!;
- open(my $xslt, '<:encoding(UTF-8)', 'path/to/xslt') or die $!;
-
- my $trans = XML::Saxon::XSLT2->new($xslt, $baseurl);
- my $output = $trans->transform($input);
- print $output;
-
- my $output2 = $trans->transform_document($input);
- my @paragraphs = $output2->getElementsByTagName('p');
-
-DESCRIPTION
- This module implements XSLT 1.0 and 2.0 using Saxon 9.x via
- Inline::Java.
-
- It expects Saxon to be installed in either
- '/usr/share/java/saxon9he.jar' or '/usr/local/share/java/saxon9he.jar'.
- Future versions should be more flexible. The saxon9he.jar file can be
- found at <http://saxon.sourceforge.net/> - just dowload the latest Java
- release of Saxon-HE 9.x, open the Zip archive, extract saxon9he.jar and
- save it to one of the two directories above.
-
- Use Line
- use XML::Saxon::XSLT2;
-
- You can include additional parameters which will be passed straight on
- to Inline::Java, like this:
-
- use XML::Saxon::XSLT2 EXTRA_JAVA_ARGS => '-Xmx256m';
-
- Constructor
- "XML::Saxon::XSLT2->new($xslt, [$baseurl])"
- Creates a new transformation. $xslt may be a string, a file handle
- or an XML::LibXML::Document. $baseurl is an optional base URL for
- resolving relative URL references in, for instance, <xsl:import>
- links. Otherwise, the current directory is assumed to be the base.
-
- Methods
- "$trans->parameters($key=>$value, $key2=>$value2, ...)"
- Sets transformation parameters prior to running the transformation.
-
- Each key is a parameter name.
-
- Each value is the parameter value. This may be a scalar, in which
- case it's treated as an xs:string; a DateTime object, which is
- treated as an xs:dateTime; a URI object, xs:anyURI; a Math::BigInt,
- xs:long; or an arrayref where the first element is the type and the
- second the value. For example:
-
- $trans->parameters(
- now => DateTime->now,
- madrid_is_capital_of_spain => [ boolean => 1 ],
- price_of_fish => [ decimal => '1.99' ],
- my_link => URI->new('http://example.com/'),
- your_link => [ uri => 'http://example.net/' ],
- );
-
- The following types are supported via the arrayref notation: float,
- double, long (alias int, integer), decimal, bool (alias boolean),
- string, qname, uri, date, datetime. These are case-insensitive.
-
- "$trans->transform($doc, [$output_method])"
- Run a transformation, returning the output as a string.
-
- $doc may be a string, a file handle or an XML::LibXML::Document.
-
- $output_method may be 'xml', 'xhtml', 'html' or 'text' to override
- the XSLT output method.
-
- "$trans->transform_document($doc, [$output_method])"
- Run a transformation, returning the output as an
- XML::LibXML::Document.
-
- $doc may be a string, a file handle or an XML::LibXML::Document.
-
- $output_method may be 'xml', 'xhtml', 'html' or 'text' to override
- the XSLT output method.
-
- This method is slower than "transform".
-
- "$trans->messages"
- Returns a list of string representations of messages output by
- <xsl:message> during the last transformation run.
-
- "$trans->media_type($default)"
- Returns the output media type for the transformation.
-
- If the transformation doesn't specify an output type, returns the
- default.
-
- "$trans->doctype_public($default)"
- Returns the output DOCTYPE public identifier for the transformation.
-
- If the transformation doesn't specify a doctype, returns the
- default.
-
- "$trans->doctype_system($default)"
- Returns the output DOCTYPE system identifier for the transformation.
-
- If the transformation doesn't specify a doctype, returns the
- default.
-
- "$trans->version($default)"
- Returns the output XML version for the transformation.
-
- If the transformation doesn't specify a version, returns the
- default.
-
- "$trans->encoding($default)"
- Returns the output encoding for the transformation.
-
- If the transformation doesn't specify an encoding, returns the
- default.
-
-BUGS
- Please report any bugs to <http://rt.cpan.org/>.
-
-SEE ALSO
- XML::LibXSLT is probably more reliable, and allows you to define your
- own XSLT extension functions. However, the libxslt library that it's
- based on only supports XSLT 1.0.
-
- Inline::Java.
-
- <http://saxon.sourceforge.net/>.
-
-AUTHOR
- Toby Inkster <tobyink at cpan.org>.
-
-COPYRIGHT
- Copyright 2010-2011 Toby Inkster
-
- This library is free software; you can redistribute it and/or modify it
- under the same terms as Perl itself.
-
diff --git a/TODO b/TODO
index a2c7cf0..02dee5d 100644
--- a/TODO
+++ b/TODO
@@ -1,3 +1,2 @@
TODO:
-* Add some more items to this list.
-* Add keywords to Makefile.PL
+- https://rt.cpan.org/Ticket/Display.html?id=66278
diff --git a/XML-Saxon-XSLT2-0.005.tar.gz b/XML-Saxon-XSLT2-0.005.tar.gz
new file mode 100644
index 0000000..5e62601
Binary files /dev/null and b/XML-Saxon-XSLT2-0.005.tar.gz differ
diff --git a/example1.pl b/example1.pl
deleted file mode 100644
index acbd689..0000000
--- a/example1.pl
+++ /dev/null
@@ -1,52 +0,0 @@
-#!/usr/bin/perl
-
-use 5.010;
-use lib "lib";
-use XML::Saxon::XSLT2;
-
-my $xml = <<'XML';
-<?xml version="1.0" encoding="UTF-8"?>
-<books>
- <book name="Programming Ruby"
- author="Dave Thomas"/>
- <book name="Code Generation in Action"
- author="Jack Herrington"/>
- <book name="Pragmatic Programmer"
- author="Dave Thomas"/>
-</books>
-XML
-
-my $xslt = <<'XSLT';
-<?xml version="1.0" encoding="UTF-8"?>
-<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="2.0">
-<xsl:output media-type="text/foo+xml" version="1.1" encoding="ascii" doctype-system="foo.dtd" indent="yes" />
-<xsl:param name="bar"/>
-<xsl:template match="/">
-<xsl:variable name="allauthors">
- <authors foo="{$bar}">
- <xsl:for-each select="/books/book">
- <xsl:sort select="@author"/>
- <author id="{@author}"/>
- </xsl:for-each>
- </authors>
-</xsl:variable>
-<xsl:copy-of select="$allauthors"/>
-</xsl:template>
-</xsl:stylesheet>
-XSLT
-
-eval {
- my $transformation = XML::Saxon::XSLT2->new($xslt);
- $transformation->parameters('bar' => [date=>'2010-02-28']);
- say $transformation->transform($xml);
- say $transformation->media_type('text/xml');
- say $transformation->doctype_public;
- say $transformation->doctype_system;
- say $transformation->version;
- say $transformation->encoding;
-};
-if ($@)
-{
- my $msg = $@;
- warn $msg->printStackTrace;
-}
\ No newline at end of file
diff --git a/example2.pl b/example2.pl
deleted file mode 100644
index 1f19223..0000000
--- a/example2.pl
+++ /dev/null
@@ -1,15 +0,0 @@
-#!/usr/bin/perl
-
-use lib "lib";
-use XML::LibXML;
-use XML::Saxon::XSLT2;
-use Data::Dumper;
-
-open my $xslt, 'example2.xslt';
-my $xml = XML::LibXML->new->parse_file('example2.xml');
-
-my $transformation = XML::Saxon::XSLT2->new($xslt);
-$transformation->parameters('bar' => [date=>'2010-02-28']);
-print $transformation->transform_document($xml, 'xhtml')->toString . "\n";
-
-print Dumper([$transformation->messages]) . "\n";
\ No newline at end of file
diff --git a/example2.xml b/example2.xml
deleted file mode 100644
index a671689..0000000
--- a/example2.xml
+++ /dev/null
@@ -1,9 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<books>
- <book name="Programming Ruby"
- author="Dave Thomas"/>
- <book name="Code Generation in Action"
- author="Jack Herrington"/>
- <book name="Pragmatic Programmer"
- author="Dave Thomas"/>
-</books>
diff --git a/example2.xslt b/example2.xslt
deleted file mode 100644
index 7946b18..0000000
--- a/example2.xslt
+++ /dev/null
@@ -1,16 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="2.0">
-<xsl:param name="bar"/>
-<xsl:template match="/">
-<xsl:variable name="allauthors">
- <authors foo="{$bar}">
- <xsl:for-each select="/books/book">
- <xsl:sort select="@author"/>
- <author id="{@author}"/>
- </xsl:for-each>
- </authors>
- <xsl:message><foo>Hello world</foo></xsl:message>
-</xsl:variable>
-<xsl:copy-of select="$allauthors"/>
-</xsl:template>
-</xsl:stylesheet>
diff --git a/example3.pl b/example3.pl
deleted file mode 100755
index 86e350e..0000000
--- a/example3.pl
+++ /dev/null
@@ -1,16 +0,0 @@
-#!/usr/bin/perl
-
-use lib "lib";
-use Data::Dumper;
-use XML::LibXML;
-use XML::Saxon::XSLT2;
-use LWP::Simple qw[get];
-
-my $atom = get("http://intertwingly.net/blog/index.atom");
-
-my $transformation = XML::Saxon::XSLT2->new(
- get('http://bblfish.net/work/atom-owl/2006-06-06/transform/atom2turtle.xsl'),
- 'http://bblfish.net/work/atom-owl/2006-06-06/transform/atom2turtle.xsl'
- );
-print $transformation->transform_document($atom)->toString . "\n";
-
diff --git a/lib/XML/Saxon/XSLT2.pm b/lib/XML/Saxon/XSLT2.pm
index 571f1ad..3c9f779 100644
--- a/lib/XML/Saxon/XSLT2.pm
+++ b/lib/XML/Saxon/XSLT2.pm
@@ -8,17 +8,19 @@ use IO::Handle;
use Scalar::Util qw[blessed];
use XML::LibXML;
-our $VERSION = '0.004';
+our $VERSION = '0.005';
my $classpath;
BEGIN
{
- foreach my $path (qw(/usr/share/java/saxon9he.jar
+ foreach my $path (qw(
+ /usr/share/java/saxon9he.jar
/usr/local/share/java/saxon9he.jar
/usr/share/java/saxonb.jar
/usr/local/share/java/saxonb.jar))
{
$classpath = $path if -e $path;
+ last if defined $classpath;
}
require Inline;
diff --git a/Changes.ttl b/meta/changes.ttl
similarity index 56%
rename from Changes.ttl
rename to meta/changes.ttl
index adb3bfc..d75876c 100644
--- a/Changes.ttl
+++ b/meta/changes.ttl
@@ -1,6 +1,5 @@
-#############################################################
-
@prefix : <http://usefulinc.com/ns/doap#> .
+ at prefix dbug: <http://ontologi.es/doap-bugs#> .
@prefix dcs: <http://ontologi.es/doap-changeset#> .
@prefix dc: <http://purl.org/dc/terms/> .
@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@@ -9,27 +8,16 @@
@prefix toby: <http://tobyinkster.co.uk/#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
-#############################################################
-
-<>
-
- dc:title "Changes" ;
- dc:description "Revision history for Perl extension XML::Saxon::XSLT2."@en ;
- dc:subject my:project ;
- dc:creator toby:i .
-
-#############################################################
-
+my:project :release my:v_0-001 .
my:v_0-001
-
a :Version ;
dc:issued "2010-07-15"^^xsd:date ;
:revision "0.001"^^xsd:string ;
:file-release <http://backpan.cpan.org/authors/id/T/TO/TOBYINK/XML-Saxon-XSLT2-0.001.tar.gz> ;
rdfs:label "Original version"@en .
+my:project :release my:v_0-002 .
my:v_0-002
-
a :Version ;
dc:issued "2010-07-15"^^xsd:date ;
:revision "0.002"^^xsd:string ;
@@ -41,8 +29,8 @@ my:v_0-002
dcs:item [ rdfs:label "No longer default to 'xml' output method, but respect XSLT's specified output method."@en ]
] .
+my:project :release my:v_0-003 .
my:v_0-003
-
a :Version ;
dc:issued "2010-07-19"^^xsd:date ;
:revision "0.003"^^xsd:string ;
@@ -52,8 +40,8 @@ my:v_0-003
dcs:item [ rdfs:label "Can determine <xsl:output> media-type, doctype-public, doctype-system, encoding and version attributes."@en ; a dcs:Addition ]
] .
+my:project :release my:v_0-004 .
my:v_0-004
-
a :Version ;
dc:issued "2011-02-18"^^xsd:date ;
:revision "0.004"^^xsd:string ;
@@ -63,35 +51,13 @@ my:v_0-004
dcs:item [ rdfs:label "Allow parameters to be passed through to Inline::Java from the 'use' line."@en ; a dcs:Addition ]
] .
-#############################################################
-
-my:project
-
- a :Project ;
- :name "XML-Saxon-XSLT2" ;
- :shortdesc "process XSLT 2.0 using Saxon 9.x"@en ;
- :programming-language "Perl" ;
- :homepage <https://metacpan.org/release/XML-Saxon-XSLT2> ;
- :download-page <https://metacpan.org/release/XML-Saxon-XSLT2> ;
- :bug-database <http://rt.cpan.org/Dist/Display.html?Queue=XML-Saxon-XSLT2> ;
- :repository [ a :SVNRepository ; :browse <http://goddamn.co.uk/svn-web/perlmods/browse/XML-Saxon-XSLT2/> ] ;
- :maintainer toby:i ;
- :developer toby:i ;
- :documenter toby:i ;
- :tester toby:i ;
- :created "2010-07-14"^^xsd:date ;
- :license <http://dev.perl.org/licenses/> ;
- :release my:v_0-001 , my:v_0-002 , my:v_0-003 , my:v_0-004 .
-
-#############################################################
-
-toby:i
-
- a foaf:Person ;
- foaf:name "Toby Inkster" ;
- foaf:homepage <http://tobyinkster.co.uk/> ;
- foaf:page <https://metacpan.org/author/TOBYINK> ;
- foaf:mbox <mailto:tobyink at cpan.org> ;
- <http://www.w3.org/2002/07/owl#sameAs> <http://purl.org/NET/cpan-uri/person/tobyink> .
-
-#############################################################
+my:project :release my:v_0-005 .
+my:v_0-005
+ a :Version ;
+ dc:issued "2011-10-03"^^xsd:date ;
+ :revision "0.005"^^xsd:string ;
+ :file-release <http://backpan.cpan.org/authors/id/T/TO/TOBYINK/XML-Saxon-XSLT2-0.005.tar.gz> ;
+ dcs:changeset [
+ dcs:versus my:v_0-004 ;
+ dcs:item [ rdfs:label "Change how $classpath is constructed."@en ; a dcs:Bugfix ; dcs:fixes [ dbug:id "66276" ; rdfs:label "Classpath is searched in wrong order" ] ]
+ ] .
diff --git a/meta/doap.ttl b/meta/doap.ttl
new file mode 100644
index 0000000..96204dc
--- /dev/null
+++ b/meta/doap.ttl
@@ -0,0 +1,36 @@
+ at prefix : <http://usefulinc.com/ns/doap#> .
+ at prefix dcs: <http://ontologi.es/doap-changeset#> .
+ at prefix dc: <http://purl.org/dc/terms/> .
+ at prefix foaf: <http://xmlns.com/foaf/0.1/> .
+ at prefix my: <http://purl.org/NET/cpan-uri/dist/XML-Saxon-XSLT2/> .
+ at prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
+ at prefix toby: <http://tobyinkster.co.uk/#> .
+ at prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
+
+my:project
+ a :Project ;
+ :name "XML-Saxon-XSLT2" ;
+ :shortdesc "process XSLT 2.0 using Saxon 9.x"@en ;
+ :programming-language "Perl" ;
+ :homepage <https://metacpan.org/release/XML-Saxon-XSLT2> ;
+ :download-page <https://metacpan.org/release/XML-Saxon-XSLT2> ;
+ :bug-database <http://rt.cpan.org/Dist/Display.html?Queue=XML-Saxon-XSLT2> ;
+ :repository [ a :SVNRepository ; :browse <http://goddamn.co.uk/svn-web/perlmods/browse/XML-Saxon-XSLT2/> ] ;
+ :maintainer toby:i ;
+ :developer toby:i ;
+ :documenter toby:i ;
+ :tester toby:i ;
+ :created "2010-07-14"^^xsd:date ;
+ :license <http://dev.perl.org/licenses/> ;
+ :category
+ [ rdfs:label "XSL transformations" ] ,
+ [ rdfs:label "XSLT" ] ,
+ [ rdfs:label "Java" ] .
+
+toby:i
+ a foaf:Person ;
+ foaf:name "Toby Inkster" ;
+ foaf:homepage <http://tobyinkster.co.uk/> ;
+ foaf:page <https://metacpan.org/author/TOBYINK> ;
+ foaf:mbox <mailto:tobyink at cpan.org> ;
+ <http://www.w3.org/2002/07/owl#sameAs> <http://purl.org/NET/cpan-uri/person/tobyink> .
diff --git a/meta/makefile.ttl b/meta/makefile.ttl
new file mode 100644
index 0000000..2f68ae7
--- /dev/null
+++ b/meta/makefile.ttl
@@ -0,0 +1,10 @@
+ at prefix : <http://purl.org/NET/cpan-uri/terms#> .
+
+<http://purl.org/NET/cpan-uri/dist/XML-Saxon-XSLT2/project>
+ :perl_version_from _:main ;
+ :version_from _:main ;
+ :readme_from _:main ;
+ :requires "common::sense" , "Carp 1.00" , "Inline::Java" , "IO::Handle" , "Scalar::Util" , "XML::LibXML 1.60" ;
+ :test_requires "Test::More 0.61" .
+
+_:main <http://www.semanticdesktop.org/ontologies/2007/03/22/nfo#fileName> "lib/XML/Saxon/XSLT2.pm" .
diff --git a/xt/01pod.t b/xt/01pod.t
new file mode 100644
index 0000000..92ba3f6
--- /dev/null
+++ b/xt/01pod.t
@@ -0,0 +1,5 @@
+use Test::More;
+eval "use Test::Pod 1.00";
+plan skip_all => "Test::Pod 1.00 required for testing POD" if $@;
+all_pod_files_ok();
+
diff --git a/xt/02pod_coverage.t b/xt/02pod_coverage.t
new file mode 100644
index 0000000..17e5d25
--- /dev/null
+++ b/xt/02pod_coverage.t
@@ -0,0 +1,8 @@
+use Test::More;
+use Test::Pod::Coverage;
+
+my @modules = qw(XML::Saxon::XSLT2);
+pod_coverage_ok($_, "$_ is covered")
+ foreach @modules;
+done_testing(scalar @modules);
+
diff --git a/xt/03meta_uptodate.t b/xt/03meta_uptodate.t
new file mode 100644
index 0000000..d9c0718
--- /dev/null
+++ b/xt/03meta_uptodate.t
@@ -0,0 +1,3 @@
+use Test::More tests => 1;
+use Test::RDF::DOAP::Version;
+doap_version_ok('XML-Saxon-XSLT2', 'XML::Saxon::XSLT2');
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/libxml-saxon-xslt2-perl.git
More information about the Pkg-perl-cvs-commits
mailing list