Skip Menu |

This queue is for tickets about the XML-XPath CPAN distribution.

Report information
The Basics
Id: 68703
Status: resolved
Priority: 0/
Queue: XML-XPath

Owner: MANWAR [...]
Requestors: douglas.c.tanner [...]

Bug Information
Severity: Important
Broken in: 1.15
Fixed in: 1.20

Subject: Namespace_uri () Function updated in
Date: Wed, 8 Jun 2011 10:59:01 -0400
To: <bug-XML-XPath [...]>
From: "Tanner, Douglas C CIV SPAWARSYSCEN-ATLANTIC, 58140" <douglas.c.tanner [...]>
Download (untitled) / with headers
text/plain 823b
Currently in sub namespace_uri { my $self = shift; my ($node, @params) = @_; die "namespace-uri: namespace-uri: Function not supported\n" } Proposed change: sub namespace_uri { my $self = shift; my ($node, @params) = @_; if (@params > 1) { die "namespace-uri: function takes one or no parameters\n"; } elsif (@params) { my $nodeset = shift(@params); $node = $nodeset->get_node(1); } my $namespace = $node->getNamespace->toString; #sets to xmlns:[name]="namespace" or xmlns="namespace" $namespace =~ /\"(.*?)\"/; #we only need data between the quotation marks return XML::XPath::Literal->new($1); } I am by no means a perl or xml expert, so please let me know if you need to make any changes. Thanks, Doug Tanner 843.218.2942
Download smime.p7s
application/x-pkcs7-signature 5.5k

Message body not shown because it is not plain text.


This service is sponsored and maintained by Best Practical Solutions and runs on infrastructure.

Please report any issues with to