[libxml-saxon-xslt2-perl] 18/18: minor updates (mostly doc fixes)
Jonas Smedegaard
dr at jones.dk
Mon Aug 3 23:46:37 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 b7ac3e0b2f3b34ec92e6002ec25136788b6b81ca
Author: Toby Inkster <mail at tobyinkster.co.uk>
Date: Tue Sep 11 12:53:26 2012 +0100
minor updates (mostly doc fixes)
--HG--
branch : XML-Saxon-XSLT2
---
TODO | 2 --
lib/XML/Saxon/XSLT2.pm | 35 +++++++++++--------
meta/changes.ttl | 14 ++++++++
meta/doap.ttl | 2 +-
meta/makefile.ttl | 2 +-
meta/rt-bugs.ttl | 93 ++++++++++++++++++++++++++++++++++++++++++++++++++
6 files changed, 129 insertions(+), 19 deletions(-)
diff --git a/TODO b/TODO
deleted file mode 100644
index 02dee5d..0000000
--- a/TODO
+++ /dev/null
@@ -1,2 +0,0 @@
-TODO:
-- https://rt.cpan.org/Ticket/Display.html?id=66278
diff --git a/lib/XML/Saxon/XSLT2.pm b/lib/XML/Saxon/XSLT2.pm
index 8489353..da4cbe5 100644
--- a/lib/XML/Saxon/XSLT2.pm
+++ b/lib/XML/Saxon/XSLT2.pm
@@ -1,14 +1,14 @@
package XML::Saxon::XSLT2;
use 5.008;
-use common::sense;
+use strict;
use Carp;
use IO::Handle;
use Scalar::Util qw[blessed];
use XML::LibXML;
-our $VERSION = '0.006';
+our $VERSION = '0.007';
my $classpath;
BEGIN
@@ -205,7 +205,7 @@ flexible. The saxon9he.jar file can be found at L<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.
-=head2 Use Line
+=head2 Import
use XML::Saxon::XSLT2;
@@ -214,6 +214,9 @@ Inline::Java, like this:
use XML::Saxon::XSLT2 EXTRA_JAVA_ARGS => '-Xmx256m';
+The C<import> function I<must> be called. If you load this module without
+importing it, it will not work. (Don't worry, it won't pollute your namespace.)
+
=head2 Constructor
=over 4
@@ -223,7 +226,8 @@ Inline::Java, like this:
Creates a new transformation. $xslt may be a string, a file handle or an
L<XML::LibXML::Document>. $baseurl is an optional base URL for resolving
relative URL references in, for instance, E<lt>xsl:importE<gt> links.
-Otherwise, the current directory is assumed to be the base.
+Otherwise, the current directory is assumed to be the base. (For base URIs
+which are filesystem directories, remember to include the trailing slash.)
=back
@@ -244,12 +248,12 @@ or an arrayref where the first element is the type and the second the
value. For example:
$trans->parameters(
- now => DateTime->now,
+ 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/' ],
- );
+ 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,
@@ -264,7 +268,7 @@ $doc may be a string, a file handle or an L<XML::LibXML::Document>.
$output_method may be 'xml', 'xhtml', 'html' or 'text' to override
the XSLT output method; or 'default' to use the output method specified
in the XSLT file. 'default' is the default. In the current release,
-'default' is also broken. :-(
+'default' is broken. :-(
=item C<< $trans->transform_document($doc, [$output_method]) >>
@@ -315,11 +319,12 @@ Please report any bugs to L<http://rt.cpan.org/>.
=head1 SEE ALSO
-L<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.
+L<XML::LibXSLT> is probably more reliable in terms of easy installation on a
+variety of platforms, and it allows you to define your own XSLT extension
+functions. However, the libxslt library that it's based on only supports XSLT
+1.0.
-L<Inline::Java>.
+This module uses L<Inline::Java>.
L<http://saxon.sourceforge.net/>.
@@ -329,7 +334,7 @@ Toby Inkster E<lt>tobyink at cpan.orgE<gt>.
=head1 COPYRIGHT
-Copyright 2010-2011 Toby Inkster
+Copyright 2010-2012 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/meta/changes.ttl b/meta/changes.ttl
index 10f93e3..99320a6 100644
--- a/meta/changes.ttl
+++ b/meta/changes.ttl
@@ -73,3 +73,17 @@ my:v_0-006
dcs:item [ a dcs:Packaging ; rdfs:label "Upgrade Module::Package::RDF version."@en ] ;
dcs:item [ a dcs:Documentation ; rdfs:label "Mention that the 'default' value for the output format of the 'transform' method is broken."@en ]
] .
+
+my:project :release my:v_0-007 .
+my:v_0-007
+ a :Version ;
+ dc:issued "2012-09-11"^^xsd:date ;
+ :revision "0.007"^^xsd:string ;
+ rdfs:label "Shaken, not stirred"@en;
+ :file-release <http://backpan.cpan.org/authors/id/T/TO/TOBYINK/Module-Install-RDF-0.007.tar.gz> ;
+ dcs:changeset [
+ dcs:versus my:v_0-006 ;
+ dcs:item [ a dcs:Packaging ; rdfs:label "Drop common::sense dependency."@en ] ;
+ dcs:item [ a dcs:Documentation ; rdfs:label "Improve documentation of base URIs."@en; dcs:fixes <http://purl.org/NET/cpan-uri/rt/ticket/79463> ] ;
+ dcs:item [ a dcs:Documentation ; rdfs:label "Improve documentation of import function."@en ] ;
+ ] .
diff --git a/meta/doap.ttl b/meta/doap.ttl
index 96204dc..1e5fc8d 100644
--- a/meta/doap.ttl
+++ b/meta/doap.ttl
@@ -15,7 +15,7 @@ my:project
: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/> ] ;
+ :repository [ a :HgRepository ; :browse <https://bitbucket.org/tobyink/p5-xml-saxon-xslt2> ] ;
:maintainer toby:i ;
:developer toby:i ;
:documenter toby:i ;
diff --git a/meta/makefile.ttl b/meta/makefile.ttl
index 2f68ae7..30f5c30 100644
--- a/meta/makefile.ttl
+++ b/meta/makefile.ttl
@@ -4,7 +4,7 @@
: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" ;
+ :requires "Inline::Java", "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/meta/rt-bugs.ttl b/meta/rt-bugs.ttl
new file mode 100644
index 0000000..65f114d
--- /dev/null
+++ b/meta/rt-bugs.ttl
@@ -0,0 +1,93 @@
+ at prefix dbug: <http://ontologi.es/doap-bugs#> .
+ at prefix dc: <http://purl.org/dc/terms/> .
+ at prefix doap: <http://usefulinc.com/ns/doap#> .
+ at prefix foaf: <http://xmlns.com/foaf/0.1/> .
+ at prefix prio: <http://purl.org/NET/cpan-uri/rt/priority/> .
+ at prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
+ at prefix rt: <http://purl.org/NET/cpan-uri/rt/ticket/> .
+ at prefix status: <http://purl.org/NET/cpan-uri/rt/status/> .
+ at prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
+
+_:r1347364015r0 a foaf:Agent ;
+ foaf:mbox <mailto:mauricemengel at gmail.com> .
+_:r1347364015r1 a foaf:Agent ;
+ foaf:nick "TOBYINK" .
+_:r1347364015r2 a foaf:Agent ;
+ foaf:nick "Nobody" .
+_:r1347364015r3 a foaf:Agent ;
+ foaf:mbox <mailto:quentin at mit.edu> .
+_:r1347364015r4 a foaf:Agent ;
+ foaf:mbox <mailto:mail at tobyinkster.co.uk> .
+<http://purl.org/NET/cpan-uri/dist/XML-Saxon-XSLT2/project> dbug:issue <http://purl.org/NET/cpan-uri/rt/ticket/60584>, <http://purl.org/NET/cpan-uri/rt/ticket/60589>, <http://purl.org/NET/cpan-uri/rt/ticket/60645>, <http://purl.org/NET/cpan-uri/rt/ticket/60646>, <http://purl.org/NET/cpan-uri/rt/ticket/60648>, <http://purl.org/NET/cpan-uri/rt/ticket/66276>, <http://purl.org/NET/cpan-uri/rt/ticket/66278>, <http://purl.org/NET/cpan-uri/rt/ticket/79463> .
+<http://purl.org/NET/cpan-uri/rt/ticket/60584> dbug:assignee _:r1347364015r1 ;
+ dbug:id "60584"^^xsd:string ;
+ dbug:page <https://rt.cpan.org/Ticket/Display.html?id=60584> ;
+ dbug:reporter _:r1347364015r0 ;
+ dbug:status status:resolved ;
+ dc:created "2010-08-21T05:04:04"^^xsd:dateTime ;
+ dc:modified "2010-08-23T17:33:00"^^xsd:dateTime ;
+ a dbug:Issue ;
+ rdfs:label "mismatch Manifest" .
+<http://purl.org/NET/cpan-uri/rt/ticket/60589> dbug:assignee _:r1347364015r1 ;
+ dbug:id "60589"^^xsd:string ;
+ dbug:page <https://rt.cpan.org/Ticket/Display.html?id=60589> ;
+ dbug:reporter _:r1347364015r0 ;
+ dbug:status status:resolved ;
+ dc:created "2010-08-21T14:24:06"^^xsd:dateTime ;
+ dc:modified "2011-02-18T23:20:58"^^xsd:dateTime ;
+ a dbug:Issue ;
+ rdfs:label "usage more explicit?" .
+<http://purl.org/NET/cpan-uri/rt/ticket/60645> dbug:assignee _:r1347364015r2 ;
+ dbug:id "60645"^^xsd:string ;
+ dbug:page <https://rt.cpan.org/Ticket/Display.html?id=60645> ;
+ dbug:reporter _:r1347364015r0 ;
+ dbug:status status:rejected ;
+ dc:created "2010-08-23T17:32:51"^^xsd:dateTime ;
+ dc:modified "2011-02-18T22:47:26"^^xsd:dateTime ;
+ a dbug:Issue ;
+ rdfs:label "" .
+<http://purl.org/NET/cpan-uri/rt/ticket/60646> dbug:assignee _:r1347364015r1 ;
+ dbug:id "60646"^^xsd:string ;
+ dbug:page <https://rt.cpan.org/Ticket/Display.html?id=60646> ;
+ dbug:reporter _:r1347364015r0 ;
+ dbug:status status:resolved ;
+ dc:created "2010-08-23T17:37:21"^^xsd:dateTime ;
+ dc:modified "2011-02-18T23:19:31"^^xsd:dateTime ;
+ a dbug:Issue ;
+ rdfs:label "variable memory requirements" .
+<http://purl.org/NET/cpan-uri/rt/ticket/60648> dbug:assignee _:r1347364015r2 ;
+ dbug:id "60648"^^xsd:string ;
+ dbug:page <https://rt.cpan.org/Ticket/Display.html?id=60648> ;
+ dbug:reporter _:r1347364015r0 ;
+ dbug:status status:rejected ;
+ dc:created "2010-08-23T17:51:32"^^xsd:dateTime ;
+ dc:modified "2011-02-18T23:13:18"^^xsd:dateTime ;
+ a dbug:Issue ;
+ rdfs:label "measuring performance" .
+<http://purl.org/NET/cpan-uri/rt/ticket/66276> dbug:assignee _:r1347364015r1 ;
+ dbug:id "66276"^^xsd:string ;
+ dbug:page <https://rt.cpan.org/Ticket/Display.html?id=66276> ;
+ dbug:reporter _:r1347364015r3 ;
+ dbug:status status:resolved ;
+ dc:created "2011-03-01T09:32:22"^^xsd:dateTime ;
+ dc:modified "2011-10-03T22:33:21"^^xsd:dateTime ;
+ a dbug:Issue ;
+ rdfs:label "Classpath is searched in wrong order" .
+<http://purl.org/NET/cpan-uri/rt/ticket/66278> dbug:assignee _:r1347364015r1 ;
+ dbug:id "66278"^^xsd:string ;
+ dbug:page <https://rt.cpan.org/Ticket/Display.html?id=66278> ;
+ dbug:reporter _:r1347364015r3 ;
+ dbug:status status:open ;
+ dc:created "2011-03-01T10:46:58"^^xsd:dateTime ;
+ dc:modified "2011-10-03T21:47:56"^^xsd:dateTime ;
+ a dbug:Issue ;
+ rdfs:label "xsl:result-document element doesn't work" .
+<http://purl.org/NET/cpan-uri/rt/ticket/79463> dbug:assignee _:r1347364015r1 ;
+ dbug:id "79463"^^xsd:string ;
+ dbug:page <https://rt.cpan.org/Ticket/Display.html?id=79463> ;
+ dbug:reporter _:r1347364015r4 ;
+ dbug:status status:resolved ;
+ dc:created "2012-09-05T22:35:39"^^xsd:dateTime ;
+ dc:modified "2012-09-11T12:44:53"^^xsd:dateTime ;
+ a dbug:Issue ;
+ rdfs:label "Insufficient documentation - baseuri" .
--
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