Commits

scop committed dc65743

Spelling fixes.

Comments (0)

Files changed (14)

         to t/71overload.t .
 
 1.93            Mon Feb 27 11:15:50 IST 2012
-    - Fix XML::LibXML::Element comparision with == and eq.
+    - Fix XML::LibXML::Element comparison with == and eq.
         - Fixes https://rt.cpan.org/Ticket/Display.html?id=75257 ,
         https://rt.cpan.org/Ticket/Display.html?id=75293 ,
         https://rt.cpan.org/Ticket/Display.html?id=75259 .
    - make Reader interface require Perl 5.8 (patches to extend to 5.6 are welcome)
 
 1.64
-   - fix reconcilation of the "xml" namespace [rt.cpan.org #26450]
+   - fix reconciliation of the "xml" namespace [rt.cpan.org #26450]
    - make tests pass with libxml2 2.9.29 - PI regression tests now
      accept "" as data of an empty PI [rt.cpan.org #27659]
    - strip-off UTF8 flag with $node->toString($format,1) for consistent
     /* resetting the entire module will lead to unwanted */
     /* results in server environments, such as if        */ 
     /* mod_perl is used together with php's xml module.  */
-    /* calling xmlInitParser() here is definitly wrong!  */
+    /* calling xmlInitParser() here is definitely wrong!  */
     /* xmlInitParser(); */ 
 
 #ifndef WITH_SERRORS
                      * as soon we have a namespace isolated from its
                      * owner, we loose the context. therefore it is
                      * forbidden to access the NS information directly.
-                     * instead the use will recieve a copy of the real
+                     * instead the use will receive a copy of the real
                      * namespace, that can be destroied and is not
                      * bound to a document.
                      *
 Ok, I don't implement namespace handling yet. 
 
 But I introduced the node types in XML::LibXML and by default I 
-export them. I am aware this is not very beautyfull -- well, the 
+export them. I am aware this is not very beautiful -- well, the 
 way it's done ... 
 
 Since most functions need more than just a simple call to libxml2
                     <term>recover_silently</term>
                     <listitem>
                         <programlisting>
-                            $parser-&gt;recover_silently(1);;
+                            $parser-&gt;recover_silently(1);
                         </programlisting>
                         <para>If called without an argument,
 			  returns true if the current value of the <literal>recover</literal> parser
 /** 
  * internal helper: insert node to nodelist
  * synopsis: xmlNodePtr insert_node_to_nodelist( leader, insertnode, followup );
- * while leader and followup are allready list nodes. both may be NULL
+ * while leader and followup are already list nodes. both may be NULL
  * if leader is null the parents children will be reset
  * if followup is null the parent last will be reset.
  * leader and followup has to be followups in the nodelist!!!
     if ( attr != NULL && attr->type != XML_ATTRIBUTE_NODE )
         return NULL;
     if ( node == attr->parent ) {
-        return attr; /* attribute is allready part of the node */
+        return attr; /* attribute is already part of the node */
     }  
     if ( attr->doc != node->doc ){
         attr = (xmlAttrPtr) domImportNode( node->doc, (xmlNodePtr) attr, 1, 1 ); 
             xmlUnlinkNode( next );
 
             /**
-             * keep only nodes that are refered by perl (or GDOME)
+             * keep only nodes that are referred by perl (or GDOME)
              */
             if ( !next->_private )
                 xmlFreeNode( next );
  * NAME domTestHierarchy
  * TYPE function
  *
- * tests the general hierachy error
+ * tests the general hierarchy error
  *
  * SYNOPSIS
  * if ( domTestHierarchy(cur, ref) ) ...

example/test.html

 If a node is not part of a document, it can be imported to another
 document. As specified in DOM Level 2 Specification the Node will not be
 altered or removed from its original document by default. ( <EM>$node-</EM><CODE>cloneNode(1)&gt;</CODE> will get called implicitly). Sometimes it is
-nessecary to <EM>move</EM> a node between documents. In such a case the node will not be copied, but
+necessary to <EM>move</EM> a node between documents. In such a case the node will not be copied, but
 removed from the original document.
 
 </DL>

example/test.xhtml

 If a node is not part of a document, it can be imported to another
 document. As specified in DOM Level 2 Specification the Node will not be
 altered or removed from its original document by default. ( <em>$node-</em><code>cloneNode(1)&gt;</code> will get called implicitly). Sometimes it is
-nessecary to <em>move</em> a node between documents. In such a case the node will not be copied, but
+necessary to <em>move</em> a node between documents. In such a case the node will not be copied, but
 removed from the original document.
 
 </p></dd></dl><p/><hr/><h1><a name="SEE_ALSO">SEE ALSO</a></h1><p>

example/xmllibxmldocs.pl

 # ------------------------------------------------------------------------- #
 #
 # ------------------------------------------------------------------------- #
-# good implementations would use XSLT to convert a docbook to anyother
+# good implementations would use XSLT to convert a docbook to any other
 # text format. Since the module does not presume libxslt installed, we
 # have to do the dirty job.
 my $ch = ChapterHandler->new($targetdir);

lib/XML/LibXML/Error.pm

   },
   fallback => 1;
 
-$WARNINGS = 0; # 0: supress, 1: report via warn, 2: report via die
+$WARNINGS = 0; # 0: suppress, 1: report via warn, 2: report via die
 $VERSION = "2.0001"; # VERSION TEMPLATE: DO NOT CHANGE
 
 use constant XML_ERR_NONE            => 0;
     return retval;
 }
 
-/* frees the node if nessecary. this method is aware, that libxml2
- * has several diffrent nodetypes.
+/* frees the node if necessary. this method is aware that libxml2
+ * has several different nodetypes.
  */
 void
 PmmFreeNode( xmlNodePtr node )
  * the method uses the internal methods PmmFixNode and PmmChildNodes to
  * do the real updates.
  * 
- * in the worst case this traverses the subtree twice durig a node 
+ * in the worst case this traverses the subtree twice during a node
  * operation. this case is only given when the node has to be
  * adopted by the document. Since the ownerdocument and the effective 
  * owner may differ this double traversing makes sense.
  * Basic concept:
  * perl varies in the implementation of UTF8 handling. this header (together
  * with the c source) implements a few functions, that can be used from within
- * the core module inorder to avoid cascades of c pragmas
+ * the core module in order to avoid cascades of c pragmas
  */
 
 #ifndef __PERL_LIBXML_MM_H__
  * defined in the perl layer, it can't surely tell when a node can be
  * safely be removed from the memory. This structure helps to keep
  * track how intense the nodes of a document are used and will not
- * delete the nodes unless they are not refered from somewhere else.
+ * delete the nodes unless they are not referred from somewhere else.
  */
 struct _ProxyNode {
     xmlNodePtr node;
 /* the psvi_status flag requires some explanation:
 
    each time libxml2 validates a document (using DTD, Schema or
-   RelaxNG) it stores a pointer to a last successfully applied grammer
+   RelaxNG) it stores a pointer to a last successfully applied grammar
    rule in node->psvi. Upon next validation, if libxml2 wants to check
    that node matches some grammar rule, it first compares the rule
    pointer and node->psvi. If these are equal, the validation of the
  * returns libxml2 node
  *
  * DESCRIPTION
- * This function implements a nodetype independant node cloning.
+ * This function implements a nodetype independent node cloning.
  * 
  * Note that this function has to stay in this module, since
  * XML::LibXSLT reuses it.
     my @cn = $e->childNodes;
 
     # this is the correct behaviour for DOM. the nodes are still
-    # refered
+    # referred
     # TEST
     is( scalar( @cn ), 4, ' TODO : Add test name' );
     
     my @cn = $e->childNodes;
 
     # this is the correct behaviour for DOM. the nodes are still
-    # refered
+    # referred
     # TEST
     is( scalar( @cn ), 4, ' TODO : Add test name' );
 
   # TEST
   ok (!$@, 'No exception was thrown.');
   # TEST
-  ok ($doc, ' Parsing was succesful.');
+  ok ($doc, ' Parsing was successful.');
   my $root = $doc && $doc->documentElement;
   my $val = $root && $root->findvalue('//input[@id="foo"]/@value');
   # TEST
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.