Skip Menu |
 

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

Report information
The Basics
Id: 88254
Status: resolved
Priority: 0/
Queue: XML-LibXML

People
Owner: Nobody in particular
Requestors: u.wisser [...] publisher.de
Cc:
AdminCc:

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



Subject: C14N does not allow c14n v1.1
Download (untitled) / with headers
text/plain 246b
libxml2 does export three modes for c14n Enum xmlC14NMode { XML_C14N_1_0 = 0 : Origianal C14N 1.0 spec XML_C14N_EXCLUSIVE_1_0 = 1 : Exclusive C14N 1.0 spec XML_C14N_1_1 = 2 : C14N 1.1 spec } XML::LibXML does only allow two of these.
Download (untitled) / with headers
text/plain 559b
On Thu Aug 29 08:45:22 2013, WISSER wrote: Show quoted text
> libxml2 does export three modes for c14n > > Enum xmlC14NMode { > XML_C14N_1_0 = 0 : Origianal C14N 1.0 spec > XML_C14N_EXCLUSIVE_1_0 = 1 : Exclusive C14N 1.0 spec > XML_C14N_1_1 = 2 : C14N 1.1 spec > } > > XML::LibXML does only allow two of these.
Hi, thanks for the report. Do you know if the support for that in libxml2 was added only in relatively recent versions (which will complicate adding support for this in XML::LibXML)? And naturally - patches will be welcome. Regards, -- Shlomi Fish
Subject: Re: [rt.cpan.org #88254] C14N does not allow c14n v1.1
Date: Fri, 30 Aug 2013 22:31:40 +0200
To: bug-XML-LibXML [...] rt.cpan.org
From: Ulrich Wisser <ulrich [...] wisser.se>
Download (untitled) / with headers
text/plain 1.2k
I found the commit https://git.gnome.org/browse/libxml2/commit/?id=838682478cf89ddcbda294d9557c72813135fc7a Support for the c14n v1.1 was added on 2009-07-09. Although not a patch, I would suggest copying the toStringC14N method. Something like sub toStringC14N11 { my ($self, $comments, $xpath, $xpc) = @_; return $self->_toStringC14N( $comments || 0, (defined $xpath ? $xpath : undef), 2, undef, (defined $xpc ? $xpc : undef) ); } The nethod name is not really optimal, but that's all my creative side could come up with. :) /Ulrich 2013/8/30 Shlomi Fish via RT <bug-XML-LibXML@rt.cpan.org> Show quoted text
> <URL: https://rt.cpan.org/Ticket/Display.html?id=88254 > > > On Thu Aug 29 08:45:22 2013, WISSER wrote:
> > libxml2 does export three modes for c14n > > > > Enum xmlC14NMode { > > XML_C14N_1_0 = 0 : Origianal C14N 1.0 spec > > XML_C14N_EXCLUSIVE_1_0 = 1 : Exclusive C14N 1.0 spec > > XML_C14N_1_1 = 2 : C14N 1.1 spec > > } > > > > XML::LibXML does only allow two of these.
> > Hi, > > thanks for the report. Do you know if the support for that in libxml2 was > added only in relatively recent versions (which will complicate adding > support for this in XML::LibXML)? And naturally - patches will be welcome. > > Regards, > > -- Shlomi Fish >
Download (untitled) / with headers
text/plain 1.8k
Hi Ulrich, Thanks! I applied a modified version of your changes in revision 1317:2488902c7504df3f76c0ba291d5b20edbf8b663b and they will be part of the next XML-LibXML release (I'm still waiting on a pull request). In the meanwhile, I'm going to close this bug report, but you can reopen it. Regards, -- Shlomi Fish On Fri Aug 30 16:31:54 2013, ulrich@wisser.se wrote: Show quoted text
> I found the commit > > https://git.gnome.org/browse/libxml2/commit/?id=838682478cf89ddcbda294d9557c72813135fc7a > > Support for the c14n v1.1 was added on 2009-07-09. > > Although not a patch, I would suggest copying the toStringC14N method. > Something like > > sub toStringC14N11 { > my ($self, $comments, $xpath, $xpc) = @_; > return $self->_toStringC14N( $comments || 0, > (defined $xpath ? $xpath : undef), > 2, > undef, > (defined $xpc ? $xpc : undef) > ); > } > > The nethod name is not really optimal, but that's all my creative side > could come up with. :) > > /Ulrich > > > 2013/8/30 Shlomi Fish via RT <bug-XML-LibXML@rt.cpan.org> >
> > <URL: https://rt.cpan.org/Ticket/Display.html?id=88254 > > > > > On Thu Aug 29 08:45:22 2013, WISSER wrote:
> > > libxml2 does export three modes for c14n > > > > > > Enum xmlC14NMode { > > > XML_C14N_1_0 = 0 : Origianal C14N 1.0 spec > > > XML_C14N_EXCLUSIVE_1_0 = 1 : Exclusive C14N 1.0 spec > > > XML_C14N_1_1 = 2 : C14N 1.1 spec > > > } > > > > > > XML::LibXML does only allow two of these.
> > > > Hi, > > > > thanks for the report. Do you know if the support for that in libxml2 > > was > > added only in relatively recent versions (which will complicate > > adding > > support for this in XML::LibXML)? And naturally - patches will be > > welcome. > > > > Regards, > > > > -- Shlomi Fish > >


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

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.