Skip to content

Commit a9e66a2

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

File tree

14 files changed

+58
-43
lines changed

14 files changed

+58
-43
lines changed

Changes

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

3+
1.51 Jul 5, 2007
4+
- Changes to X::X::Stylesheet::Docbook2LaTeX for Pod::Manual
5+
36
1.50.1 Jul 5, 2007
47
- Silencing warnings in t/04unicode.t
58
- t/99signature.t is now an author test

META.yml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
name: XML-XPathScript
3-
version: 1.50.1
3+
version: 1.51
44
author:
55
- 'Yanick Champoux <yanick@cpan.org>'
66
- 'Dominique Quatravaux <domq@cpan.org> '
@@ -24,35 +24,35 @@ build_requires:
2424
provides:
2525
Apache::AxKit::Language::YPathScript:
2626
file: lib_axkit/Apache/AxKit/Language/YPathScript.pm
27-
version: 1.50.1
27+
version: 1.51
2828
XML::XPathScript:
2929
file: lib/XML/XPathScript.pm
30-
version: 1.50.1
30+
version: 1.51
3131
XML::XPathScript::Processor:
3232
file: lib/XML/XPathScript/Processor.pm
33-
version: 1.50.1
33+
version: 1.51
3434
XML::XPathScript::Processor::B:
3535
file: lib/XML/XPathScript/Processor/B.pm
36-
version: 1.50.1
36+
version: 1.51
3737
XML::XPathScript::Processor::LibXML:
3838
file: lib/XML/XPathScript/Processor/LibXML.pm
39-
version: 1.50.1
39+
version: 1.51
4040
XML::XPathScript::Processor::XPath:
4141
file: lib/XML/XPathScript/Processor/XPath.pm
42-
version: 1.50.1
42+
version: 1.51
4343
XML::XPathScript::StdoutSnatcher:
4444
file: lib/XML/XPathScript.pm
4545
XML::XPathScript::Stylesheet::DocBook2LaTeX:
4646
file: lib/XML/XPathScript/Stylesheet/DocBook2LaTeX.pm
47-
version: 1.50.1
47+
version: 1.51
4848
XML::XPathScript::Template:
4949
file: lib/XML/XPathScript/Template.pm
50-
version: 1.50.1
50+
version: 1.51
5151
XML::XPathScript::Template::Content:
5252
file: lib/XML/XPathScript/Processor.pm
5353
XML::XPathScript::Template::Tag:
5454
file: lib/XML/XPathScript/Template/Tag.pm
55-
version: 1.50.1
55+
version: 1.51
5656
generated_by: Module::Build version 0.2806
5757
meta-spec:
5858
url: http://module-build.sourceforge.net/META-spec-v1.2.html

SIGNATURE

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -15,26 +15,26 @@ not run its Makefile.PL or Build.PL.
1515
Hash: SHA1
1616

