title: Regular Expressions in xsl:template match attribute
body: <p>I just want to know if it's possible to use regular expressions in the <code>match</code> attribute of the <code>xsl:template</code> element.
  For example, suppose I have the follow XML document:</p>
  
  <pre><code>&lt;greeting&gt;
      &lt;aaa&gt;Hello&lt;/aaa&gt;
      &lt;bbb&gt;Good&lt;/bbb&gt;
      &lt;ccc&gt;Excellent&lt;/ccc&gt;
      &lt;dddline&gt;Line&lt;/dddline&gt;
  &lt;/greeting&gt;
  </code></pre>
  
  <p>Now the XSLT to transform the above document:</p>
  
  <pre><code>&lt;xsl:stylesheet&gt;
  
      &lt;xsl:template match="/"&gt;
          &lt;xsl:apply-templates select="*"/&gt;
      &lt;/xsl:template&gt;
  
      &lt;xsl:template match="matches(node-name(*),'line')"&gt;
          &lt;xsl:value-of select="."/&gt;
      &lt;/xsl:template&gt;
  
  &lt;/xsl:stylesheet&gt;
  </code></pre>
  
  <p>When I try to use the syntax <code>matches(node-name(*),'line$')</code> in the <code>match</code> attribute of the <code>xsl:template</code> element, it retrieves a error message. Can I use regular expressions in the <code>match</code> attribute?</p>
  
  <p>Thanks very much</p>