[Lxml-checkins] r42794 - lxml/trunk/doc
scoder at codespeak.net
scoder at codespeak.net
Mon May 7 14:09:34 CEST 2007
Author: scoder
Date: Mon May 7 14:09:32 2007
New Revision: 42794
Modified:
lxml/trunk/doc/xpathxslt.txt
Log:
section for getpath()
Modified: lxml/trunk/doc/xpathxslt.txt
==============================================================================
--- lxml/trunk/doc/xpathxslt.txt (original)
+++ lxml/trunk/doc/xpathxslt.txt Mon May 7 14:09:32 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
@@ -141,8 +142,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
+----------------------------
+
+A convenience method of ElementTree objects is ``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