Skip to content

Commit 4b490c1

Browse files
Yanick ChampouxGitpan
authored andcommitted
Import of YANICK/XML-XPathScript-1.53 from CPAN.
gitpan-cpan-distribution: XML-XPathScript gitpan-cpan-version: 1.53 gitpan-cpan-path: YANICK/XML-XPathScript-1.53.tar.gz gitpan-cpan-author: YANICK gitpan-cpan-maturity: released
1 parent b377920 commit 4b490c1

File tree

17 files changed

+69
-55
lines changed

17 files changed

+69
-55
lines changed

Build.PL

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,8 @@ my $build = $class->new
9696

9797
$build->create_build_script;
9898

99+
### utility functions #####################################
100+
99101
sub choose_parser {
100102
my( $XML_parser ) = @_;
101103

@@ -128,8 +130,17 @@ sub choose_parser {
128130
}
129131
print "XML::XPath not found\n";
130132

131-
die "XML::XPathScript needs either XML::LibXML or ",
132-
"XML::XPath to be installed\n";
133+
print <<'END_MESSAGE';
134+
Neither XML::LibXML or XML::XPath are already installed.
135+
136+
Setting XML::LibXML as a dependency, as it is the
137+
most efficient of the two. If, for whatever reason,
138+
it fails to install on your machine, consider trying
139+
to install XML::XPath.
140+
141+
END_MESSAGE
142+
143+
return 'XML::LibXML';
133144
}
134145

135146

Changes

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
Revision history for Perl module XML::XPathScript
22

3+
1.53 Dec 18, 2007
4+
- If no XML parser is present during installation, add XML::LibXML
5+
to the dependencies (thanks to David for the bug report)
6+
37
1.52 Jul 6, 2007
48
- Added Clone dependency
59

META.yml

Lines changed: 10 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
name: XML-XPathScript
3-
version: 1.52
3+
version: 1.53
44
author:
55
- 'Yanick Champoux <yanick@cpan.org>'
66
- 'Dominique Quatravaux <domq@cpan.org> '
@@ -23,38 +23,35 @@ build_requires:
2323
File::Find: 0
2424
File::Spec: 0
2525
provides:
26-
Apache::AxKit::Language::YPathScript:
27-
file: lib_axkit/Apache/AxKit/Language/YPathScript.pm
28-
version: 1.52
2926
XML::XPathScript:
3027
file: lib/XML/XPathScript.pm
31-
version: 1.52
28+
version: 1.53
3229
XML::XPathScript::Processor:
3330
file: lib/XML/XPathScript/Processor.pm
34-
version: 1.52
31+
version: 1.53
3532
XML::XPathScript::Processor::B:
3633
file: lib/XML/XPathScript/Processor/B.pm
37-
version: 1.52
34+
version: 1.53
3835
XML::XPathScript::Processor::LibXML:
3936
file: lib/XML/XPathScript/Processor/LibXML.pm
40-
version: 1.52
37+
version: 1.53
4138
XML::XPathScript::Processor::XPath:
4239
file: lib/XML/XPathScript/Processor/XPath.pm
43-
version: 1.52
40+
version: 1.53
4441
XML::XPathScript::StdoutSnatcher:
4542
file: lib/XML/XPathScript.pm
4643
XML::XPathScript::Stylesheet::DocBook2LaTeX:
4744
file: lib/XML/XPathScript/Stylesheet/DocBook2LaTeX.pm
48-
version: 1.52
45+
version: 1.53
4946
XML::XPathScript::Template:
5047
file: lib/XML/XPathScript/Template.pm
51-
version: 1.52
48+
version: 1.53
5249
XML::XPathScript::Template::Content:
5350
file: lib/XML/XPathScript/Processor.pm
5451
XML::XPathScript::Template::Tag:
5552
file: lib/XML/XPathScript/Template/Tag.pm
56-
version: 1.52
57-
generated_by: Module::Build version 0.2806
53+
version: 1.53
54+
generated_by: Module::Build version 0.280801
5855
meta-spec:
5956
url: http://module-build.sourceforge.net/META-spec-v1.2.html
6057
version: 1.2

Makefile.PL

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Note: this file was auto-generated by Module::Build::Compat version 0.03
1+
# Note: this file was auto-generated by Module::Build::Compat version 0.2808_01
22

