diff --git a/source/basics.rst b/source/basics.rst index 40668f5..3e9f573 100644 --- a/source/basics.rst +++ b/source/basics.rst @@ -186,7 +186,7 @@ passed to ``findnodes()`` is different in each case: Will match every ```` element at any level of nesting. In both cases, the XPath expression starts with a '/' which means the search -will start at the the top of the document. +will start at the top of the document. Inside the second script's loop are a number of calls to ``findvalue()``. This is a handy shortcut method that is typically used when you expect the XPath diff --git a/source/html.rst b/source/html.rst index a402202..92bf081 100644 --- a/source/html.rst +++ b/source/html.rst @@ -139,7 +139,7 @@ but it will also match an element like this: The most common way to solve the problem is to add an extra space to the beginning and the end of the ``class`` attribute value like this: ``concat(" ", @class, " ")`` and then add spaces around the classname we're looking for: -``' member '``. Giving a expression like this: +``' member '``. Giving an expression like this: .. literalinclude:: /code/540-html-xpath-classes.pl :language: perl