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
>