Skip Menu |

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

Report information
The Basics
Id: 323
Status: resolved
Priority: 0/
Queue: XML-Filter-SAX1toSAX2

Owner: Nobody in particular
Requestors: cpan [...]

Bug Information
Severity: (no value)
Broken in: 0.01
Fixed in: (no value)

Subject: &make_sax2_attributes() returns an array, not a hash
Download (untitled) / with headers
text/plain 775b
According to the "Perl SAX 2.0 Binding" document, an elements attributes are "a hash keyed by JClark namespace notation..." XML::Filter::SAX1toSAX2::make_sax2_attributes sets the Attributes key as an array reference. Shouldn't it be something like : <snip> foreach my $key (keys %{$element->{Attributes}}) { my $namespace = $self->_namespace($key); my $value = $element->{Attributes}{Value}; $element->{'Attributes'}{"{}$key"}{'Name'} = $key; $element->{'Attributes'}{"{}$key"}{'LocalName'} = $key; $element->{'Attributes'}{"{}$key"}{'NamespaceURI'} = $namespace; $element->{'Attributes'}{"{}$key"}{'Prefix'} = $namespace; # ? $element->{'Attributes'}{"{}$key"}{'Value'} = $value; } </snip>
Latest version on CPAN fixes this. Closing bug.

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

Please report any issues with to