Mercurial > repos > iuc > xpath
annotate xpath @ 0:7e01c6a6dbed draft
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/xpath commit e0575333e6f08ef02fc66c2764b43ebd15c6b04b
author | iuc |
---|---|
date | Fri, 10 Jun 2016 15:08:32 -0400 |
parents | |
children | 1ba5c66e39c9 |
rev | line source |
---|---|
0
7e01c6a6dbed
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/xpath commit e0575333e6f08ef02fc66c2764b43ebd15c6b04b
iuc
parents:
diff
changeset
|
1 #!/usr/bin/perl -w |
7e01c6a6dbed
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/xpath commit e0575333e6f08ef02fc66c2764b43ebd15c6b04b
iuc
parents:
diff
changeset
|
2 eval 'exec /usr/bin/perl -w -S $0 ${1+"$@"}' |
7e01c6a6dbed
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/xpath commit e0575333e6f08ef02fc66c2764b43ebd15c6b04b
iuc
parents:
diff
changeset
|
3 if 0; # not running under some shell |
7e01c6a6dbed
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/xpath commit e0575333e6f08ef02fc66c2764b43ebd15c6b04b
iuc
parents:
diff
changeset
|
4 use strict; |
7e01c6a6dbed
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/xpath commit e0575333e6f08ef02fc66c2764b43ebd15c6b04b
iuc
parents:
diff
changeset
|
5 |
7e01c6a6dbed
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/xpath commit e0575333e6f08ef02fc66c2764b43ebd15c6b04b
iuc
parents:
diff
changeset
|
6 $| = 1; |
7e01c6a6dbed
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/xpath commit e0575333e6f08ef02fc66c2764b43ebd15c6b04b
iuc
parents:
diff
changeset
|
7 |
7e01c6a6dbed
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/xpath commit e0575333e6f08ef02fc66c2764b43ebd15c6b04b
iuc
parents:
diff
changeset
|
8 use XML::XPath; |
7e01c6a6dbed
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/xpath commit e0575333e6f08ef02fc66c2764b43ebd15c6b04b
iuc
parents:
diff
changeset
|
9 |
7e01c6a6dbed
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/xpath commit e0575333e6f08ef02fc66c2764b43ebd15c6b04b
iuc
parents:
diff
changeset
|
10 my @paths; |
7e01c6a6dbed
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/xpath commit e0575333e6f08ef02fc66c2764b43ebd15c6b04b
iuc
parents:
diff
changeset
|
11 my $pipeline; |
7e01c6a6dbed
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/xpath commit e0575333e6f08ef02fc66c2764b43ebd15c6b04b
iuc
parents:
diff
changeset
|
12 my $SUFFIX = "\n"; |
7e01c6a6dbed
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/xpath commit e0575333e6f08ef02fc66c2764b43ebd15c6b04b
iuc
parents:
diff
changeset
|
13 my $PREFIX = ""; |
7e01c6a6dbed
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/xpath commit e0575333e6f08ef02fc66c2764b43ebd15c6b04b
iuc
parents:
diff
changeset
|
14 my $quiet = 0; |
7e01c6a6dbed
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/xpath commit e0575333e6f08ef02fc66c2764b43ebd15c6b04b
iuc
parents:
diff
changeset
|
15 |
7e01c6a6dbed
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/xpath commit e0575333e6f08ef02fc66c2764b43ebd15c6b04b
iuc
parents:
diff
changeset
|
16 |
7e01c6a6dbed
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/xpath commit e0575333e6f08ef02fc66c2764b43ebd15c6b04b
iuc
parents:
diff
changeset
|
17 PARSE: while ((@ARGV >= 1) && ($ARGV[0] =~ /^-./ )) { |
7e01c6a6dbed
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/xpath commit e0575333e6f08ef02fc66c2764b43ebd15c6b04b
iuc
parents:
diff
changeset
|
18 OPTIONS: { |
7e01c6a6dbed
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/xpath commit e0575333e6f08ef02fc66c2764b43ebd15c6b04b
iuc
parents:
diff
changeset
|
19 if ($ARGV[0] eq "-e") { |
7e01c6a6dbed
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/xpath commit e0575333e6f08ef02fc66c2764b43ebd15c6b04b
iuc
parents:
diff
changeset
|
20 shift; |
7e01c6a6dbed
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/xpath commit e0575333e6f08ef02fc66c2764b43ebd15c6b04b
iuc
parents:
diff
changeset
|
21 push @paths, shift; |
7e01c6a6dbed
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/xpath commit e0575333e6f08ef02fc66c2764b43ebd15c6b04b
iuc
parents:
diff
changeset
|
22 last OPTIONS; |
7e01c6a6dbed
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/xpath commit e0575333e6f08ef02fc66c2764b43ebd15c6b04b
iuc
parents:
diff
changeset
|
23 } |
7e01c6a6dbed
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/xpath commit e0575333e6f08ef02fc66c2764b43ebd15c6b04b
iuc
parents:
diff
changeset
|
24 if ($ARGV[0] eq "-p") { |
7e01c6a6dbed
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/xpath commit e0575333e6f08ef02fc66c2764b43ebd15c6b04b
iuc
parents:
diff
changeset
|
25 shift; |
7e01c6a6dbed
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/xpath commit e0575333e6f08ef02fc66c2764b43ebd15c6b04b
iuc
parents:
diff
changeset
|
26 $PREFIX = shift; |
7e01c6a6dbed
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/xpath commit e0575333e6f08ef02fc66c2764b43ebd15c6b04b
iuc
parents:
diff
changeset
|
27 last OPTIONS; |
7e01c6a6dbed
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/xpath commit e0575333e6f08ef02fc66c2764b43ebd15c6b04b
iuc
parents:
diff
changeset
|
28 } |
7e01c6a6dbed
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/xpath commit e0575333e6f08ef02fc66c2764b43ebd15c6b04b
iuc
parents:
diff
changeset
|
29 if ($ARGV[0] eq "-s") { |
7e01c6a6dbed
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/xpath commit e0575333e6f08ef02fc66c2764b43ebd15c6b04b
iuc
parents:
diff
changeset
|
30 shift; |
7e01c6a6dbed
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/xpath commit e0575333e6f08ef02fc66c2764b43ebd15c6b04b
iuc
parents:
diff
changeset
|
31 $SUFFIX = shift; |
7e01c6a6dbed
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/xpath commit e0575333e6f08ef02fc66c2764b43ebd15c6b04b
iuc
parents:
diff
changeset
|
32 last OPTIONS; |
7e01c6a6dbed
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/xpath commit e0575333e6f08ef02fc66c2764b43ebd15c6b04b
iuc
parents:
diff
changeset
|
33 } |
7e01c6a6dbed
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/xpath commit e0575333e6f08ef02fc66c2764b43ebd15c6b04b
iuc
parents:
diff
changeset
|
34 if ($ARGV[0] eq "-q") { |
7e01c6a6dbed
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/xpath commit e0575333e6f08ef02fc66c2764b43ebd15c6b04b
iuc
parents:
diff
changeset
|
35 $quiet = 1; |
7e01c6a6dbed
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/xpath commit e0575333e6f08ef02fc66c2764b43ebd15c6b04b
iuc
parents:
diff
changeset
|
36 shift; |
7e01c6a6dbed
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/xpath commit e0575333e6f08ef02fc66c2764b43ebd15c6b04b
iuc
parents:
diff
changeset
|
37 last OPTIONS; |
7e01c6a6dbed
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/xpath commit e0575333e6f08ef02fc66c2764b43ebd15c6b04b
iuc
parents:
diff
changeset
|
38 } |
7e01c6a6dbed
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/xpath commit e0575333e6f08ef02fc66c2764b43ebd15c6b04b
iuc
parents:
diff
changeset
|
39 print STDERR "Unknown option ignore: ", shift; |
7e01c6a6dbed
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/xpath commit e0575333e6f08ef02fc66c2764b43ebd15c6b04b
iuc
parents:
diff
changeset
|
40 } |
7e01c6a6dbed
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/xpath commit e0575333e6f08ef02fc66c2764b43ebd15c6b04b
iuc
parents:
diff
changeset
|
41 } |
7e01c6a6dbed
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/xpath commit e0575333e6f08ef02fc66c2764b43ebd15c6b04b
iuc
parents:
diff
changeset
|
42 |
7e01c6a6dbed
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/xpath commit e0575333e6f08ef02fc66c2764b43ebd15c6b04b
iuc
parents:
diff
changeset
|
43 unless (@paths >= 1) { |
7e01c6a6dbed
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/xpath commit e0575333e6f08ef02fc66c2764b43ebd15c6b04b
iuc
parents:
diff
changeset
|
44 print STDERR qq(Usage: |
7e01c6a6dbed
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/xpath commit e0575333e6f08ef02fc66c2764b43ebd15c6b04b
iuc
parents:
diff
changeset
|
45 $0 [options] -e query [-e query...] [filename...] |
7e01c6a6dbed
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/xpath commit e0575333e6f08ef02fc66c2764b43ebd15c6b04b
iuc
parents:
diff
changeset
|
46 |
7e01c6a6dbed
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/xpath commit e0575333e6f08ef02fc66c2764b43ebd15c6b04b
iuc
parents:
diff
changeset
|
47 If no filenams are given, supply XML on STDIN. |
7e01c6a6dbed
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/xpath commit e0575333e6f08ef02fc66c2764b43ebd15c6b04b
iuc
parents:
diff
changeset
|
48 You must provide at least one query. Each supplementary |
7e01c6a6dbed
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/xpath commit e0575333e6f08ef02fc66c2764b43ebd15c6b04b
iuc
parents:
diff
changeset
|
49 query is done in order, the previous query giving the |
7e01c6a6dbed
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/xpath commit e0575333e6f08ef02fc66c2764b43ebd15c6b04b
iuc
parents:
diff
changeset
|
50 context of the next one. |
7e01c6a6dbed
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/xpath commit e0575333e6f08ef02fc66c2764b43ebd15c6b04b
iuc
parents:
diff
changeset
|
51 |
7e01c6a6dbed
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/xpath commit e0575333e6f08ef02fc66c2764b43ebd15c6b04b
iuc
parents:
diff
changeset
|
52 Options: |
7e01c6a6dbed
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/xpath commit e0575333e6f08ef02fc66c2764b43ebd15c6b04b
iuc
parents:
diff
changeset
|
53 |
7e01c6a6dbed
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/xpath commit e0575333e6f08ef02fc66c2764b43ebd15c6b04b
iuc
parents:
diff
changeset
|
54 -q quiet. Only output the resulting PATH |
7e01c6a6dbed
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/xpath commit e0575333e6f08ef02fc66c2764b43ebd15c6b04b
iuc
parents:
diff
changeset
|
55 -s suffix use suffix instead of linefeed. |
7e01c6a6dbed
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/xpath commit e0575333e6f08ef02fc66c2764b43ebd15c6b04b
iuc
parents:
diff
changeset
|
56 -p postfix use prefix instead of nothing. |
7e01c6a6dbed
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/xpath commit e0575333e6f08ef02fc66c2764b43ebd15c6b04b
iuc
parents:
diff
changeset
|
57 ); |
7e01c6a6dbed
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/xpath commit e0575333e6f08ef02fc66c2764b43ebd15c6b04b
iuc
parents:
diff
changeset
|
58 exit; |
7e01c6a6dbed
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/xpath commit e0575333e6f08ef02fc66c2764b43ebd15c6b04b
iuc
parents:
diff
changeset
|
59 } |
7e01c6a6dbed
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/xpath commit e0575333e6f08ef02fc66c2764b43ebd15c6b04b
iuc
parents:
diff
changeset
|
60 |
7e01c6a6dbed
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/xpath commit e0575333e6f08ef02fc66c2764b43ebd15c6b04b
iuc
parents:
diff
changeset
|
61 do |
7e01c6a6dbed
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/xpath commit e0575333e6f08ef02fc66c2764b43ebd15c6b04b
iuc
parents:
diff
changeset
|
62 { |
7e01c6a6dbed
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/xpath commit e0575333e6f08ef02fc66c2764b43ebd15c6b04b
iuc
parents:
diff
changeset
|
63 my $xpath; |
7e01c6a6dbed
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/xpath commit e0575333e6f08ef02fc66c2764b43ebd15c6b04b
iuc
parents:
diff
changeset
|
64 my @curpaths = @paths; |
7e01c6a6dbed
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/xpath commit e0575333e6f08ef02fc66c2764b43ebd15c6b04b
iuc
parents:
diff
changeset
|
65 my $filename; |
7e01c6a6dbed
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/xpath commit e0575333e6f08ef02fc66c2764b43ebd15c6b04b
iuc
parents:
diff
changeset
|
66 if (@ARGV >= 1) { |
7e01c6a6dbed
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/xpath commit e0575333e6f08ef02fc66c2764b43ebd15c6b04b
iuc
parents:
diff
changeset
|
67 $filename = shift @ARGV; |
7e01c6a6dbed
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/xpath commit e0575333e6f08ef02fc66c2764b43ebd15c6b04b
iuc
parents:
diff
changeset
|
68 $xpath = XML::XPath->new(filename => $filename); |
7e01c6a6dbed
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/xpath commit e0575333e6f08ef02fc66c2764b43ebd15c6b04b
iuc
parents:
diff
changeset
|
69 } |
7e01c6a6dbed
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/xpath commit e0575333e6f08ef02fc66c2764b43ebd15c6b04b
iuc
parents:
diff
changeset
|
70 else { |
7e01c6a6dbed
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/xpath commit e0575333e6f08ef02fc66c2764b43ebd15c6b04b
iuc
parents:
diff
changeset
|
71 $filename = 'stdin'; |
7e01c6a6dbed
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/xpath commit e0575333e6f08ef02fc66c2764b43ebd15c6b04b
iuc
parents:
diff
changeset
|
72 $xpath = XML::XPath->new(ioref => \*STDIN); |
7e01c6a6dbed
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/xpath commit e0575333e6f08ef02fc66c2764b43ebd15c6b04b
iuc
parents:
diff
changeset
|
73 } |
7e01c6a6dbed
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/xpath commit e0575333e6f08ef02fc66c2764b43ebd15c6b04b
iuc
parents:
diff
changeset
|
74 |
7e01c6a6dbed
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/xpath commit e0575333e6f08ef02fc66c2764b43ebd15c6b04b
iuc
parents:
diff
changeset
|
75 my $nodes = $xpath->find(shift @curpaths); |
7e01c6a6dbed
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/xpath commit e0575333e6f08ef02fc66c2764b43ebd15c6b04b
iuc
parents:
diff
changeset
|
76 |
7e01c6a6dbed
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/xpath commit e0575333e6f08ef02fc66c2764b43ebd15c6b04b
iuc
parents:
diff
changeset
|
77 if ($nodes->isa('XML::XPath::NodeSet')) { |
7e01c6a6dbed
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/xpath commit e0575333e6f08ef02fc66c2764b43ebd15c6b04b
iuc
parents:
diff
changeset
|
78 while (@curpaths >= 1) { |
7e01c6a6dbed
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/xpath commit e0575333e6f08ef02fc66c2764b43ebd15c6b04b
iuc
parents:
diff
changeset
|
79 $nodes = find_more($xpath, shift @curpaths, $nodes); |
7e01c6a6dbed
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/xpath commit e0575333e6f08ef02fc66c2764b43ebd15c6b04b
iuc
parents:
diff
changeset
|
80 last unless $nodes->isa('XML::XPath::NodeSet'); |
7e01c6a6dbed
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/xpath commit e0575333e6f08ef02fc66c2764b43ebd15c6b04b
iuc
parents:
diff
changeset
|
81 } |
7e01c6a6dbed
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/xpath commit e0575333e6f08ef02fc66c2764b43ebd15c6b04b
iuc
parents:
diff
changeset
|
82 } |
7e01c6a6dbed
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/xpath commit e0575333e6f08ef02fc66c2764b43ebd15c6b04b
iuc
parents:
diff
changeset
|
83 |
7e01c6a6dbed
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/xpath commit e0575333e6f08ef02fc66c2764b43ebd15c6b04b
iuc
parents:
diff
changeset
|
84 if ($nodes->isa('XML::XPath::NodeSet')) { |
7e01c6a6dbed
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/xpath commit e0575333e6f08ef02fc66c2764b43ebd15c6b04b
iuc
parents:
diff
changeset
|
85 if ($nodes->size) { |
7e01c6a6dbed
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/xpath commit e0575333e6f08ef02fc66c2764b43ebd15c6b04b
iuc
parents:
diff
changeset
|
86 print STDERR "Found ", $nodes->size, " nodes in $filename:\n" unless $quiet; |
7e01c6a6dbed
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/xpath commit e0575333e6f08ef02fc66c2764b43ebd15c6b04b
iuc
parents:
diff
changeset
|
87 foreach my $node ($nodes->get_nodelist) { |
7e01c6a6dbed
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/xpath commit e0575333e6f08ef02fc66c2764b43ebd15c6b04b
iuc
parents:
diff
changeset
|
88 print STDERR "-- NODE --\n" unless $quiet; |
7e01c6a6dbed
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/xpath commit e0575333e6f08ef02fc66c2764b43ebd15c6b04b
iuc
parents:
diff
changeset
|
89 print $PREFIX, $node->toString, $SUFFIX; |
7e01c6a6dbed
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/xpath commit e0575333e6f08ef02fc66c2764b43ebd15c6b04b
iuc
parents:
diff
changeset
|
90 } |
7e01c6a6dbed
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/xpath commit e0575333e6f08ef02fc66c2764b43ebd15c6b04b
iuc
parents:
diff
changeset
|
91 } |
7e01c6a6dbed
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/xpath commit e0575333e6f08ef02fc66c2764b43ebd15c6b04b
iuc
parents:
diff
changeset
|
92 else { |
7e01c6a6dbed
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/xpath commit e0575333e6f08ef02fc66c2764b43ebd15c6b04b
iuc
parents:
diff
changeset
|
93 print STDERR "No nodes found in $filename\n" unless $quiet; |
7e01c6a6dbed
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/xpath commit e0575333e6f08ef02fc66c2764b43ebd15c6b04b
iuc
parents:
diff
changeset
|
94 } |
7e01c6a6dbed
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/xpath commit e0575333e6f08ef02fc66c2764b43ebd15c6b04b
iuc
parents:
diff
changeset
|
95 } |
7e01c6a6dbed
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/xpath commit e0575333e6f08ef02fc66c2764b43ebd15c6b04b
iuc
parents:
diff
changeset
|
96 else { |
7e01c6a6dbed
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/xpath commit e0575333e6f08ef02fc66c2764b43ebd15c6b04b
iuc
parents:
diff
changeset
|
97 print STDERR "Query didn't return a nodeset. Value: "; |
7e01c6a6dbed
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/xpath commit e0575333e6f08ef02fc66c2764b43ebd15c6b04b
iuc
parents:
diff
changeset
|
98 print $nodes->value, "\n"; |
7e01c6a6dbed
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/xpath commit e0575333e6f08ef02fc66c2764b43ebd15c6b04b
iuc
parents:
diff
changeset
|
99 } |
7e01c6a6dbed
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/xpath commit e0575333e6f08ef02fc66c2764b43ebd15c6b04b
iuc
parents:
diff
changeset
|
100 |
7e01c6a6dbed
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/xpath commit e0575333e6f08ef02fc66c2764b43ebd15c6b04b
iuc
parents:
diff
changeset
|
101 } until (@ARGV < 1); |
7e01c6a6dbed
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/xpath commit e0575333e6f08ef02fc66c2764b43ebd15c6b04b
iuc
parents:
diff
changeset
|
102 |
7e01c6a6dbed
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/xpath commit e0575333e6f08ef02fc66c2764b43ebd15c6b04b
iuc
parents:
diff
changeset
|
103 exit; |
7e01c6a6dbed
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/xpath commit e0575333e6f08ef02fc66c2764b43ebd15c6b04b
iuc
parents:
diff
changeset
|
104 |
7e01c6a6dbed
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/xpath commit e0575333e6f08ef02fc66c2764b43ebd15c6b04b
iuc
parents:
diff
changeset
|
105 sub find_more { |
7e01c6a6dbed
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/xpath commit e0575333e6f08ef02fc66c2764b43ebd15c6b04b
iuc
parents:
diff
changeset
|
106 my $xpath = shift; |
7e01c6a6dbed
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/xpath commit e0575333e6f08ef02fc66c2764b43ebd15c6b04b
iuc
parents:
diff
changeset
|
107 my $find = shift; |
7e01c6a6dbed
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/xpath commit e0575333e6f08ef02fc66c2764b43ebd15c6b04b
iuc
parents:
diff
changeset
|
108 my ($nodes) = @_; |
7e01c6a6dbed
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/xpath commit e0575333e6f08ef02fc66c2764b43ebd15c6b04b
iuc
parents:
diff
changeset
|
109 |
7e01c6a6dbed
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/xpath commit e0575333e6f08ef02fc66c2764b43ebd15c6b04b
iuc
parents:
diff
changeset
|
110 my $newnodes = XML::XPath::NodeSet->new; |
7e01c6a6dbed
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/xpath commit e0575333e6f08ef02fc66c2764b43ebd15c6b04b
iuc
parents:
diff
changeset
|
111 |
7e01c6a6dbed
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/xpath commit e0575333e6f08ef02fc66c2764b43ebd15c6b04b
iuc
parents:
diff
changeset
|
112 foreach my $node ($nodes->get_nodelist) { |
7e01c6a6dbed
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/xpath commit e0575333e6f08ef02fc66c2764b43ebd15c6b04b
iuc
parents:
diff
changeset
|
113 my $new = $xpath->find($find, $node); |
7e01c6a6dbed
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/xpath commit e0575333e6f08ef02fc66c2764b43ebd15c6b04b
iuc
parents:
diff
changeset
|
114 if ($new->isa('XML::XPath::NodeSet')) { |
7e01c6a6dbed
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/xpath commit e0575333e6f08ef02fc66c2764b43ebd15c6b04b
iuc
parents:
diff
changeset
|
115 $newnodes->append($new); |
7e01c6a6dbed
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/xpath commit e0575333e6f08ef02fc66c2764b43ebd15c6b04b
iuc
parents:
diff
changeset
|
116 } |
7e01c6a6dbed
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/xpath commit e0575333e6f08ef02fc66c2764b43ebd15c6b04b
iuc
parents:
diff
changeset
|
117 else { |
7e01c6a6dbed
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/xpath commit e0575333e6f08ef02fc66c2764b43ebd15c6b04b
iuc
parents:
diff
changeset
|
118 warn "Not a nodeset: ", $new->value, "\n"; |
7e01c6a6dbed
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/xpath commit e0575333e6f08ef02fc66c2764b43ebd15c6b04b
iuc
parents:
diff
changeset
|
119 } |
7e01c6a6dbed
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/xpath commit e0575333e6f08ef02fc66c2764b43ebd15c6b04b
iuc
parents:
diff
changeset
|
120 } |
7e01c6a6dbed
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/xpath commit e0575333e6f08ef02fc66c2764b43ebd15c6b04b
iuc
parents:
diff
changeset
|
121 |
7e01c6a6dbed
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/xpath commit e0575333e6f08ef02fc66c2764b43ebd15c6b04b
iuc
parents:
diff
changeset
|
122 return $newnodes; |
7e01c6a6dbed
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/xpath commit e0575333e6f08ef02fc66c2764b43ebd15c6b04b
iuc
parents:
diff
changeset
|
123 } |
7e01c6a6dbed
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/xpath commit e0575333e6f08ef02fc66c2764b43ebd15c6b04b
iuc
parents:
diff
changeset
|
124 |
7e01c6a6dbed
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/xpath commit e0575333e6f08ef02fc66c2764b43ebd15c6b04b
iuc
parents:
diff
changeset
|
125 __END__ |
7e01c6a6dbed
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/xpath commit e0575333e6f08ef02fc66c2764b43ebd15c6b04b
iuc
parents:
diff
changeset
|
126 |
7e01c6a6dbed
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/xpath commit e0575333e6f08ef02fc66c2764b43ebd15c6b04b
iuc
parents:
diff
changeset
|
127 =head1 NAME |
7e01c6a6dbed
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/xpath commit e0575333e6f08ef02fc66c2764b43ebd15c6b04b
iuc
parents:
diff
changeset
|
128 |
7e01c6a6dbed
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/xpath commit e0575333e6f08ef02fc66c2764b43ebd15c6b04b
iuc
parents:
diff
changeset
|
129 xpath - a script to query XPath statements in XML documents. |
7e01c6a6dbed
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/xpath commit e0575333e6f08ef02fc66c2764b43ebd15c6b04b
iuc
parents:
diff
changeset
|
130 |
7e01c6a6dbed
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/xpath commit e0575333e6f08ef02fc66c2764b43ebd15c6b04b
iuc
parents:
diff
changeset
|
131 =head1 SYNOPSIS |
7e01c6a6dbed
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/xpath commit e0575333e6f08ef02fc66c2764b43ebd15c6b04b
iuc
parents:
diff
changeset
|
132 |
7e01c6a6dbed
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/xpath commit e0575333e6f08ef02fc66c2764b43ebd15c6b04b
iuc
parents:
diff
changeset
|
133 B<xpath [-s suffix] [-p prefix] [-q] -e query [-e query] ... [file] ...> |
7e01c6a6dbed
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/xpath commit e0575333e6f08ef02fc66c2764b43ebd15c6b04b
iuc
parents:
diff
changeset
|
134 |
7e01c6a6dbed
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/xpath commit e0575333e6f08ef02fc66c2764b43ebd15c6b04b
iuc
parents:
diff
changeset
|
135 =head1 DESCRIPTION |
7e01c6a6dbed
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/xpath commit e0575333e6f08ef02fc66c2764b43ebd15c6b04b
iuc
parents:
diff
changeset
|
136 |
7e01c6a6dbed
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/xpath commit e0575333e6f08ef02fc66c2764b43ebd15c6b04b
iuc
parents:
diff
changeset
|
137 B<xpath> uses the L<XML::XPath|XML::XPath> perl module to make XPath queries |
7e01c6a6dbed
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/xpath commit e0575333e6f08ef02fc66c2764b43ebd15c6b04b
iuc
parents:
diff
changeset
|
138 to any XML document. The L<XML::XPath|XML::XPath> module aims to comply exactly |
7e01c6a6dbed
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/xpath commit e0575333e6f08ef02fc66c2764b43ebd15c6b04b
iuc
parents:
diff
changeset
|
139 to the XPath specification at C<http://www.w3.org/TR/xpath> and yet |
7e01c6a6dbed
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/xpath commit e0575333e6f08ef02fc66c2764b43ebd15c6b04b
iuc
parents:
diff
changeset
|
140 allows extensions to be added in the form of functions. |
7e01c6a6dbed
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/xpath commit e0575333e6f08ef02fc66c2764b43ebd15c6b04b
iuc
parents:
diff
changeset
|
141 |
7e01c6a6dbed
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/xpath commit e0575333e6f08ef02fc66c2764b43ebd15c6b04b
iuc
parents:
diff
changeset
|
142 The script takes any number of XPath pointers and tries to apply them |
7e01c6a6dbed
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/xpath commit e0575333e6f08ef02fc66c2764b43ebd15c6b04b
iuc
parents:
diff
changeset
|
143 to each XML document given on the command line. If no file arguments |
7e01c6a6dbed
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/xpath commit e0575333e6f08ef02fc66c2764b43ebd15c6b04b
iuc
parents:
diff
changeset
|
144 are given, the query is done using C<STDIN> as an XML document. |
7e01c6a6dbed
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/xpath commit e0575333e6f08ef02fc66c2764b43ebd15c6b04b
iuc
parents:
diff
changeset
|
145 |
7e01c6a6dbed
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/xpath commit e0575333e6f08ef02fc66c2764b43ebd15c6b04b
iuc
parents:
diff
changeset
|
146 When multiple queries exist, the result of the last query is used as |
7e01c6a6dbed
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/xpath commit e0575333e6f08ef02fc66c2764b43ebd15c6b04b
iuc
parents:
diff
changeset
|
147 context for the next query and only the result of the last one is output. |
7e01c6a6dbed
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/xpath commit e0575333e6f08ef02fc66c2764b43ebd15c6b04b
iuc
parents:
diff
changeset
|
148 The context of the first query is always the root of the current document. |
7e01c6a6dbed
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/xpath commit e0575333e6f08ef02fc66c2764b43ebd15c6b04b
iuc
parents:
diff
changeset
|
149 |
7e01c6a6dbed
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/xpath commit e0575333e6f08ef02fc66c2764b43ebd15c6b04b
iuc
parents:
diff
changeset
|
150 =head1 OPTIONS |
7e01c6a6dbed
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/xpath commit e0575333e6f08ef02fc66c2764b43ebd15c6b04b
iuc
parents:
diff
changeset
|
151 |
7e01c6a6dbed
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/xpath commit e0575333e6f08ef02fc66c2764b43ebd15c6b04b
iuc
parents:
diff
changeset
|
152 =head2 B<-q> |
7e01c6a6dbed
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/xpath commit e0575333e6f08ef02fc66c2764b43ebd15c6b04b
iuc
parents:
diff
changeset
|
153 |
7e01c6a6dbed
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/xpath commit e0575333e6f08ef02fc66c2764b43ebd15c6b04b
iuc
parents:
diff
changeset
|
154 Be quiet. Output only errors (and no separator) on stderr. |
7e01c6a6dbed
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/xpath commit e0575333e6f08ef02fc66c2764b43ebd15c6b04b
iuc
parents:
diff
changeset
|
155 |
7e01c6a6dbed
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/xpath commit e0575333e6f08ef02fc66c2764b43ebd15c6b04b
iuc
parents:
diff
changeset
|
156 =head2 B<-s suffix> |
7e01c6a6dbed
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/xpath commit e0575333e6f08ef02fc66c2764b43ebd15c6b04b
iuc
parents:
diff
changeset
|
157 |
7e01c6a6dbed
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/xpath commit e0575333e6f08ef02fc66c2764b43ebd15c6b04b
iuc
parents:
diff
changeset
|
158 Place C<suffix> at the end of each entry. Default is a linefeed. |
7e01c6a6dbed
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/xpath commit e0575333e6f08ef02fc66c2764b43ebd15c6b04b
iuc
parents:
diff
changeset
|
159 |
7e01c6a6dbed
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/xpath commit e0575333e6f08ef02fc66c2764b43ebd15c6b04b
iuc
parents:
diff
changeset
|
160 =head2 B<-p prefix> |
7e01c6a6dbed
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/xpath commit e0575333e6f08ef02fc66c2764b43ebd15c6b04b
iuc
parents:
diff
changeset
|
161 |
7e01c6a6dbed
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/xpath commit e0575333e6f08ef02fc66c2764b43ebd15c6b04b
iuc
parents:
diff
changeset
|
162 Place C<prefix> preceding each entry. Default is nothing. |
7e01c6a6dbed
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/xpath commit e0575333e6f08ef02fc66c2764b43ebd15c6b04b
iuc
parents:
diff
changeset
|
163 |
7e01c6a6dbed
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/xpath commit e0575333e6f08ef02fc66c2764b43ebd15c6b04b
iuc
parents:
diff
changeset
|
164 =head1 BUGS |
7e01c6a6dbed
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/xpath commit e0575333e6f08ef02fc66c2764b43ebd15c6b04b
iuc
parents:
diff
changeset
|
165 |
7e01c6a6dbed
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/xpath commit e0575333e6f08ef02fc66c2764b43ebd15c6b04b
iuc
parents:
diff
changeset
|
166 The author of this man page is not very fluant in english. Please, |
7e01c6a6dbed
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/xpath commit e0575333e6f08ef02fc66c2764b43ebd15c6b04b
iuc
parents:
diff
changeset
|
167 send him (L<fabien@tzone.org>) any corrections concerning this text. |
7e01c6a6dbed
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/xpath commit e0575333e6f08ef02fc66c2764b43ebd15c6b04b
iuc
parents:
diff
changeset
|
168 |
7e01c6a6dbed
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/xpath commit e0575333e6f08ef02fc66c2764b43ebd15c6b04b
iuc
parents:
diff
changeset
|
169 See also L<XML::XPath(3pm)>. |
7e01c6a6dbed
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/xpath commit e0575333e6f08ef02fc66c2764b43ebd15c6b04b
iuc
parents:
diff
changeset
|
170 |
7e01c6a6dbed
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/xpath commit e0575333e6f08ef02fc66c2764b43ebd15c6b04b
iuc
parents:
diff
changeset
|
171 =head1 SEE ALSO |
7e01c6a6dbed
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/xpath commit e0575333e6f08ef02fc66c2764b43ebd15c6b04b
iuc
parents:
diff
changeset
|
172 |
7e01c6a6dbed
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/xpath commit e0575333e6f08ef02fc66c2764b43ebd15c6b04b
iuc
parents:
diff
changeset
|
173 L<XML::XPath(3pm)>. |
7e01c6a6dbed
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/xpath commit e0575333e6f08ef02fc66c2764b43ebd15c6b04b
iuc
parents:
diff
changeset
|
174 |
7e01c6a6dbed
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/xpath commit e0575333e6f08ef02fc66c2764b43ebd15c6b04b
iuc
parents:
diff
changeset
|
175 =head1 HISTORY |
7e01c6a6dbed
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/xpath commit e0575333e6f08ef02fc66c2764b43ebd15c6b04b
iuc
parents:
diff
changeset
|
176 |
7e01c6a6dbed
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/xpath commit e0575333e6f08ef02fc66c2764b43ebd15c6b04b
iuc
parents:
diff
changeset
|
177 This module is copyright 2000 Fastnet Software Ltd. This is free |
7e01c6a6dbed
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/xpath commit e0575333e6f08ef02fc66c2764b43ebd15c6b04b
iuc
parents:
diff
changeset
|
178 software, and as such comes with NO WARRANTY. No dates are used in this |
7e01c6a6dbed
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/xpath commit e0575333e6f08ef02fc66c2764b43ebd15c6b04b
iuc
parents:
diff
changeset
|
179 module. You may distribute this module under the terms of either the |
7e01c6a6dbed
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/xpath commit e0575333e6f08ef02fc66c2764b43ebd15c6b04b
iuc
parents:
diff
changeset
|
180 Gnu GPL, or under specific licencing from Fastnet Software Ltd. |
7e01c6a6dbed
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/xpath commit e0575333e6f08ef02fc66c2764b43ebd15c6b04b
iuc
parents:
diff
changeset
|
181 Special free licencing consideration will be given to similarly free |
7e01c6a6dbed
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/xpath commit e0575333e6f08ef02fc66c2764b43ebd15c6b04b
iuc
parents:
diff
changeset
|
182 software. Please don't flame me for this licence - I've put a lot of |
7e01c6a6dbed
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/xpath commit e0575333e6f08ef02fc66c2764b43ebd15c6b04b
iuc
parents:
diff
changeset
|
183 hours into this code, and if someone uses my software in their product |
7e01c6a6dbed
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/xpath commit e0575333e6f08ef02fc66c2764b43ebd15c6b04b
iuc
parents:
diff
changeset
|
184 I expect them to have the courtesy to contact me first. |
7e01c6a6dbed
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/xpath commit e0575333e6f08ef02fc66c2764b43ebd15c6b04b
iuc
parents:
diff
changeset
|
185 |
7e01c6a6dbed
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/xpath commit e0575333e6f08ef02fc66c2764b43ebd15c6b04b
iuc
parents:
diff
changeset
|
186 Full support for this module is available from Fastnet Software Ltd on |
7e01c6a6dbed
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/xpath commit e0575333e6f08ef02fc66c2764b43ebd15c6b04b
iuc
parents:
diff
changeset
|
187 a pay per incident basis. Alternatively subscribe to the Perl-XML |
7e01c6a6dbed
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/xpath commit e0575333e6f08ef02fc66c2764b43ebd15c6b04b
iuc
parents:
diff
changeset
|
188 mailing list by mailing lyris@activestate.com with the text: |
7e01c6a6dbed
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/xpath commit e0575333e6f08ef02fc66c2764b43ebd15c6b04b
iuc
parents:
diff
changeset
|
189 |
7e01c6a6dbed
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/xpath commit e0575333e6f08ef02fc66c2764b43ebd15c6b04b
iuc
parents:
diff
changeset
|
190 SUBSCRIBE Perl-XML |
7e01c6a6dbed
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/xpath commit e0575333e6f08ef02fc66c2764b43ebd15c6b04b
iuc
parents:
diff
changeset
|
191 |
7e01c6a6dbed
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/xpath commit e0575333e6f08ef02fc66c2764b43ebd15c6b04b
iuc
parents:
diff
changeset
|
192 in the body of the message. There are lots of friendly people on the |
7e01c6a6dbed
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/xpath commit e0575333e6f08ef02fc66c2764b43ebd15c6b04b
iuc
parents:
diff
changeset
|
193 list, including myself, and we'll be glad to get you started. |
7e01c6a6dbed
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/xpath commit e0575333e6f08ef02fc66c2764b43ebd15c6b04b
iuc
parents:
diff
changeset
|
194 |
7e01c6a6dbed
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/xpath commit e0575333e6f08ef02fc66c2764b43ebd15c6b04b
iuc
parents:
diff
changeset
|
195 Matt Sergeant, matt@sergeant.org |
7e01c6a6dbed
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/xpath commit e0575333e6f08ef02fc66c2764b43ebd15c6b04b
iuc
parents:
diff
changeset
|
196 |
7e01c6a6dbed
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/xpath commit e0575333e6f08ef02fc66c2764b43ebd15c6b04b
iuc
parents:
diff
changeset
|
197 This man page was added as well as some serious modifications to the script |
7e01c6a6dbed
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/xpath commit e0575333e6f08ef02fc66c2764b43ebd15c6b04b
iuc
parents:
diff
changeset
|
198 by Fabien Ninoles <fabien@debian.org> for the Debian Project. |
7e01c6a6dbed
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/xpath commit e0575333e6f08ef02fc66c2764b43ebd15c6b04b
iuc
parents:
diff
changeset
|
199 |
7e01c6a6dbed
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/xpath commit e0575333e6f08ef02fc66c2764b43ebd15c6b04b
iuc
parents:
diff
changeset
|
200 =cut |
7e01c6a6dbed
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/xpath commit e0575333e6f08ef02fc66c2764b43ebd15c6b04b
iuc
parents:
diff
changeset
|
201 |