33
unless (eval "use Module::Build::Compat 0.02; 1" ) {
44
print "This module requires Module::Build to install itself.\n";

README

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,8 @@ To install this module type the following:
4747

4848

4949
During installation, Build.PL will check if it should use XML::LibXML
50-
or XML::XPath as the default xml parser. if you want to force XPathScript to use
51-
one or the other, do
50+
or XML::XPath as the default xml parser. If you want to force XPathScript
51+
to use one or the other, do
5252

5353
perl Build.PL -parser=XML::LibXML
5454
or

SIGNATURE

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -14,27 +14,27 @@ not run its Makefile.PL or Build.PL.
1414
-----BEGIN PGP SIGNED MESSAGE-----
1515
Hash: SHA1
1616

17-
SHA1 4d71a023a9579cbc9d0e755acd1e65dfd20033a9 Build.PL
18-
SHA1 d4b3c0e2549813c474d50689c1dbc7dcac0c1b5d Changes
17+
SHA1 2554a1c42ac19f0bfc7b5c391676f3343a2ad232 Build.PL
18+
SHA1 47a46a449cf77844a3f743be42cf84638f185071 Changes
1919
SHA1 05a5f3528ef8a73c665e5e73cfe088a22841d60f MANIFEST
20-
SHA1 f67a56e8393b6ef01649d7bc63a57b68fa7e053f META.yml
21-
SHA1 10ff3cb66031d8671cfbd03cbb4bfc14c3370c8d Makefile.PL
22-
SHA1 c2e34b4811270ed95284adb577460fdc93be8685 README
20+
SHA1 a65624f3fca72342c09e93f2ab1c129e2d8ca524 META.yml
21+
SHA1 1794aad4c7569a63f2638e58789ee2f1ad3a86a8 Makefile.PL
22+
SHA1 0b05cc0bbf188500b5260ae83f500e5af82735ca README
2323
SHA1 585dbee14359e90630096c4c39d944c3ed5fd0df dist/rewrite-default-xml-parser
2424
SHA1 b8f13d00c750860ca69a0f2be632fdb0cf1b3256 examples/docbook2latex.xps
2525
SHA1 49de2221717af40dfd852e18c46650097290aa1f examples/sample-docbook.xml
26-
SHA1 583cb4328774fd227eb3d209bfbfac4d45d0d9a5 lib/XML/XPathScript.pm
27-
SHA1 b6f49e2442ded674c1c75ad57de047c0e9f87767 lib/XML/XPathScript/Processor.pm
28-
SHA1 4d3969d334ccfbf3d9b53a2c7c5241ce5d75a2bd lib/XML/XPathScript/Processor/B.pm
29-
SHA1 46ff813a938cca701f3c64b1c49a140fdb0bacc0 lib/XML/XPathScript/Processor/LibXML.pm
30-
SHA1 4b3babfc4c4b0a14e696279c56944c5a57afa242 lib/XML/XPathScript/Processor/XPath.pm
26+
SHA1 b43bb4925898cef7d35be8ba6a3650afce90acac lib/XML/XPathScript.pm
27+
SHA1 d96184b54fe2bb56809c9fb37ec8b75287ead850 lib/XML/XPathScript/Processor.pm
28+
SHA1 1d075f69703ddcc3e5259faba0188174620f1473 lib/XML/XPathScript/Processor/B.pm
29+
SHA1 dd7458db336c56db2bc69b2ab0c8acebfda92611 lib/XML/XPathScript/Processor/LibXML.pm
30+
SHA1 e5147416e4c022a9d5fb8ae55be536a45a2ef90f lib/XML/XPathScript/Processor/XPath.pm
3131
SHA1 4f2bd67d33fd417629c6cff2a0d3053035c45e03 lib/XML/XPathScript/Stylesheet.pod
32-
SHA1 078cce4db2ee6514ee362ab65b6a23514756b636 lib/XML/XPathScript/Stylesheet/DocBook2LaTeX.pm
33-
SHA1 7610e43ce832cdb8d93403df4fb8aec572c5b3ef lib/XML/XPathScript/Template.pm
34-
SHA1 cfe074f67df53a5ac7ac52b142578d77372e41b8 lib/XML/XPathScript/Template/Tag.pm
35-
SHA1 b889885bb42aaa12f05cf04fecb8abb3ef9259e5 lib_axkit/Apache/AxKit/Language/YPathScript.pm
36-
SHA1 0140e131159ce4a86f3c950516d0c1447dd8a055 lib_tomkit/Apache2/TomKit/Processor/XPathScript.pm
37-
SHA1 9fce6c2a6429ebbb482460c211a09a5b31f4a21d script/xpathscript
32+
SHA1 5516c9b56da12b33d0c60134f564a84e30779518 lib/XML/XPathScript/Stylesheet/DocBook2LaTeX.pm
33+
SHA1 c61b07ac8d1e4d791c19f879e13ace684784b762 lib/XML/XPathScript/Template.pm
34+
SHA1 9aba6566eb13651c8ba5d1c5927754e8a6674007 lib/XML/XPathScript/Template/Tag.pm
35+
SHA1 44a91906b1c3ba4b2bddec121e96c77c97f30081 lib_axkit/Apache/AxKit/Language/YPathScript.pm
36+
SHA1 553248592b413f49ea7f739d1da52f2fc2219b53 lib_tomkit/Apache2/TomKit/Processor/XPathScript.pm
37+
SHA1 a73bfb7ff30574b701eba6e321083f6e0690ffe2 script/xpathscript
3838
SHA1 0fabf086f09dd536eab3e44118e71ed456a53eb1 t/00build.t
3939
SHA1 9d8a3166da409cfa69237aaf8228e17f6e75cf9a t/01basic.t
4040
SHA1 66b1a741ea182ba1ff9fcdc6527ee3fdbbec10ef t/02interpolate.t
@@ -102,7 +102,7 @@ SHA1 d36ad2b5860e4ca564b845e0e7bb5d5134624d6e t/testdocs/tag_attributes.xps
102102
-----BEGIN PGP SIGNATURE-----
103103
Version: GnuPG v1.4.3 (GNU/Linux)
104104

105-
iD8DBQFGjjJW34Hwf+GwC4wRAmrLAKC5nqmIcY4EF3uN+CxnYCx1c3bLEACgjY4J
106-
CxmZom5mv6H5jv0KomhQyFc=
107-
=fCQi
105+
iD8DBQFHaIDf34Hwf+GwC4wRAkS+AJ9mG5ukejenOpKQWN48BfOhKslYawCcDRNN
106+
ZqDyr/N2bbwZvO8zrT0SUYM=
107+
=xccT
108108
-----END PGP SIGNATURE-----

lib/XML/XPathScript.pm

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ use strict;
44
use warnings;
55
use Carp;
66

7-
# $Revision: 1012 $ - $Date: 2007-07-06T12:37:51.503257Z $
7+
# $Revision$ - $Date$
88

99
=pod
1010
@@ -239,7 +239,7 @@ use File::Basename;
239239
use XML::XPathScript::Processor;
240240
use XML::XPathScript::Template;
241241

242-
our $VERSION = '1.52';
242+
our $VERSION = '1.53';
243243

244244
$XML_parser = 'XML::LibXML';
245245

lib/XML/XPathScript/Processor.pm

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ use base qw/ Exporter /;
99
use XML::XPathScript::Template;
1010
use Readonly;
1111

12-
our $VERSION = '1.52';
12+
our $VERSION = '1.53';
1313

1414
our @EXPORT = qw/
1515
$DO_SELF_AS_CHILD
@@ -66,10 +66,12 @@ use constant DO_SELF_AND_KIDS => 1;
6666
use constant DO_SELF_ONLY => -1;
6767
use constant DO_NOT_PROCESS => 0;
6868

69-
Readonly our $DO_SELF_AS_CHILD => 2;
70-
Readonly our $DO_SELF_AND_KIDS => 1;
71-
Readonly our $DO_SELF_ONLY => -1;
72-
Readonly our $DO_NOT_PROCESS => 0;
69+
our( $DO_SELF_AS_CHILD, $DO_SELF_AND_KIDS,
70+
$DO_SELF_ONLY, $DO_NOT_PROCESS );
71+
Readonly $DO_SELF_AS_CHILD => 2;
72+
Readonly $DO_SELF_AND_KIDS => 1;
73+
Readonly $DO_SELF_ONLY => -1;
74+
Readonly $DO_NOT_PROCESS => 0;
7375

7476

7577
sub new {

lib/XML/XPathScript/Processor/B.pm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ package XML::XPathScript::Processor::B;
55

66
use base qw/ XML::XPathScript::Processor /;
77

8-
our $VERSION = '1.52';
8+
our $VERSION = '1.53';
99

1010
# No namespaces here
1111
sub get_namespace { }

lib/XML/XPathScript/Processor/LibXML.pm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ use warnings;
55

66
use base qw/ XML::XPathScript::Processor /;
77

8-
our $VERSION = '1.52';
8+
our $VERSION = '1.53';
99

1010
sub get_namespace {
1111
my $ns = $_[1]->getNamespaces();

0 commit comments

Comments
 (0)