Commits

Shlomi Fish  committed 2488902

Add the Canonicalization 1.1 Spec.

  • Participants
  • Parent commits ec44c2a

Comments (0)

Files changed (3)

     - Fix t/35huge_mode.t on libxml2 versions less than 2.7.0.
         - Fixes https://rt.cpan.org/Ticket/Display.html?id=88375
         - Thanks to Yuriy / YOREEK for the patch.
+    - Add toStringC14N_v1_1() to XML::LibXML::Node.
+        - Fixes https://rt.cpan.org/Public/Bug/Display.html?id=88254
+        - Thanks to Ulrich for the report and for a patch of sorts.
 
 2.0104          Fri 30 Aug 12:36:06 IDT 2013
     - Fix https://rt.cpan.org/Ticket/Display.html?id=88060
 				 (defined $xpc ? $xpc : undef)
 				);
 }
+
+{
+my $C14N_version_1_dot_1_val = 2;
+
+sub toStringC14N_v1_1 {
+    my ($self, $comments, $xpath, $xpc) = @_;
+
+    return $self->_toStringC14N(
+        $comments || 0,
+        (defined $xpath ? $xpath : undef),
+        $C14N_version_1_dot_1_val,
+        undef,
+        (defined $xpc ? $xpc : undef)
+    );
+}
+
+}
+
 sub toStringEC14N {
     my ($self, $comments, $xpath, $xpc, $inc_prefix_list) = @_;
     unless (UNIVERSAL::isa($xpc,'XML::LibXML::XPathContext')) {

File docs/libxml.dbk

                 </listitem>
             </varlistentry>
             <varlistentry>
+                <term>toStringC14N_v1_1</term>
+
+                <listitem>
+                    <funcsynopsis>
+                        <funcsynopsisinfo>$c14nstring = $node-&gt;toStringC14N_v1_1();
+$c14nstring = $node-&gt;toStringC14N_v1_1($with_comments, $xpath_expression , $xpath_context);</funcsynopsisinfo>
+                    </funcsynopsis>
+                    <para>
+                        This function behaves like toStringC14N() except that
+                        it uses the "XML_C14N_1_1" constant for
+                        canonicalising using the "C14N 1.1 spec".
+                    </para>
+                </listitem>
+            </varlistentry>
+            <varlistentry>
                 <term>toStringEC14N</term>
 
                 <listitem>