/dports/textproc/p5-XML-XPathEngine/XML-XPathEngine-0.14/t/ |
H A D | 01_basic.t | 25 my $kid_nodes= $xp->findvalue( '/root/kid0', $tree); 29 is( $xp->findvalue( '//*[@att2="vv"]', $tree), 'gvkid1gvkid2gvkid3gvkid4gvkid5', 37 is( $xp->findvalue( '//kid1[@att1=~/v[345]/]', $tree), 'vkid3vkid5', "match on attributes"); 49 is( $xp->findvalue( 'count(//kid1)', $tree), '3', 'count( //gkid1)'); 50 is( $xp->findvalue( 'count(//gkid2)', $tree), '5', 'count( //gkid2)'); 59 is( $xp->findvalue( 'count(//gkid2[@att2="vx" or @att3])', $tree), 5, 'count with or'); 62 is( $xp->findvalue( '(.//*)[2]/@id', $tree), 'i3', '(descendant::*)[2]'); 67 is( $xp->findvalue( 'id("i2")/@att1', $tree), 'v1', 'id()'); 69 is( $xp->findvalue( 'id("i3")//*[1]/@att2', $tree), 'vv', 'id descendants attribute'); 76 is( $xp->findvalue( '2', $tree), 2, 'findvalues on a litteral'); [all …]
|
/dports/www/p5-Net-Amazon-AWIS/Net-Amazon-AWIS-0.36/lib/Net/Amazon/ |
H A D | AWIS.pm | 43 my $title = $xpc->findvalue( ".//Title", $node ); 44 my $path = $xpc->findvalue( ".//AbsolutePath", $node ); 64 adult_content => $xpc->findvalue(".//Content") eq 'yes', 72 rank => $xpc->findvalue(".//Alexa/TrafficData/Rank"), 93 my $url = $xpc->findvalue( ".//Url", $node ); 192 rank => $xpc->findvalue(".//Rank", $node), 194 $xpc->findvalue(".//PageViews/PerMillion", $node), 196 $xpc->findvalue(".//PageViews/PerUser", $node), 198 $xpc->findvalue(".//Reach/PerMillion", $node), 241 die $xpc->findvalue("//ErrorCode") . ": " [all …]
|
/dports/net/p5-Net-Amazon-S3/Net-Amazon-S3-0.99/lib/Net/Amazon/S3/Operation/Objects/List/ |
H A D | Response.pm | 46 bucket => scalar $xpc->findvalue ("/s3:ListBucketResult/s3:Name"), 47 prefix => scalar $xpc->findvalue ("/s3:ListBucketResult/s3:Prefix"), 48 marker => scalar $xpc->findvalue ("/s3:ListBucketResult/s3:Marker"), 50 max_keys => scalar $xpc->findvalue ("/s3:ListBucketResult/s3:MaxKeys"), 58 key => scalar $xpc->findvalue ("./s3:Key", $content), 59 last_modified => scalar $xpc->findvalue ("./s3:LastModified", $content), 60 etag => scalar $xpc->findvalue ("./s3:ETag", $content), 64 id => $xpc->findvalue ("./s3:Owner/s3:ID", $content), 65 displayname => $xpc->findvalue ("./s3:Owner/s3:DisplayName", $content), 72 $data->{delimiter} = $xpc->findvalue ('.', $delimiter); [all …]
|
/dports/textproc/p5-XML-DOM-XPath/XML-DOM-XPath-0.14/t/ |
H A D | test_bugs.t | 49 my $prices= $doc->findvalue('/d/e[f<2]/@id'); 63 $prices= $doc->findvalue('/d/e[f<2.5]/@id'); 65 is( $doc->findvalue('/d/e[@nb>=2]/@id'), 'e2e3e4e5e6', "using number comparison on attributes"); 72 ->findvalue('//@*'); 78 is( $doc->findvalue( '//comment()'), 'c1c2', '//comment()'); 82 my $pis= $doc->findvalue( '//processing-instruction()'); 107 is( $xp->findvalue( 'count( //component)'), 3, 'count on its own'); 108 is( 2 * $xp->findvalue( 'count( //component)'), 6, '2 * count'); 109 is( $xp->findvalue( 'count( //component)') * 2, 6, 'count * 2'); 113 my $id = $component->findvalue ('@id'); [all …]
|
H A D | xmlxpath_24namespaces.t | 12 my $node= $t->findvalue( '//attr:node/@attr:findme'); 28 $node= $t->findvalue( '//*[@attr:findme]'); 31 ok( $t->findvalue('//attr:node/@attr:findme'), 'someval'); 33 ok( $t->findvalue( '//toto'), 'tata'); 34 ok( $t->findvalue( '//toto/@att'), 'tutu'); 50 ok( $t->findvalue('//attr:node/@attr:findme'), 'someval'); 52 ok( $t->findvalue( '//toto'), 'tata'); 53 ok( $t->findvalue( '//toto/@att'), 'tutu');
|
/dports/www/p5-WebService-Technorati/WebService-Technorati-0.04/lib/WebService/Technorati/ |
H A D | Blog.pm | 298 url => $node->findvalue('url')->string_value(), 299 name => $node->findvalue('name')->string_value(), 300 rssurl => $node->findvalue('rssurl')->string_value(), 301 atomurl => $node->findvalue('atomurl')->string_value(), 302 inboundblogs => $node->findvalue('inboundblogs')->string_value(), 303 inboundlinks => $node->findvalue('inboundlinks')->string_value(), 304 lastupdate => $node->findvalue('lastupdate')->string_value(), 305 lat => $node->findvalue('lat')->string_value(), 306 lon => $node->findvalue('lon')->string_value(), 307 rank => $node->findvalue('rank')->string_value()
|
H A D | SearchTerm.pm | 169 inboundblogs => $node->findvalue('inboundblogs')->string_value(), 170 query => $node->findvalue('query')->string_value(), 171 querycount => $node->findvalue('querycount')->string_value(), 172 querytime => $node->findvalue('querytime')->string_value(), 173 rankingstart => $node->findvalue('rankingstart')->string_value(),
|
H A D | Author.pm | 135 firstname => $node->findvalue('firstname')->string_value(), 136 lastname => $node->findvalue('lastname')->string_value(), 137 username => $node->findvalue('username')->string_value(), 138 thumbnailpicture => $node->findvalue('thumbnailpicture')->string_value()
|
/dports/dns/p5-Net-DNS-TestNS/Net-DNS-TestNS-1.10/ |
H A D | TestNS.pm | 109 my $ip=$server->findvalue('@ip'); 111 my $port=$server->findvalue('@port'); 133 my $delay= $qtype->findvalue('@delay'); 142 $qtype->findvalue('@rcode'); 144 $qtype->findvalue('@aa'); 146 $qtype->findvalue('@ad'); 148 $qtype->findvalue('@ra'); 188 my $rawhex=$raw[0]->findvalue("."); 195 my $rr_string=$ans->findvalue("."); 207 my $rr_string=$ans->findvalue("."); [all …]
|
/dports/www/p5-HTML-TreeBuilder-XPath/HTML-TreeBuilder-XPath-0.14/t/ |
H A D | HTML-TreeBuilder-XPath.t | 27 is( $html->findvalue( '//p[@id]/@id'), 'toto', 'attribute value'); 28 is( $html->findvalue( '//title'), 'Example', 'element text'); 29 is( $html->findvalue( '//span[1]'), 'spans', '[1]'); 31 is( $html->findvalue( '//p[@id="toto"]/text()[2]'), ', ', 'text node'); 34 is( $html->findvalue( '//*[@id="foo"]/@*'), 'myspanfoo', '2 atts on same element'); 38 is( $html->findvalue( '//b'), 'boldall', '2 texts'); 43 is( $html->findvalue( '//p[@id="toto"]/a'), 'linksmore links', '2 siblings'); 50 is( $html->findvalue( './/*[@bgcolor="0"]'),'0', 'one child has a value of "0"'); 54 is( $p->findvalue( './a'), 'linksmore links', 'query on siblings of an element'); 58 is( $html->findvalue('id("foo")'), 'spans', 'id function'); [all …]
|
/dports/print/texlive-tlmgr/texlive-20150523-extra/tlpkg/TeXLive/ |
H A D | TeXCatalogue.pm | 62 $self->{'entry'}{'id'} = $parser->findvalue('/entry/@id'); 63 $self->{'entry'}{'date'} = $parser->findvalue('/entry/@datestamp'); 64 $self->{'entry'}{'modder'} = $parser->findvalue('/entry/@modifier'); 65 $self->{'name'} = $parser->findvalue("/entry/name"); 66 $self->{'caption'} = beautify($parser->findvalue("/entry/caption")); 68 $self->{'license'} = $parser->findvalue('/entry/license/@type'); 70 $parser->findvalue('/entry/version/@number')); 71 $self->{'ctan'} = $parser->findvalue('/entry/ctan/@path'); 72 if ($parser->findvalue('/entry/texlive/@location') ne "") { 75 if ($parser->findvalue('/entry/miktex/@location') ne "") { [all …]
|
/dports/www/p5-HTML-TreeBuilder-LibXML/HTML-TreeBuilder-LibXML-0.23/t/ |
H A D | HTML-TreeBuilder-XPath.t | 30 is( $html->findvalue( '//p[@id]/@id'), 'toto', 'attribute value'); 31 is( $html->findvalue( '//title'), 'Example', 'element text'); 32 is( $html->findvalue( '//span[1]'), 'spans', '[1]'); 34 is( $html->findvalue( '//p[@id="toto"]/text()[2]'), ', ', 'text node'); 39 is( $html->findvalue( '//*[@id="foo"]/@*'), 'myspanfoo', '2 atts on same element'); 43 is( $html->findvalue( '//b'), 'boldall', '2 texts'); 44 is( $html->findvalue( '//p[@id="toto"]/a'), 'linksmore links', '2 siblings'); 51 is( $html->findvalue( './/*[@bgcolor="0"]'),'0', 'one child has a value of "0"'); 55 is( $p->findvalue( './a'), 'linksmore links', 'query on siblings of an element'); 59 is( $html->findvalue('id("foo")'), 'spans', 'id function'); [all …]
|
/dports/japanese/p5-WWW-MobileCarrierJP/WWW-MobileCarrierJP-0.65/lib/WWW/MobileCarrierJP/DoCoMo/ |
H A D | Java.pm | 19 if (my $new_profile = $tree->findvalue('//td[@rowspan]')) { 28 $data{model} = $tree->findvalue('//td[position()='.$position++.']'); 33 my $size = $tree->findvalue('//td[position()='.$position++.']'); 39 my $panel = $tree->findvalue('//td[position()='.$position++.']'); 43 my $canvas = $tree->findvalue('//td[position()='.$position++.']'); 52 my $heap_full = $tree->findvalue('//td[position()='.$position++.']'); 60 my $heap_widget = $tree->findvalue('//td[position()='.$position++.']'); 64 my $font = $tree->findvalue('//td[position()='.$position++.']');
|
/dports/textproc/p5-XML-Twig/XML-Twig-3.52/t/ |
H A D | xmlxpath_24namespaces.t | 20 my $node= $t->findvalue( '//attr:node/@attr:findme'); 36 $node= $t->findvalue( '//*[@attr:findme]'); 54 ok( $t->findvalue('//attr:node/@attr:findme'), 'someval'); 74 my $v = $twig->findvalue('//foo'); 77 my $v1 = $twig->findvalue('//foo'); 87 my $v = $twig->findvalue('//example:foo'); 94 my $v = $twig->findvalue('//foo'); 102 my $v = $twig->findvalue('//foo'); 120 ok( $twig->findvalue( '//*[@b:att]'), 'Node 1Node 3', 'namespaces on attributes');
|
H A D | xmlxpath_test_with_handlers.t | 43 ok( $_->findvalue( 'elt7[@id="elt7-2"]'), "in_elt7-2"); # 3 44 … ok( $_->findvalue( 'elt7[preceding-sibling::*[1][self::elt6]]'), "in_elt7-1"); # 4 45 … ok( $_->findvalue( 'elt7[preceding-sibling::elt6]'), "in_elt7-1in_elt7-2"); # 5 46 ok( $_->findvalue( "elt7"), "in_elt7-1in_elt7-2"); # 6
|
/dports/textproc/p5-Plagger/Plagger-0.7.17/lib/Plagger/Plugin/CustomFeed/ |
H A D | FlickrSearch.pm | 67 my $photo_id = $search_photo->findvalue('@id'); 68 my $server_id = $search_photo->findvalue('@server'); 69 my $secret = $search_photo->findvalue('@secret'); 85 my $link = $info_doc->findvalue(q[/rsp/photo/urls/url[@type='photopage']]); 86 my $author = $info_doc->findvalue(q[/rsp/photo/owner/@realname]) 87 || $info_doc->findvalue(q[/rsp/photo/owner/@username]); 88 my $title = $info_doc->findvalue(q[/rsp/photo/title]); 89 my $date = $info_doc->findvalue(q[/rsp/photo/dates/@posted]); 90 my $format = $info_doc->findvalue(q[/rsp/photo/@originalformat]) || 'jpg'; 91 my $desc = $info_doc->findvalue(q[/rsp/photo/description]);
|
/dports/textproc/p5-XML-LibXML/XML-LibXML-2.0207/t/ |
H A D | 31xpc_functions.t | 26 ok($xc->findvalue('foo:copy("bar")') eq 'bar', ' TODO : Add test name'); 32 ok($xc->findvalue('foo:copy(3.14)') > 3.139, ' TODO : Add test name'); # float math 35 ok($xc->findvalue('foo:copy(7)') == 7, ' TODO : Add test name'); 45 eval { $xc->findvalue('foo:copy(1,xyz)') }; 54 ok($xc->findvalue('dummy()') eq 'DUMMY', ' TODO : Add test name'); 58 eval { $xc->findvalue('dummy()') }; 68 ok($xc->findvalue('dummy2()') eq 'DUMMY2', ' TODO : Add test name'); 72 eval { $xc->findvalue('dummy2()') }; 88 ok($xc->findvalue('join("","a","b","c")') eq 'abc', ' TODO : Add test name'); 98 eval { $xc->findvalue('foo:copy("bar")') }; [all …]
|
H A D | 30xpathcontext.t | 42 # test findvalue() 217 eval { $xc4->findvalue('position()') }; 221 eval { $xc4->findvalue('last()') }; 235 ok($xc4->findvalue('position()')==0, ' TODO : Add test name'); 238 ok($xc4->findvalue('last()')==0, ' TODO : Add test name'); 249 ok($xc4->findvalue('last()')==4, ' TODO : Add test name'); 252 ok($xc4->findvalue('position()')==1, ' TODO : Add test name'); 259 ok($xc4->findvalue('position()')==1, ' TODO : Add test name'); 266 ok($xc4->findvalue('position()')==4, ' TODO : Add test name'); 278 eval { $xc4->findvalue('position()') }; [all …]
|
/dports/textproc/p5-xmltv/xmltv-0.5.70/lib/ |
H A D | Configure.pm | 230 $nextstage = $p->findvalue( '@stage' ); 234 my $id = $p->findvalue( '@id' ); 237 my $default = $p->findvalue( '@default' ); 238 my $constant = $p->findvalue( '@constant' ); 269 push @optionvalues, $p2->findvalue( '@value' ); 326 push @channelid, $p->findvalue( '@id' ); 377 value=>$p->findvalue( '@id' ), 393 my $value = $p->findvalue( $field . "[\@lang='$lang']"); 396 $value = $p->findvalue( $field . "[\@lang='en']") 400 $value = $p->findvalue( $field . "[1]")
|
H A D | ValidateFile.pm | 198 my $channelid = $ch->findvalue('@id'); 199 my $display_name = $ch->findvalue('display-name/text()'); 217 my $channelid = $p->findvalue('@channel'); 218 my $start = $p->findvalue('@start'); 219 my $stop = $p->findvalue('@stop'); 220 my $title = $p->findvalue('title/text()'); 222 $desc = $p->findvalue('desc/text()') 223 if $p->findvalue( 'count(desc)' ); 225 my $xmltv_episode = $p->findvalue('episode-num[@system="xmltv_ns"]' );
|
/dports/misc/freeguide/freeguide-0.11.1/xmltv/share/perl5/XMLTV/ |
H A D | Configure.pm | 230 $nextstage = $p->findvalue( '@stage' ); 234 my $id = $p->findvalue( '@id' ); 237 my $default = $p->findvalue( '@default' ); 238 my $constant = $p->findvalue( '@constant' ); 269 push @optionvalues, $p2->findvalue( '@value' ); 326 push @channelid, $p->findvalue( '@id' ); 377 value=>$p->findvalue( '@id' ), 393 my $value = $p->findvalue( $field . "[\@lang='$lang']"); 396 $value = $p->findvalue( $field . "[\@lang='en']") 400 $value = $p->findvalue( $field . "[1]")
|
H A D | ValidateFile.pm | 198 my $channelid = $ch->findvalue('@id'); 199 my $display_name = $ch->findvalue('display-name/text()'); 217 my $channelid = $p->findvalue('@channel'); 218 my $start = $p->findvalue('@start'); 219 my $stop = $p->findvalue('@stop'); 220 my $title = $p->findvalue('title/text()'); 222 $desc = $p->findvalue('desc/text()') 223 if $p->findvalue( 'count(desc)' ); 225 my $xmltv_episode = $p->findvalue('episode-num[@system="xmltv_ns"]' );
|
/dports/german/BBBike/BBBike-3.18/GPS/GpsmanData/ |
H A D | SportsTracker.pm | 88 my $activity_name = $activity->findvalue("./name"); 89 my $activity_oid = $activity->findvalue("./oid"); 111 my $realtime = $eventlocation->findvalue("./realtime"); 124 my $lat = $eventlocation->findvalue("./latitude"); 125 my $lon = $eventlocation->findvalue("./longitude"); 126 my $alt = $eventlocation->findvalue("./altitude"); 127 my $fixq = $eventlocation->findvalue("./fixquality");
|
/dports/net/p5-Net-Amazon-S3/Net-Amazon-S3-0.99/lib/Net/Amazon/S3/ |
H A D | Response.pm | 132 return 1 if $self->findvalue ('/Error'); 143 sub findvalue { method in Net::Amazon::S3::Response 147 $self->xpath_context->findvalue (@path); 174 return $self->findvalue ('/Error/Code'); 186 return $self->findvalue ('/Error/Message'); 198 return $self->findvalue ('/Error/Resource'); 210 return $self->findvalue ('/Error/RequestId');
|
/dports/textproc/p5-XML-XPath/XML-XPath-1.44/t/ |
H A D | 43op_div.t | 9 ok($xp->findvalue('4 div 2') == 2); 10 is $xp->findvalue('4 div 0'), 'Infinity'; 11 is $xp->findvalue('-4 div 0'), '-Infinity'; 12 is $xp->findvalue('0 div 0'), 'NaN';
|