title: XSLT check if value contained in a array
body: <p>I'm having a template which should only match the element <code>PRA</code> if it contains a <code>&lt;PRA.3&gt;</code> having the value 101, 103 or 104. My input looks like this:</p>
  
  <pre><code>&lt;XML&gt;
     &lt;PRA&gt;
        &lt;PRA.3&gt;101&lt;/PRA.3&gt;
        &lt;PRA.6&gt;654&lt;/PRA.6&gt;
     &lt;/PRA&gt;
     &lt;PRA&gt;
        &lt;!-- does not match --&gt;
        &lt;PRA.3&gt;999&lt;/PRA.3&gt;
        &lt;PRA.6&gt;654&lt;/PRA.6&gt;
     &lt;/PRA&gt;      
  &lt;/XML&gt;
  </code></pre>
  
  <p>The XSLT which works well:</p>
  
  <pre><code>&lt;xsl:template match="PRA[PRA.3='101' or PRA.3='103' or PRA.3='104']"&gt;
     &lt;!-- does match if PRA.3 equals 101,103,104 --&gt;
  &lt;/xsl:template&gt;
  </code></pre>
  
  <p>This works well, but the values 101, 103 and 104 will appear in many more templates and can change.</p>
  
  <p><strong>Is it possible to add these values to a list and then make a contains?</strong>
  Here a sample code I'd like to use:</p>
  
  <pre><code>&lt;MYARRAY&gt;101,102,104&lt;/MYARRAY&gt;
  &lt;xsl:template match="PRA[MYARRAY.contains(PRA.3/text())]"&gt;
  
  &lt;/xsl:template&gt;
  </code></pre>