diff --git a/manual/xpath.rst b/manual/xpath.rst index 20d878ea63..85cde7e0f2 100644 --- a/manual/xpath.rst +++ b/manual/xpath.rst @@ -37,7 +37,7 @@ the prefix:: children of the
tag) This will match only ``A very short ebook to demonstrate the use of XPath.
`` -in the `Sample ebook`_ but not any of the other ```` tags. The ``h:`` prefix +in the :ref:`sample_ebook` but not any of the other ``
`` 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 ------------