List Info

Thread: Minor documentation path for libxml/xpath.h




Minor documentation path for libxml/xpath.h
country flaguser name
United States
2007-03-20 17:10:23

The diff below addresses some typos in the documentation of xmlXPathContext. ; I don’t know what format you’d like patches in, or how to provoke svn to produce nicer diffs.  This is against current svn trunk (revision 3592).

(I came to be looking at this as I’m trying to work out which functions can modify the context; evaluating an XPath expression can do so, which surprised me, but maybe I need to RTFM more carefully.)

-- James

 

===================================================================

--- include/libxml/xpath.h    (revision 3592)

+++ include/libxml/xpath.h    (working copy)

-310,7 +310,7

     int proximityPosition;         /* the proximity position */

 

     /* extra stuff for XPointer */

-    int xptr;  ;           ;         /* it this an XPointer context */

+    int xptr;  ;           ;         /* is this an XPointer context? */

     xmlNodePtr here;          ;     /* for here() */

     xmlNodePtr origin;      ;       /* for origin() */

 

-332,7 +332,7

 

     /* temporary namespace lists kept for walking the namespace axis */

     xmlNsPtr *tmpNsList;  ;         /* Array of namespaces */

-    int tmpNsNr;       ;      /* number of namespace in scope */

+    int tmpNsNr;       ;      /* number of namespaces in scope */

 

     /* error reporting mechanism */

     void *userData; ;           ;         /* user specific data block */

-340,8 +340,8

     xmlError lastError;    ;           ;   /* the last error */

     xmlNodePtr debugNode;          /* the source node XSLT */

 

-    /* dictionnary */

-    xmlDictPtr dict;          ;     /* dictionnary if any */

+    /* dictionary */

+    xmlDictPtr dict;          ;     /* dictionary if any */

 

     int flags;           ;          /* flags to control compilation */

 

 

Re: Minor documentation path for libxml/xpath.h
user name
2007-03-21 05:08:25
On Tue, Mar 20, 2007 at 03:10:23PM -0700, James Dennett
wrote:
> 
> The diff below addresses some typos in the
documentation of
> xmlXPathContext.  I don't know what format you'd like
patches in, or how
> to provoke svn to produce nicer diffs.  This is against
current svn
> trunk (revision 3592).

  Cool, but mail seems to have mangled your patch, can you
instead regenerate
it with svn diff -p and send them as mail attachement which
are usually
perserved by various mail programs, thanks !

> (I came to be looking at this as I'm trying to work out
which functions
> can modify the context; evaluating an XPath expression
can do so, which
> surprised me, but maybe I need to RTFM more
carefully.)

  Usually you should not need to modify the context, except
somethings to
set up the current node or document (and there is no
accessor for this
requires direct change of the public structure).
  
   thanks,

Daniel

-- 
Red Hat Virtualization group http://redhat.com/v
irtualization/
Daniel Veillard      | virtualization library  http://libvirt.org/
veillardredhat.com  | libxml GNOME XML XSLT toolkit  http://xmlsoft.org/
http://veillard.com/ |
Rpmfind RPM search engine  http://rpmfind.net/
_______________________________________________
xml mailing list, project page  http://xmlsoft.org/
xmlgnome.org
http://mai
l.gnome.org/mailman/listinfo/xml

[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )