title: Trying to select two elements with XSLT
body: <p>Hi I'm trying to show only the voorgerechten and hoofdgerechten. At the moment I'm outputting this:</p>
  
  <p><img src="https://i.stack.imgur.com/TvB3W.png" alt="enter image description here"></p>
  
  <p>Here is the xml code:</p>
  
  <pre><code>&lt;?xml version="1.0"?&gt;
  &lt;?xml-stylesheet href="menuFromattributeToElement.xslt" type="text/xsl"?&gt;
  &lt;menu&gt;
    &lt;voorgerechten&gt;
      &lt;gerecht id="1" prijs="3.95"&gt;Groene salade&lt;/gerecht&gt;
      &lt;gerecht id="2" prijs="4.35"&gt;Tomatensoep&lt;/gerecht&gt;
      &lt;gerecht id="3" prijs="9.95"&gt;Carpaccio&lt;/gerecht&gt;
    &lt;/voorgerechten&gt;
    &lt;hoofdgerechten&gt;
      &lt;gerecht id="4" prijs="19.95"&gt;Gegrilde ossehaas&lt;/gerecht&gt;
      &lt;gerecht id="5" prijs="15.95"&gt;Linguini al Pesto&lt;/gerecht&gt;
      &lt;gerecht id="6" prijs="18.95"&gt;Gepocheerde zalm&lt;/gerecht&gt;
    &lt;/hoofdgerechten&gt;
    &lt;desserts&gt;
      &lt;gerecht id="7" prijs="5.95"&gt;Dame Blanche&lt;/gerecht&gt;
      &lt;gerecht id="8" prijs="7.45"&gt;Banana Split&lt;/gerecht&gt;
    &lt;/desserts&gt;
  &lt;/menu&gt;
  </code></pre>
  
  <p>And here is the xslt code:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;xsl:stylesheet version="1.0"
      xmlns:xsl="http://www.w3.org/1999/XSL/Transform"&gt;
   &lt;xsl:output method="html"/&gt;
   &lt;xsl:template match="/"&gt;
     &lt;html&gt;
       &lt;body&gt;
       &lt;table border="1px"&gt;
         &lt;tr&gt;
           &lt;td colspan="6" align="center"&gt;
               &lt;h2&gt; Gerechten&lt;/h2&gt;
           &lt;/td&gt;
         &lt;/tr&gt;
         &lt;tr&gt;
           &lt;th&gt;Naam&lt;/th&gt;
           &lt;th&gt;Prijs&lt;/th&gt;
           &lt;th&gt;ID&lt;/th&gt; 
         &lt;/tr&gt;
         &lt;xsl:for-each select="//gerecht"&gt;
           &lt;tr&gt;
             &lt;td&gt;
               &lt;xsl:value-of select="text()"/&gt;
             &lt;/td&gt;
             &lt;td&gt;
               &lt;xsl:value-of select="translate(@prijs, '.', ',')"/&gt;
             &lt;/td&gt;
             &lt;td&gt;
               &lt;xsl:value-of select="@id"/&gt;
             &lt;/td&gt; 
           &lt;/tr&gt;
         &lt;/xsl:for-each&gt;
       &lt;/table&gt;
     &lt;/body&gt;
     &lt;/html&gt;
   &lt;/xsl:template&gt;
  &lt;/xsl:stylesheet&gt;
  </code></pre>
  
  <p>In the xslt file I have already tried to replace:</p>
  
  <pre><code>&lt;xsl:for-each select="//gerecht"&gt;
  </code></pre>
  
  <p>with this:</p>
  
  <pre><code>&lt;xsl:for-each select="//menu/voorgerechten/gerecht or //menu/hoofdgerechten/gerecht"&gt;
  </code></pre>
  
  <p>So that it only outputs gerecht that live inside a voorgerechten or hoofdgerecht. But unfortunately my code doesn't works.</p>