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 &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"><top> <b id="first"> <emphasis role="red"><a></emphasis>A house<emphasis role="red"></a></emphasis> - <a>Rent a car</a> + <emphasis role="red"><a></emphasis>Rent a car<emphasis role="red"></a></emphasis> <emphasis role="red"><a></emphasis>Two houses<emphasis role="red"></a></emphasis> - <a>Five</a> + <emphasis role="red"><a></emphasis>Five<emphasis role="red"></a></emphasis> </b> <emphasis role="red"><c></emphasis>Building a house<emphasis role="red"></c></emphasis> -- GitLab