title: xslt get the immediate following sibling
body: <p>I have the following:</p>
  
  <pre><code> &lt;root&gt;
    &lt;html&gt;
     &lt;table
      &lt;tr&gt; 
       &lt;td width="1%" height="20"&gt;&lt;/td&gt;
       &lt;td width="18%"&gt;Book Location &lt;/td&gt;
       &lt;td width="81%"&gt;Technology (Applied sciences) Circulation&lt;/td&gt;
      &lt;/tr&gt;
  </code></pre>
  
  <p>I'm trying below xslt to get the immediate node content in which node content of td is "Book Location ":</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
   &lt;xsl:stylesheet version="1.0"
   xmlns:marc="http://www.loc.gov/MARC21/slim"
   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
   xmlns:xsl="http://www.w3.org/1999/XSL/Transform"&gt;
   &lt;xsl:output method="text" indent="yes" /&gt;
  
   &lt;xsl:template match="root"&gt;
    &lt;xsl:for-each select="html"&gt;
    &lt;xsl:text&gt;START HERE&lt;/xsl:text&gt;
    &lt;xsl:text&gt;&amp;#13;&amp;#10;&lt;/xsl:text&gt;
    &lt;xsl:text&gt;=LDR  00000nam  2200000Ia 4500&lt;/xsl:text&gt;
    &lt;xsl:text&gt;&amp;#13;&amp;#10;&lt;/xsl:text&gt;
  
    &lt;xsl:if test="//*[text()='Book Location ']"&gt;
     &lt;xsl:text&gt;=952  \\$cLocation: &lt;/xsl:text&gt;
     &lt;xsl:value-of select="following-sibling" /&gt;
    &lt;/xsl:if&gt; 
  
    &lt;/xsl:for-each&gt;
  
    &lt;/xsl:template&gt;
   &lt;/xsl:stylesheet&gt;
  </code></pre>
  
  <p>I'm not sure what to put in this part:
       
  Or if there's a better way to do it? 
  Thanks in advance and have a nice day!</p>