This commit is contained in:
Kovid Goyal 2014-08-12 11:23:27 +05:30
parent f053462ba0
commit 90ce4d54c5

View File

@ -37,7 +37,7 @@ the prefix::
children of the <body> tag)
This will match only ``<p>A very short ebook to demonstrate the use of XPath.</p>``
in the `Sample ebook`_ but not any of the other ``<p>`` tags. The ``h:`` prefix
in the :ref:`sample_ebook` but not any of the other ``<p>`` tags. The ``h:`` prefix
in the above examples is needed to match XHTML tags. This is because internally,
|app| represents all content as XHTML. In XHTML tags have a *namespace*, and
``h:`` is the namespace prefix for HTML tags.
@ -84,6 +84,7 @@ to use the power of *regular expressions* via the built-in function :term:`re:te
Here the ``.`` operator refers to the contents of the tag, just as the ``@`` operator referred
to its attributes.
.. _sample_ebook :
Sample ebook
------------