[Lxml-checkins] r44182 - lxml/branch/lxml-1.3/doc

scoder at codespeak.net scoder at codespeak.net
Tue Jun 12 19:03:10 CEST 2007


Author: scoder
Date: Tue Jun 12 19:03:10 2007
New Revision: 44182

Modified:
   lxml/branch/lxml-1.3/doc/xpathxslt.txt
Log:
doc updates from trunk (XPath/XSLT)

Modified: lxml/branch/lxml-1.3/doc/xpathxslt.txt
==============================================================================
--- lxml/branch/lxml-1.3/doc/xpathxslt.txt	(original)
+++ lxml/branch/lxml-1.3/doc/xpathxslt.txt	Tue Jun 12 19:03:10 2007
@@ -10,9 +10,10 @@
    1  XPath
      1.1  The ``xpath()`` method
      1.2  XPath return values
-     1.3  The ``XPath`` class
-     1.4  The ``XPathEvaluator`` classes
-     1.5  ``ETXPath``
+     1.3  Generating XPath expressions
+     1.4  The ``XPath`` class
+     1.5  The ``XPathEvaluator`` classes
+     1.6  ``ETXPath``
    2  XSLT
      2.1  XSLT result objects
      2.2  Stylesheet parameters
@@ -140,8 +141,12 @@
   (the text node content or attribute value).  Namespace declarations are
   returned as tuples of strings: ``(prefix, URI)``.
 
-A related convenience method of ElementTree objects is ``getpath(element)``,
-which returns a structural, absolute XPath expression to find that element::
+
+Generating XPath expressions
+----------------------------
+
+ElementTree objects have a method ``getpath(element)``, which returns a
+structural, absolute XPath expression to find that element::
 
   >>> a  = etree.Element("a")
   >>> b  = etree.SubElement(a, "b")


More information about the lxml-checkins mailing list