1717
SHA1 650c5209a1446ddc0c69b8cb04002a9b884a2818 Build.PL
18-
SHA1 1f470d087292abb8f1da298bafe0df1b64b1650a Changes
18+
SHA1 b6067af4f6ea1207fac092fbe266b20f3d8247fb Changes
1919
SHA1 05a5f3528ef8a73c665e5e73cfe088a22841d60f MANIFEST
20-
SHA1 f6e3b3956d01f6cb1f2478b6b4f7da6277468e6a META.yml
20+
SHA1 d53f8120147cac207e1d35a899b11b63b6bb5cd7 META.yml
2121
SHA1 10ff3cb66031d8671cfbd03cbb4bfc14c3370c8d Makefile.PL
2222
SHA1 c2e34b4811270ed95284adb577460fdc93be8685 README
2323
SHA1 585dbee14359e90630096c4c39d944c3ed5fd0df dist/rewrite-default-xml-parser
2424
SHA1 b8f13d00c750860ca69a0f2be632fdb0cf1b3256 examples/docbook2latex.xps
2525
SHA1 49de2221717af40dfd852e18c46650097290aa1f examples/sample-docbook.xml
26-
SHA1 763b95af2c00f1ed3095378d06469d5f227b1e9a lib/XML/XPathScript.pm
27-
SHA1 d6e2a77b0c5129593218813d3a5396663296cec7 lib/XML/XPathScript/Processor.pm
28-
SHA1 6323338bb4369dd3f82c28e944617a3079b77d2b lib/XML/XPathScript/Processor/B.pm
29-
SHA1 fc4804c4926a170ea54e8b54c82d8826a59dcb37 lib/XML/XPathScript/Processor/LibXML.pm
30-
SHA1 db0d9cf161c85992a760a81a707e90d48f7594e6 lib/XML/XPathScript/Processor/XPath.pm
26+
SHA1 f51bb4d3ec7c517b4766e033d894e973df43f1d5 lib/XML/XPathScript.pm
27+
SHA1 84e333cfa9e7985cfe926b251b3baa0189861ab4 lib/XML/XPathScript/Processor.pm
28+
SHA1 ce089329995f7c7b5d420ab78167c5de96cfd3d8 lib/XML/XPathScript/Processor/B.pm
29+
SHA1 3108044a8dc89d4262ae23e27da9fad66baebeab lib/XML/XPathScript/Processor/LibXML.pm
30+
SHA1 dff51117bdab65035db25f1a63296bab867ba736 lib/XML/XPathScript/Processor/XPath.pm
3131
SHA1 4f2bd67d33fd417629c6cff2a0d3053035c45e03 lib/XML/XPathScript/Stylesheet.pod
32-
SHA1 aeb2b70124159ca29c609910e6ef6e5911d646ff lib/XML/XPathScript/Stylesheet/DocBook2LaTeX.pm
33-
SHA1 305ed683d5de280fb0bce5324d988340f0a669ac lib/XML/XPathScript/Template.pm
34-
SHA1 f08334d85c5870543b8b83a37860c94e269d084b lib/XML/XPathScript/Template/Tag.pm
35-
SHA1 6a8ab60f3ee449ef59148789e4e860ccde29c6af lib_axkit/Apache/AxKit/Language/YPathScript.pm
36-
SHA1 bed024fac703685557a02adc5c73e37221d18797 lib_tomkit/Apache2/TomKit/Processor/XPathScript.pm
37-
SHA1 cf475bb123037cb0e834e96816e8c129c1a6a88d script/xpathscript
32+
SHA1 dfa670670052504652bcf7b07a77769c0d804fd8 lib/XML/XPathScript/Stylesheet/DocBook2LaTeX.pm
33+
SHA1 56f5c4263b3bf0222b765affec2dd962a515d203 lib/XML/XPathScript/Template.pm
34+
SHA1 aacd1eeda37530ac36d228bfe8c578d7a3ac9267 lib/XML/XPathScript/Template/Tag.pm
35+
SHA1 c42f35dec09e38a9576943b2d6a963376088b602 lib_axkit/Apache/AxKit/Language/YPathScript.pm
36+
SHA1 b9d91b16f30aa9d53cd648744a91156635158320 lib_tomkit/Apache2/TomKit/Processor/XPathScript.pm
37+
SHA1 221c8eb3ccde56e17cbae80e8b28dcfbceccd786 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-
iD8DBQFGjYgl34Hwf+GwC4wRAhGPAKCbNAnPncO/CRttmplCJz0gAxYEOgCfe3IM
106-
+vYNPNExOZmICRn5QvIa+2w=
107-
=TRiA
105+
iD8DBQFGjaf334Hwf+GwC4wRArmdAKDKgfKH7O1ZwGGwgAS1659mmRS4fACg+buc
106+
Y1cKtwdhyHziJnr2Arlm4tw=
107+
=5vfP
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: 998 $ - $Date: 2007-07-06T00:30:49.463277Z $
7+
# $Revision: 1007 $ - $Date: 2007-07-06T02:46:24.873259Z $
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.50.1';
242+
our $VERSION = '1.51';
243243

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

lib/XML/XPathScript/Processor.pm

Lines changed: 1 addition & 1 deletion
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.50.1';
12+
our $VERSION = '1.51';
1313

1414
our @EXPORT = qw/
1515
$DO_SELF_AS_CHILD

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.50.1';
8+
our $VERSION = '1.51';
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.50.1';
8+
our $VERSION = '1.51';
99

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

lib/XML/XPathScript/Processor/XPath.pm

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

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

8-
our $VERSION = '1.50.1';
8+
our $VERSION = '1.51';
99

1010
sub get_namespace {
1111
my $prefix = $_[1]->getPrefix or return;

lib/XML/XPathScript/Stylesheet/DocBook2LaTeX.pm

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ use strict;
66
use XML::XPathScript::Processor;
77
use Carp;
88

9-
our $VERSION = '1.50.1';
9+
our $VERSION = '1.51';
1010

1111
our $processor;
1212

@@ -331,6 +331,7 @@ sub listtitle {
331331
}
332332

333333
sub tc_screen {
334+
no warnings qw/ uninitialized /;
334335
my ($self,$t)=@_;
335336
my $ret= verbatimcode($self,$t,1);
336337

@@ -401,6 +402,7 @@ sub verbatimcode {
401402
};
402403

403404
sub RE_of_uniconvs {
405+
no warnings qw/ digit /;
404406
my ($uni)=@_;
405407
my @latin1variants=grep {$_ < 0xFF} (keys %$uni);
406408
my $RE='[^\x9\xA\x20-\xFF]|'.
@@ -430,6 +432,7 @@ sub utf8totex {
430432
do {
431433
use utf8;
432434

435+
no warnings qw/ digit /;
433436
$uni =~ s/($escapeRE)/
434437
my $c=ord($1);
435438
if (exists $$uniref{$c}) { "<$c>"; } else {
@@ -498,8 +501,12 @@ sub tc_section {
498501
}
499502

500503
my $title = apply_templates_under('title',$n);
501-
my $titleabbrev = apply_templates_under( $n->findnodes('titleabbrev') )
502-
|| $title ;
504+
my( $abbrev_node ) = $n->findnodes('titleabbrev');
505+
my $titleabbrev;
506+
if ( $abbrev_node ) {
507+
$titleabbrev = apply_templates_under( $abbrev_node );
508+
}
509+
$titleabbrev ||= $title ;
503510

504511
if ( $numbered_sections ) {
505512
$t->{pre}="\n\n".sprintf '\%s[%s]{%s}',$name ,$titleabbrev, $title ;
@@ -521,9 +528,13 @@ sub tc_section {
521528
};
522529

523530
sub thelabel {
531+
return unless @_;
532+
533+
no warnings qw/ uninitialized /;
534+
524535
my $label = id2label( $_[0] );
525536

526-
return "\\label{$label}\n" x !!$label;
537+
return $label ? "\\label{$label}\n" : q{} ;
527538
}
528539

529540
# Handle UTF-8 braindamage and prevent utf8 tainting from propagating
@@ -657,6 +668,7 @@ SUBTITLE
657668
\title{\textbf{\textsc{\Huge{}%s}}}
658669
TITLE
659670

671+
no warnings qw/ uninitialized /;
660672
$t->{pre}.="\n\\author{$author}\n";
661673
};
662674

lib/XML/XPathScript/Template.pm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ use Scalar::Util qw/ refaddr /;
1313
use overload '&{}' => \&_overload_func,
1414
q{""} => \&_overload_quote;
1515

16-
our $VERSION = '1.50.1';
16+
our $VERSION = '1.51';
1717

1818
sub new {
1919
my( $class ) = @_;

0 commit comments

Comments
 (0)