Commits

Shlomi Fish committed dde1973
  • Participants
  • Parent commits 67ec5fd

Comments (0)

Files changed (3)

 Revision history for Perl extension XML::LibXML
 
+2.0019          Mon  1 Jul 11:04:31 IDT 2013
+    - Correct typos reported in RT #86599.
+        - https://rt.cpan.org/Ticket/Display.html?id=86599
+        - Thanks to dsteinbrunner.
+
 2.0018          Mon 13 May 13:35:06 IDT 2013
     - Revert previous change of minimal version of libxml2.
         - This change proved to be unpopular and didn't prevent
   XML_PARSE_PEDANTIC	  => 128,      # pedantic error reporting
   XML_PARSE_NOBLANKS	  => 256,      # remove blank nodes
   XML_PARSE_SAX1	  => 512,      # use the SAX1 interface internally
-  XML_PARSE_XINCLUDE	  => 1024,     # Implement XInclude substitition
+  XML_PARSE_XINCLUDE	  => 1024,     # Implement XInclude substitution
   XML_PARSE_NONET	  => 2048,     # Forbid network access
-  XML_PARSE_NODICT	  => 4096,     # Do not reuse the context dictionnary
+  XML_PARSE_NODICT	  => 4096,     # Do not reuse the context dictionary
   XML_PARSE_NSCLEAN	  => 8192,     # remove redundant namespaces declarations
   XML_PARSE_NOCDATA	  => 16384,    # merge CDATA as text nodes
   XML_PARSE_NOXINCNODE	  => 32768,    # do not generate XINCLUDE START/END nodes
 
 #-------------------------------------------------------------------------#
 # DOM L3 Document functions.
-# added after robins implicit feature requst
+# added after robins implicit feature request
 #-------------------------------------------------------------------------#
 *getElementsByTagName = \&XML::LibXML::Element::getElementsByTagName;
 *getElementsByTagNameNS = \&XML::LibXML::Element::getElementsByTagNameNS;
 
 sub CLONE_SKIP { 1 }
 
-# this is infact not a node!
+# In fact, this is not a node!
 sub prefix { return "xmlns"; }
 sub getPrefix { return "xmlns"; }
 sub getNamespaceURI { return "http://www.w3.org/2000/xmlns/" };
     my $uri = shift;
     my $retval = 0;
 
