title: error on declaring and using function on xsl
body: <p>just trying to create and use an XSL function which display the content of the node if any or a dash if empty.</p>
  
  <p>Here is some parts of the file : </p>
  
  <pre><code>&lt;xsl:stylesheet version="2.0" 
    xmlns:xs="http://www.w3.org/2001/XMLSchema"
    xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
    xmlns:fn="http://www.w3.org/2005/xpath-functions"
    xmlns:qes="http://www.qwamci.com"&gt;
  
    &lt;xsl:function name="qes:textOrDash" as="xs:string"&gt;
      &lt;xsl:param name="mynode" /&gt;
      &lt;xsl:sequence select="if (fn:compare(translate($mynode, ' ', ''), '')=0) then '-' else $mynode" /&gt;
    &lt;/xsl:function&gt;
  
    &lt;xsl:template match="Response"&gt;
      &lt;xsl:value-of select="qes:textOrDash(./SOME/OTHER/XPATH/TO/NODE)" /&gt;
    &lt;/xsl:template&gt;
  
  &lt;/xsl:stylesheet&gt;
  </code></pre>
  
  <p>The error : </p>
  
  <pre><code>Erreur:java.lang.NoSuchMethodException: For extension function, could not find method org.apache.xml.utils.NodeVector.textOrDash([ExpressionContext,] ).
  </code></pre>
  
  <p>Some idea?</p>