From 0af572e5546b51a1eeedea2f05ad2ba05064f680 Mon Sep 17 00:00:00 2001
From: Martin Goik <goik@hdm-stuttgart.de>
Date: Tue, 5 Dec 2017 14:07:40 +0100
Subject: [PATCH] Wrong XPath

---
 Doc/Sda1/xslt.xml | 12 +++++++-----
 1 file changed, 7 insertions(+), 5 deletions(-)

diff --git a/Doc/Sda1/xslt.xml b/Doc/Sda1/xslt.xml
index 061218399..ec93bd017 100644
--- a/Doc/Sda1/xslt.xml
+++ b/Doc/Sda1/xslt.xml
@@ -800,7 +800,7 @@ WHERE dept='finance'
       </informaltable>
     </figure>
 
-    <para> <abbrev xlink:href="https://www.w3.org/TR/xpath">XPath</abbrev>
+    <para><abbrev xlink:href="https://www.w3.org/TR/xpath">XPath</abbrev>
     provides <link xlink:href="https://www.w3.org/TR/xpath#axes">different
     axis definitions</link>:</para>
 
@@ -886,8 +886,10 @@ WHERE dept='finance'
                 <glossterm>XPath</glossterm>
 
                 <glossdef>
-                  <para><code>//*[text()[contains(., <emphasis
-                  role="red">'house'</emphasis>)]]</code></para>
+                  <para><code>//*[text()[0 &amp;lt;
+                  string-length(</code></para>
+
+                  <para><code>normalize-space(.))]]</code></para>
                 </glossdef>
               </glossentry>
             </glosslist></td>
@@ -895,9 +897,9 @@ WHERE dept='finance'
           <td valign="top"><programlisting language="xml">&lt;top&gt;
   &lt;b id="first"&gt;
     <emphasis role="red">&lt;a&gt;</emphasis>A house<emphasis role="red">&lt;/a&gt;</emphasis>    
-    &lt;a&gt;Rent a car&lt;/a&gt;
+    <emphasis role="red">&lt;a&gt;</emphasis>Rent a car<emphasis role="red">&lt;/a&gt;</emphasis>
     <emphasis role="red">&lt;a&gt;</emphasis>Two houses<emphasis role="red">&lt;/a&gt;</emphasis>
-    &lt;a&gt;Five&lt;/a&gt;
+    <emphasis role="red">&lt;a&gt;</emphasis>Five<emphasis role="red">&lt;/a&gt;</emphasis>
   &lt;/b&gt;
   <emphasis role="red">&lt;c&gt;</emphasis>Building a house<emphasis
                 role="red">&lt;/c&gt;</emphasis>    
-- 
GitLab