Hello community, here is the log from the commit of package perl-XML-XPath for openSUSE:Factory checked in at 2016-03-11 12:29:10 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/perl-XML-XPath (Old) and /work/SRC/openSUSE:Factory/.perl-XML-XPath.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "perl-XML-XPath" Changes: -------- --- /work/SRC/openSUSE:Factory/perl-XML-XPath/perl-XML-XPath.changes 2016-02-25 21:51:25.000000000 +0100 +++ /work/SRC/openSUSE:Factory/.perl-XML-XPath.new/perl-XML-XPath.changes 2016-03-11 12:29:12.000000000 +0100 @@ -1,0 +2,16 @@ +Mon Mar 7 11:15:24 UTC 2016 - co...@suse.com + +- updated to 1.33 + see /usr/share/doc/packages/perl-XML-XPath/Changes + + 1.33 2016-03-02 MANWAR + - Fixed issue RT #112584 (use of /d modifier in transliteration operator). + + 1.32 2016-02-23 MANWAR + - Applied the following patches kindly provided by GREGOA: + + https://anonscm.debian.org/cgit/pkg-perl/packages/libxml-xpath-perl.git/tree/debian/patches/fix-stringification-overload.patch + https://anonscm.debian.org/cgit/pkg-perl/packages/libxml-xpath-perl.git/tree/debian/patches/test.patch + https://anonscm.debian.org/cgit/pkg-perl/packages/libxml-xpath-perl.git/tree/debian/patches/xpath-option-to-work-without-internet-connection.patch + +------------------------------------------------------------------- Old: ---- XML-XPath-1.31.tar.gz New: ---- XML-XPath-1.33.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ perl-XML-XPath.spec ++++++ --- /var/tmp/diff_new_pack.gCwNy8/_old 2016-03-11 12:29:13.000000000 +0100 +++ /var/tmp/diff_new_pack.gCwNy8/_new 2016-03-11 12:29:13.000000000 +0100 @@ -17,7 +17,7 @@ Name: perl-XML-XPath -Version: 1.31 +Version: 1.33 Release: 0 %define cpan_name XML-XPath Summary: Parse and evaluate XPath statements ++++++ XML-XPath-1.31.tar.gz -> XML-XPath-1.33.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/XML-XPath-1.31/Changes new/XML-XPath-1.33/Changes --- old/XML-XPath-1.31/Changes 2016-02-21 21:52:32.000000000 +0100 +++ new/XML-XPath-1.33/Changes 2016-03-02 13:24:55.000000000 +0100 @@ -1,5 +1,15 @@ Revision history for XML::XPath +1.33 2016-03-02 MANWAR + - Fixed issue RT #112584 (use of /d modifier in transliteration operator). + +1.32 2016-02-23 MANWAR + - Applied the following patches kindly provided by GREGOA: + + https://anonscm.debian.org/cgit/pkg-perl/packages/libxml-xpath-perl.git/tree/debian/patches/fix-stringification-overload.patch + https://anonscm.debian.org/cgit/pkg-perl/packages/libxml-xpath-perl.git/tree/debian/patches/test.patch + https://anonscm.debian.org/cgit/pkg-perl/packages/libxml-xpath-perl.git/tree/debian/patches/xpath-option-to-work-without-internet-connection.patch + 1.31 2016-02-22 MANWAR - Proposed fix for RT #112017. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/XML-XPath-1.31/MANIFEST new/XML-XPath-1.33/MANIFEST --- old/XML-XPath-1.31/MANIFEST 2016-02-22 10:28:34.000000000 +0100 +++ new/XML-XPath-1.33/MANIFEST 2016-03-02 13:25:39.000000000 +0100 @@ -77,6 +77,7 @@ t/46context.t t/47position.t t/48translate.t +t/49literal.t t/rdf.t t/remove.t t/insert.t diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/XML-XPath-1.31/META.json new/XML-XPath-1.33/META.json --- old/XML-XPath-1.31/META.json 2016-02-22 10:28:34.000000000 +0100 +++ new/XML-XPath-1.33/META.json 2016-03-02 13:25:39.000000000 +0100 @@ -41,91 +41,91 @@ "provides" : { "XML::XPath" : { "file" : "lib/XML/XPath.pm", - "version" : "1.31" + "version" : "1.33" }, "XML::XPath::Boolean" : { "file" : "lib/XML/XPath/Boolean.pm", - "version" : "1.31" + "version" : "1.33" }, "XML::XPath::Builder" : { "file" : "lib/XML/XPath/Builder.pm", - "version" : "1.31" + "version" : "1.33" }, "XML::XPath::Expr" : { "file" : "lib/XML/XPath/Expr.pm", - "version" : "1.31" + "version" : "1.33" }, "XML::XPath::Function" : { "file" : "lib/XML/XPath/Function.pm", - "version" : "1.31" + "version" : "1.33" }, "XML::XPath::Literal" : { "file" : "lib/XML/XPath/Literal.pm", - "version" : "1.31" + "version" : "1.33" }, "XML::XPath::LocationPath" : { "file" : "lib/XML/XPath/LocationPath.pm", - "version" : "1.31" + "version" : "1.33" }, "XML::XPath::Node" : { "file" : "lib/XML/XPath/Node.pm", - "version" : "1.31" + "version" : "1.33" }, "XML::XPath::Node::Attribute" : { "file" : "lib/XML/XPath/Node/Attribute.pm", - "version" : "1.31" + "version" : "1.33" }, "XML::XPath::Node::Comment" : { "file" : "lib/XML/XPath/Node/Comment.pm", - "version" : "1.31" + "version" : "1.33" }, "XML::XPath::Node::Element" : { "file" : "lib/XML/XPath/Node/Element.pm", - "version" : "1.31" + "version" : "1.33" }, "XML::XPath::Node::Namespace" : { "file" : "lib/XML/XPath/Node/Namespace.pm", - "version" : "1.31" + "version" : "1.33" }, "XML::XPath::Node::PI" : { "file" : "lib/XML/XPath/Node/PI.pm", - "version" : "1.31" + "version" : "1.33" }, "XML::XPath::Node::Text" : { "file" : "lib/XML/XPath/Node/Text.pm", - "version" : "1.31" + "version" : "1.33" }, "XML::XPath::NodeSet" : { "file" : "lib/XML/XPath/NodeSet.pm", - "version" : "1.31" + "version" : "1.33" }, "XML::XPath::Number" : { "file" : "lib/XML/XPath/Number.pm", - "version" : "1.31" + "version" : "1.33" }, "XML::XPath::Parser" : { "file" : "lib/XML/XPath/Parser.pm", - "version" : "1.31" + "version" : "1.33" }, "XML::XPath::PerlSAX" : { "file" : "lib/XML/XPath/PerlSAX.pm", - "version" : "1.31" + "version" : "1.33" }, "XML::XPath::Root" : { "file" : "lib/XML/XPath/Root.pm", - "version" : "1.31" + "version" : "1.33" }, "XML::XPath::Step" : { "file" : "lib/XML/XPath/Step.pm", - "version" : "1.31" + "version" : "1.33" }, "XML::XPath::Variable" : { "file" : "lib/XML/XPath/Variable.pm", - "version" : "1.31" + "version" : "1.33" }, "XML::XPath::XMLParser" : { "file" : "lib/XML/XPath/XMLParser.pm", - "version" : "1.31" + "version" : "1.33" } }, "release_status" : "stable", @@ -136,6 +136,6 @@ "web" : "https://github.com/manwar/XML-XPath" } }, - "version" : "1.31", + "version" : "1.33", "x_serialization_backend" : "JSON::PP version 2.27203" } diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/XML-XPath-1.31/META.yml new/XML-XPath-1.33/META.yml --- old/XML-XPath-1.31/META.yml 2016-02-22 10:28:34.000000000 +0100 +++ new/XML-XPath-1.33/META.yml 2016-03-02 13:25:39.000000000 +0100 @@ -21,74 +21,74 @@ provides: XML::XPath: file: lib/XML/XPath.pm - version: '1.31' + version: '1.33' XML::XPath::Boolean: file: lib/XML/XPath/Boolean.pm - version: '1.31' + version: '1.33' XML::XPath::Builder: file: lib/XML/XPath/Builder.pm - version: '1.31' + version: '1.33' XML::XPath::Expr: file: lib/XML/XPath/Expr.pm - version: '1.31' + version: '1.33' XML::XPath::Function: file: lib/XML/XPath/Function.pm - version: '1.31' + version: '1.33' XML::XPath::Literal: file: lib/XML/XPath/Literal.pm - version: '1.31' + version: '1.33' XML::XPath::LocationPath: file: lib/XML/XPath/LocationPath.pm - version: '1.31' + version: '1.33' XML::XPath::Node: file: lib/XML/XPath/Node.pm - version: '1.31' + version: '1.33' XML::XPath::Node::Attribute: file: lib/XML/XPath/Node/Attribute.pm - version: '1.31' + version: '1.33' XML::XPath::Node::Comment: file: lib/XML/XPath/Node/Comment.pm - version: '1.31' + version: '1.33' XML::XPath::Node::Element: file: lib/XML/XPath/Node/Element.pm - version: '1.31' + version: '1.33' XML::XPath::Node::Namespace: file: lib/XML/XPath/Node/Namespace.pm - version: '1.31' + version: '1.33' XML::XPath::Node::PI: file: lib/XML/XPath/Node/PI.pm - version: '1.31' + version: '1.33' XML::XPath::Node::Text: file: lib/XML/XPath/Node/Text.pm - version: '1.31' + version: '1.33' XML::XPath::NodeSet: file: lib/XML/XPath/NodeSet.pm - version: '1.31' + version: '1.33' XML::XPath::Number: file: lib/XML/XPath/Number.pm - version: '1.31' + version: '1.33' XML::XPath::Parser: file: lib/XML/XPath/Parser.pm - version: '1.31' + version: '1.33' XML::XPath::PerlSAX: file: lib/XML/XPath/PerlSAX.pm - version: '1.31' + version: '1.33' XML::XPath::Root: file: lib/XML/XPath/Root.pm - version: '1.31' + version: '1.33' XML::XPath::Step: file: lib/XML/XPath/Step.pm - version: '1.31' + version: '1.33' XML::XPath::Variable: file: lib/XML/XPath/Variable.pm - version: '1.31' + version: '1.33' XML::XPath::XMLParser: file: lib/XML/XPath/XMLParser.pm - version: '1.31' + version: '1.33' requires: XML::Parser: '2.23' perl: '5.006' resources: repository: https://github.com/manwar/XML-XPath.git -version: '1.31' +version: '1.33' x_serialization_backend: 'CPAN::Meta::YAML version 0.012' diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/XML-XPath-1.31/Makefile.PL new/XML-XPath-1.33/Makefile.PL --- old/XML-XPath-1.31/Makefile.PL 2016-02-21 21:44:27.000000000 +0100 +++ new/XML-XPath-1.33/Makefile.PL 2016-03-02 13:20:31.000000000 +0100 @@ -27,28 +27,28 @@ (eval { ExtUtils::MakeMaker->VERSION(6.46) } ? (META_MERGE => { 'meta-spec' => { version => 2 }, provides => { - 'XML::XPath' => { file => 'lib/XML/XPath.pm', version => '1.31' }, - 'XML::XPath::XMLParser' => { file => 'lib/XML/XPath/XMLParser.pm', version => '1.31' }, - 'XML::XPath::Parser' => { file => 'lib/XML/XPath/Parser.pm', version => '1.31' }, - 'XML::XPath::Expr' => { file => 'lib/XML/XPath/Expr.pm', version => '1.31' }, - 'XML::XPath::Function' => { file => 'lib/XML/XPath/Function.pm', version => '1.31' }, - 'XML::XPath::Literal' => { file => 'lib/XML/XPath/Literal.pm', version => '1.31' }, - 'XML::XPath::LocationPath' => { file => 'lib/XML/XPath/LocationPath.pm', version => '1.31' }, - 'XML::XPath::Number' => { file => 'lib/XML/XPath/Number.pm', version => '1.31' }, - 'XML::XPath::Node' => { file => 'lib/XML/XPath/Node.pm', version => '1.31' }, - 'XML::XPath::Node::Element' => { file => 'lib/XML/XPath/Node/Element.pm', version => '1.31' }, - 'XML::XPath::Node::Attribute' => { file => 'lib/XML/XPath/Node/Attribute.pm', version => '1.31' }, - 'XML::XPath::Node::Text' => { file => 'lib/XML/XPath/Node/Text.pm', version => '1.31' }, - 'XML::XPath::Node::Namespace' => { file => 'lib/XML/XPath/Node/Namespace.pm', version => '1.31' }, - 'XML::XPath::Node::PI' => { file => 'lib/XML/XPath/Node/PI.pm', version => '1.31' }, - 'XML::XPath::Node::Comment' => { file => 'lib/XML/XPath/Node/Comment.pm', version => '1.31' }, - 'XML::XPath::Step' => { file => 'lib/XML/XPath/Step.pm', version => '1.31' }, - 'XML::XPath::Variable' => { file => 'lib/XML/XPath/Variable.pm', version => '1.31' }, - 'XML::XPath::NodeSet' => { file => 'lib/XML/XPath/NodeSet.pm', version => '1.31' }, - 'XML::XPath::Boolean' => { file => 'lib/XML/XPath/Boolean.pm', version => '1.31' }, - 'XML::XPath::Root' => { file => 'lib/XML/XPath/Root.pm', version => '1.31' }, - 'XML::XPath::PerlSAX' => { file => 'lib/XML/XPath/PerlSAX.pm', version => '1.31' }, - 'XML::XPath::Builder' => { file => 'lib/XML/XPath/Builder.pm', version => '1.31' }, + 'XML::XPath' => { file => 'lib/XML/XPath.pm', version => '1.33' }, + 'XML::XPath::XMLParser' => { file => 'lib/XML/XPath/XMLParser.pm', version => '1.33' }, + 'XML::XPath::Parser' => { file => 'lib/XML/XPath/Parser.pm', version => '1.33' }, + 'XML::XPath::Expr' => { file => 'lib/XML/XPath/Expr.pm', version => '1.33' }, + 'XML::XPath::Function' => { file => 'lib/XML/XPath/Function.pm', version => '1.33' }, + 'XML::XPath::Literal' => { file => 'lib/XML/XPath/Literal.pm', version => '1.33' }, + 'XML::XPath::LocationPath' => { file => 'lib/XML/XPath/LocationPath.pm', version => '1.33' }, + 'XML::XPath::Number' => { file => 'lib/XML/XPath/Number.pm', version => '1.33' }, + 'XML::XPath::Node' => { file => 'lib/XML/XPath/Node.pm', version => '1.33' }, + 'XML::XPath::Node::Element' => { file => 'lib/XML/XPath/Node/Element.pm', version => '1.33' }, + 'XML::XPath::Node::Attribute' => { file => 'lib/XML/XPath/Node/Attribute.pm', version => '1.33' }, + 'XML::XPath::Node::Text' => { file => 'lib/XML/XPath/Node/Text.pm', version => '1.33' }, + 'XML::XPath::Node::Namespace' => { file => 'lib/XML/XPath/Node/Namespace.pm', version => '1.33' }, + 'XML::XPath::Node::PI' => { file => 'lib/XML/XPath/Node/PI.pm', version => '1.33' }, + 'XML::XPath::Node::Comment' => { file => 'lib/XML/XPath/Node/Comment.pm', version => '1.33' }, + 'XML::XPath::Step' => { file => 'lib/XML/XPath/Step.pm', version => '1.33' }, + 'XML::XPath::Variable' => { file => 'lib/XML/XPath/Variable.pm', version => '1.33' }, + 'XML::XPath::NodeSet' => { file => 'lib/XML/XPath/NodeSet.pm', version => '1.33' }, + 'XML::XPath::Boolean' => { file => 'lib/XML/XPath/Boolean.pm', version => '1.33' }, + 'XML::XPath::Root' => { file => 'lib/XML/XPath/Root.pm', version => '1.33' }, + 'XML::XPath::PerlSAX' => { file => 'lib/XML/XPath/PerlSAX.pm', version => '1.33' }, + 'XML::XPath::Builder' => { file => 'lib/XML/XPath/Builder.pm', version => '1.33' }, }, resources => { repository => { diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/XML-XPath-1.31/lib/XML/XPath/Boolean.pm new/XML-XPath-1.33/lib/XML/XPath/Boolean.pm --- old/XML-XPath-1.31/lib/XML/XPath/Boolean.pm 2016-02-21 21:45:14.000000000 +0100 +++ new/XML-XPath-1.33/lib/XML/XPath/Boolean.pm 2016-03-02 13:16:14.000000000 +0100 @@ -1,6 +1,6 @@ package XML::XPath::Boolean; -$VERSION = '1.31'; +$VERSION = '1.33'; use XML::XPath::Number; use XML::XPath::Literal; diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/XML-XPath-1.31/lib/XML/XPath/Builder.pm new/XML-XPath-1.33/lib/XML/XPath/Builder.pm --- old/XML-XPath-1.31/lib/XML/XPath/Builder.pm 2016-02-21 21:45:24.000000000 +0100 +++ new/XML-XPath-1.33/lib/XML/XPath/Builder.pm 2016-03-02 13:16:21.000000000 +0100 @@ -1,6 +1,6 @@ package XML::XPath::Builder; -$VERSION = '1.31'; +$VERSION = '1.33'; use strict; use warnings; diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/XML-XPath-1.31/lib/XML/XPath/Expr.pm new/XML-XPath-1.33/lib/XML/XPath/Expr.pm --- old/XML-XPath-1.31/lib/XML/XPath/Expr.pm 2016-02-21 21:45:34.000000000 +0100 +++ new/XML-XPath-1.33/lib/XML/XPath/Expr.pm 2016-03-02 13:16:29.000000000 +0100 @@ -1,6 +1,6 @@ package XML::XPath::Expr; -$VERSION = '1.31'; +$VERSION = '1.33'; use strict; use warnings; diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/XML-XPath-1.31/lib/XML/XPath/Function.pm new/XML-XPath-1.33/lib/XML/XPath/Function.pm --- old/XML-XPath-1.31/lib/XML/XPath/Function.pm 2016-02-21 21:45:43.000000000 +0100 +++ new/XML-XPath-1.33/lib/XML/XPath/Function.pm 2016-03-02 13:16:41.000000000 +0100 @@ -1,6 +1,6 @@ package XML::XPath::Function; -$VERSION = '1.31'; +$VERSION = '1.33'; use XML::XPath::Number; use XML::XPath::Literal; @@ -348,7 +348,12 @@ local $_ = $params[0]->string_value; my $find = $params[1]->string_value; my $repl = $params[2]->string_value; - eval "tr/\Q$find\E/\Q$repl\E/d"; + if (length($find) == length($repl)) { + eval "tr/\Q$find\E/\Q$repl\E/"; + } + else { + eval "tr/\Q$find\E/\Q$repl\E/d"; + } die $@ if $@; return XML::XPath::Literal->new($_); } diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/XML-XPath-1.31/lib/XML/XPath/Literal.pm new/XML-XPath-1.33/lib/XML/XPath/Literal.pm --- old/XML-XPath-1.31/lib/XML/XPath/Literal.pm 2016-02-21 21:45:52.000000000 +0100 +++ new/XML-XPath-1.33/lib/XML/XPath/Literal.pm 2016-03-02 13:16:51.000000000 +0100 @@ -1,6 +1,6 @@ package XML::XPath::Literal; -$VERSION = '1.31'; +$VERSION = '1.33'; use XML::XPath::Boolean; use XML::XPath::Number; @@ -8,6 +8,7 @@ use overload '""' => \&value, + 'fallback' => 1, 'cmp' => \&cmp; sub new { diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/XML-XPath-1.31/lib/XML/XPath/LocationPath.pm new/XML-XPath-1.33/lib/XML/XPath/LocationPath.pm --- old/XML-XPath-1.31/lib/XML/XPath/LocationPath.pm 2016-02-21 21:46:00.000000000 +0100 +++ new/XML-XPath-1.33/lib/XML/XPath/LocationPath.pm 2016-03-02 13:17:02.000000000 +0100 @@ -1,6 +1,6 @@ package XML::XPath::LocationPath; -$VERSION = '1.31'; +$VERSION = '1.33'; use XML::XPath::Root; use strict; use warnings; diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/XML-XPath-1.31/lib/XML/XPath/Node/Attribute.pm new/XML-XPath-1.33/lib/XML/XPath/Node/Attribute.pm --- old/XML-XPath-1.31/lib/XML/XPath/Node/Attribute.pm 2016-02-21 21:48:13.000000000 +0100 +++ new/XML-XPath-1.33/lib/XML/XPath/Node/Attribute.pm 2016-03-02 13:17:17.000000000 +0100 @@ -4,7 +4,7 @@ use vars qw/@ISA $VERSION/; @ISA = ('XML::XPath::Node'); -$VERSION = '1.31'; +$VERSION = '1.33'; package XML::XPath::Node::AttributeImpl; @@ -12,7 +12,7 @@ @ISA = ('XML::XPath::NodeImpl', 'XML::XPath::Node::Attribute'); use XML::XPath::Node ':node_keys'; -$VERSION = '1.31'; +$VERSION = '1.33'; sub new { my $class = shift; diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/XML-XPath-1.31/lib/XML/XPath/Node/Comment.pm new/XML-XPath-1.33/lib/XML/XPath/Node/Comment.pm --- old/XML-XPath-1.31/lib/XML/XPath/Node/Comment.pm 2016-02-21 21:48:21.000000000 +0100 +++ new/XML-XPath-1.33/lib/XML/XPath/Node/Comment.pm 2016-03-02 13:18:47.000000000 +0100 @@ -1,6 +1,6 @@ package XML::XPath::Node::Comment; -$VERSION = '1.31'; +$VERSION = '1.33'; use strict; use warnings; use vars qw/@ISA/; diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/XML-XPath-1.31/lib/XML/XPath/Node/Element.pm new/XML-XPath-1.33/lib/XML/XPath/Node/Element.pm --- old/XML-XPath-1.31/lib/XML/XPath/Node/Element.pm 2016-02-21 21:48:28.000000000 +0100 +++ new/XML-XPath-1.33/lib/XML/XPath/Node/Element.pm 2016-03-02 13:18:54.000000000 +0100 @@ -1,6 +1,6 @@ package XML::XPath::Node::Element; -$VERSION = '1.31'; +$VERSION = '1.33'; use strict; use warnings; use vars qw/@ISA/; diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/XML-XPath-1.31/lib/XML/XPath/Node/Namespace.pm new/XML-XPath-1.33/lib/XML/XPath/Node/Namespace.pm --- old/XML-XPath-1.31/lib/XML/XPath/Node/Namespace.pm 2016-02-21 21:48:36.000000000 +0100 +++ new/XML-XPath-1.33/lib/XML/XPath/Node/Namespace.pm 2016-03-02 13:19:01.000000000 +0100 @@ -1,6 +1,6 @@ package XML::XPath::Node::Namespace; -$VERSION = '1.31'; +$VERSION = '1.33'; use strict; use warnings; use vars qw/@ISA/; diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/XML-XPath-1.31/lib/XML/XPath/Node/PI.pm new/XML-XPath-1.33/lib/XML/XPath/Node/PI.pm --- old/XML-XPath-1.31/lib/XML/XPath/Node/PI.pm 2016-02-21 21:48:45.000000000 +0100 +++ new/XML-XPath-1.33/lib/XML/XPath/Node/PI.pm 2016-03-02 13:19:09.000000000 +0100 @@ -1,6 +1,6 @@ package XML::XPath::Node::PI; -$VERSION = '1.31'; +$VERSION = '1.33'; use strict; use warnings; use vars qw/@ISA/; diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/XML-XPath-1.31/lib/XML/XPath/Node/Text.pm new/XML-XPath-1.33/lib/XML/XPath/Node/Text.pm --- old/XML-XPath-1.31/lib/XML/XPath/Node/Text.pm 2016-02-21 21:48:53.000000000 +0100 +++ new/XML-XPath-1.33/lib/XML/XPath/Node/Text.pm 2016-03-02 13:19:15.000000000 +0100 @@ -1,6 +1,6 @@ package XML::XPath::Node::Text; -$VERSION = '1.31'; +$VERSION = '1.33'; use strict; use warnings; use vars qw/@ISA/; diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/XML-XPath-1.31/lib/XML/XPath/Node.pm new/XML-XPath-1.33/lib/XML/XPath/Node.pm --- old/XML-XPath-1.31/lib/XML/XPath/Node.pm 2016-02-21 21:46:11.000000000 +0100 +++ new/XML-XPath-1.33/lib/XML/XPath/Node.pm 2016-03-02 13:17:24.000000000 +0100 @@ -1,6 +1,6 @@ package XML::XPath::Node; -$VERSION = '1.31'; +$VERSION = '1.33'; use strict; use warnings; use vars qw(@ISA @EXPORT $AUTOLOAD %EXPORT_TAGS @EXPORT_OK); diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/XML-XPath-1.31/lib/XML/XPath/NodeSet.pm new/XML-XPath-1.33/lib/XML/XPath/NodeSet.pm --- old/XML-XPath-1.31/lib/XML/XPath/NodeSet.pm 2016-02-21 21:46:22.000000000 +0100 +++ new/XML-XPath-1.33/lib/XML/XPath/NodeSet.pm 2016-03-02 13:17:31.000000000 +0100 @@ -1,6 +1,6 @@ package XML::XPath::NodeSet; -$VERSION = '1.31'; +$VERSION = '1.33'; use strict; use warnings; diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/XML-XPath-1.31/lib/XML/XPath/Number.pm new/XML-XPath-1.33/lib/XML/XPath/Number.pm --- old/XML-XPath-1.31/lib/XML/XPath/Number.pm 2016-02-21 21:46:59.000000000 +0100 +++ new/XML-XPath-1.33/lib/XML/XPath/Number.pm 2016-03-02 13:17:40.000000000 +0100 @@ -1,6 +1,6 @@ package XML::XPath::Number; -$VERSION = '1.31'; +$VERSION = '1.33'; use XML::XPath::Boolean; use XML::XPath::Literal; diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/XML-XPath-1.31/lib/XML/XPath/Parser.pm new/XML-XPath-1.33/lib/XML/XPath/Parser.pm --- old/XML-XPath-1.31/lib/XML/XPath/Parser.pm 2016-02-21 21:47:07.000000000 +0100 +++ new/XML-XPath-1.33/lib/XML/XPath/Parser.pm 2016-03-02 13:17:47.000000000 +0100 @@ -1,6 +1,6 @@ package XML::XPath::Parser; -$VERSION = '1.31'; +$VERSION = '1.33'; use strict; use warnings; use vars qw/ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/XML-XPath-1.31/lib/XML/XPath/PerlSAX.pm new/XML-XPath-1.33/lib/XML/XPath/PerlSAX.pm --- old/XML-XPath-1.31/lib/XML/XPath/PerlSAX.pm 2016-02-21 21:47:15.000000000 +0100 +++ new/XML-XPath-1.33/lib/XML/XPath/PerlSAX.pm 2016-03-02 13:17:55.000000000 +0100 @@ -1,6 +1,6 @@ package XML::XPath::PerlSAX; -$VERSION = '1.31'; +$VERSION = '1.33'; use XML::XPath::Node qw(:node_keys); use XML::XPath::XMLParser; diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/XML-XPath-1.31/lib/XML/XPath/Root.pm new/XML-XPath-1.33/lib/XML/XPath/Root.pm --- old/XML-XPath-1.31/lib/XML/XPath/Root.pm 2016-02-21 21:47:23.000000000 +0100 +++ new/XML-XPath-1.33/lib/XML/XPath/Root.pm 2016-03-02 13:18:04.000000000 +0100 @@ -1,6 +1,6 @@ package XML::XPath::Root; -$VERSION = '1.31'; +$VERSION = '1.33'; use strict; use warnings; use XML::XPath::XMLParser; diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/XML-XPath-1.31/lib/XML/XPath/Step.pm new/XML-XPath-1.33/lib/XML/XPath/Step.pm --- old/XML-XPath-1.31/lib/XML/XPath/Step.pm 2016-02-21 21:47:36.000000000 +0100 +++ new/XML-XPath-1.33/lib/XML/XPath/Step.pm 2016-03-02 13:18:13.000000000 +0100 @@ -1,6 +1,6 @@ package XML::XPath::Step; -$VERSION = '1.31'; +$VERSION = '1.33'; use XML::XPath::Parser; use XML::XPath::Node; diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/XML-XPath-1.31/lib/XML/XPath/Variable.pm new/XML-XPath-1.33/lib/XML/XPath/Variable.pm --- old/XML-XPath-1.31/lib/XML/XPath/Variable.pm 2016-02-21 21:47:45.000000000 +0100 +++ new/XML-XPath-1.33/lib/XML/XPath/Variable.pm 2016-03-02 13:18:24.000000000 +0100 @@ -1,6 +1,6 @@ package XML::XPath::Variable; -$VERSION = '1.31'; +$VERSION = '1.33'; use strict; use warnings; diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/XML-XPath-1.31/lib/XML/XPath/XMLParser.pm new/XML-XPath-1.33/lib/XML/XPath/XMLParser.pm --- old/XML-XPath-1.31/lib/XML/XPath/XMLParser.pm 2016-02-21 21:47:53.000000000 +0100 +++ new/XML-XPath-1.33/lib/XML/XPath/XMLParser.pm 2016-03-02 13:18:33.000000000 +0100 @@ -1,6 +1,6 @@ package XML::XPath::XMLParser; -$VERSION = '1.31'; +$VERSION = '1.33'; use strict; use warnings; @@ -52,7 +52,7 @@ my $parser = $self->get_parser || XML::Parser->new( ErrorContext => 2, - ParseParamEnt => 1, + ParseParamEnt => $XML::XPath::ParseParamEnt, ); $parser->setHandlers( diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/XML-XPath-1.31/lib/XML/XPath.pm new/XML-XPath-1.33/lib/XML/XPath.pm --- old/XML-XPath-1.31/lib/XML/XPath.pm 2016-02-21 21:45:00.000000000 +0100 +++ new/XML-XPath-1.33/lib/XML/XPath.pm 2016-03-02 13:16:03.000000000 +0100 @@ -6,15 +6,16 @@ =head1 VERSION -Version 1.31 +Version 1.33 =cut use strict; use warnings; use vars qw($VERSION $AUTOLOAD $revision); -$VERSION = '1.31'; +$VERSION = '1.33'; $XML::XPath::Namespaces = 1; +$XML::XPath::ParseParamEnt = 1; $XML::XPath::Debug = 0; use Data::Dumper; diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/XML-XPath-1.31/t/49literal.t new/XML-XPath-1.33/t/49literal.t --- old/XML-XPath-1.31/t/49literal.t 1970-01-01 01:00:00.000000000 +0100 +++ new/XML-XPath-1.33/t/49literal.t 2016-02-23 15:38:36.000000000 +0100 @@ -0,0 +1,31 @@ +use Test::More; +use XML::XPath; +use XML::XPath::Parser; +use XML::XPath::XMLParser; + +my $p = XML::XPath->new(filename => 'examples/test.xml'); +ok($p); + +my $pp = XML::XPath::Parser->new(); +ok($pp); + +$pp->parse("variable('amount', number(number(./rate/text()) * number(./units_worked/text())))"); + +my $path = $pp->parse('.// + tag/ + child::*/ + processing-instruction("Fred")/ + self::node()[substr("33", 1, 1)]/ + attribute::ra[../@gunk] + [(../../@att="va\'l") and (@bert = "geee")] + [position() = child::para/fred] + [0 -.3]/ + geerner[(farp | blert)[predicate[@vee]]]'); + +ok($path); +ok($path->as_string); + +my $nodes = $p->find('/timesheet//wednesday'); +is($nodes->size, 2); + +done_testing(); \ No newline at end of file