-    # loop through the callbacks and and find the first matching
-    # The callbacks are stored in execution order (reverse stack order)
-    # any new global callbacks are shifted to the callback stack.
+    # loop through the callbacks, and find the first matching one.
+    # The callbacks are stored in execution order (reverse stack order).
+    # Any new global callbacks are shifted to the callback stack.
     foreach my $cb ( @_GLOBAL_CALLBACKS ) {
 
         # callbacks have to return 1, 0 or undef, while 0 and undef
               <para>THIS OPTION IS EXPERIMENTAL!</para>
               <para>Although quite powerful, XML::LibXML's DOM implementation is incomplete with respect to
 		the DOM level 2 or level 3 specifications.
-                XML::GDOME is based on libxml2 as well and and provides a rather complete DOM implementation by wrapping libgdome.
+                XML::GDOME is based on libxml2 as well, and provides a rather complete DOM implementation by wrapping libgdome.
 		This flag allows you to make
                 use of XML::LibXML's full parser options and XML::GDOME's DOM implementation at the same time.</para>
               <para>To make use of this function, one has to install libgdome and configure XML::LibXML to use this library.
                     </funcsynopsis>
 
                     <para><emphasis>findnodes</emphasis> evaluates the xpath expression (XPath 1.0) on the current node and returns the resulting node set as an array. In scalar context, returns an <olink targetdoc="XML::LibXML::NodeList">XML::LibXML::NodeList</olink> object.</para>
-          <para>The xpath expression can be passed either as a string or
-	  or as a  <olink targetdoc="XML::LibXML::XPathExpression">XML::LibXML::XPathExpression</olink> object.
+          <para>The xpath expression can be passed either as a string, or
+	  as a  <olink targetdoc="XML::LibXML::XPathExpression">XML::LibXML::XPathExpression</olink> object.
 	  </para>
 	  <para><emphasis>NOTE ON NAMESPACES AND XPATH</emphasis>:</para>
 	  <para>A common mistake about
                     <olink targetdoc="XML::LibXML::Number">XML::LibXML::Number</olink> object being returned. Other expressions might return an <olink targetdoc="XML::LibXML::Boolean">XML::LibXML::Boolean</olink>
                     object, or an <olink targetdoc="XML::LibXML::Literal">XML::LibXML::Literal</olink> object (a string). Each of those objects uses Perl's overload feature to "do
                     the right thing" in different contexts.</para>
-          <para>The xpath expression can be passed either as a string or
+          <para>The xpath expression can be passed either as a string,
 	  or as a  <olink targetdoc="XML::LibXML::XPathExpression">XML::LibXML::XPathExpression</olink> object.
 	  </para>
 	  <para>See also <xref linkend="XML-LibXML-XPathContext"/>-&gt;find.</para>
                     <para>That is, it returns the literal value of the results. This enables you to ensure that you get a string back from your search, allowing
                     certain shortcuts. This could be used as the equivalent of XSLT's &lt;xsl:value-of select="some_xpath"/&gt;.</para>
 	  <para>See also <xref linkend="XML-LibXML-XPathContext"/>-&gt;findvalue.</para>
-          <para>The xpath expression can be passed either as a string or
-	  or as a  <olink targetdoc="XML::LibXML::XPathExpression">XML::LibXML::XPathExpression</olink> object.
+          <para>The xpath expression can be passed either as a string, or
+	  as a  <olink targetdoc="XML::LibXML::XPathExpression">XML::LibXML::XPathExpression</olink> object.
 	  </para>
                 </listitem>
             </varlistentry>
 
         <para>will have the same result as above.</para>
 
-        <para><xref linkend="XML-LibXML-PI"/>'s implementation of setData() documented below differs a bit from the the standard version as available in <xref linkend="XML-LibXML-Node"/>:</para>
+        <para><xref linkend="XML-LibXML-PI"/>'s implementation of setData() documented below differs a bit from the standard version as available in <xref linkend="XML-LibXML-Node"/>:</para>
         <variablelist>
             <varlistentry>
                 <term>setData</term>
       The XML::LibXML::XPathContext
       class provides an almost complete
       interface to libxml2's XPath implementation.
-      With XML::LibXML::XPathContext is is possible to
+      With XML::LibXML::XPathContext, it is possible to
       evaluate XPath expressions in the context
       of arbitrary node, context size, and context position,
       with a user-defined namespace-prefix mapping,
 	      returns an <olink targetdoc="XML::LibXML::NodeList">XML::LibXML::NodeList</olink> object. Optionally, a
 	      node may be passed as a second argument to set the
 	      context node for the query.</para>
-          <para>The xpath expression can be passed either as a string or
-	  or as a  <olink targetdoc="XML::LibXML::XPathExpression">XML::LibXML::XPathExpression</olink> object.
+          <para>The xpath expression can be passed either as a string, or
+	  as a  <olink targetdoc="XML::LibXML::XPathExpression">XML::LibXML::XPathExpression</olink> object.
 	  </para>
           </listitem>
         </varlistentry>
 	      thing'' in different contexts. Optionally, a node may be
 	      passed as a second argument to set the context node for
 	      the query.</para>
-          <para>The xpath expression can be passed either as a string or
-	  or as a  <olink targetdoc="XML::LibXML::XPathExpression">XML::LibXML::XPathExpression</olink> object.
+          <para>The xpath expression can be passed either as a string, or
+	  as a  <olink targetdoc="XML::LibXML::XPathExpression">XML::LibXML::XPathExpression</olink> object.
 	  </para>
           </listitem>
         </varlistentry>
             select=``some_xpath''/&gt;. Optionally, a node may be
             passed in the second argument to set the context node for
             the query.</para>
-          <para>The xpath expression can be passed either as a string or
-	  or as a  <olink targetdoc="XML::LibXML::XPathExpression">XML::LibXML::XPathExpression</olink> object.
+          <para>The xpath expression can be passed either as a string, or
+	  as a  <olink targetdoc="XML::LibXML::XPathExpression">XML::LibXML::XPathExpression</olink> object.
 	  </para>
           </listitem>
         </varlistentry>
 	structured error information as hash key-value pairs. Individual
 	items (fields) of a structured error can either be
 	obtained directly as $@-&#62;{field}, or using autoloaded
-	methods such as as $@-&#62;field() (where field is the field
+	methods such as $@-&#62;field() (where field is the field
 	name). XML::LibXML::Error objects have the following fields:
 	domain, code, level, file, line, nodename, message, str1, str2,
 	str3, num1, num2, and _prev (some of them may be undefined).