title: Need to create a function with argument in XSLT 1.0
body: <p>Need small help in creating a function with parameter and that can be used in my template. Tried many things but nothing worked out. Below is my sample code :</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" 
      version="1.0"
      xmlns:math="http://exslt.org/math"
      xmlns:func="http://exslt.org/functions"
      xmlns:my="http://exslt.org/my"
      exclude-result-prefixes="my"
      extension-element-prefixes="my math func"&gt;
      &lt;xsl:output indent="yes" method="xml" /&gt;
  
      
      &lt;xsl:variable name="functionTest11"&gt; 
        &lt;xsl:value-of select="my:calXY('aa')" /&gt;
      &lt;/xsl:variable&gt;
   
      &lt;xsl:template match="/"&gt;
  
          &lt;svg xmlns="http://www.w3.org/2000/svg"&gt;
              &lt;xsl:variable name="functionTest22"&gt; 
                  &lt;xsl:value-of select="my:calXY" /&gt;
              &lt;/xsl:variable&gt;
              &lt;xsl:comment&gt;functionTest &lt;xsl:copy-of
                select="$functionTest22" /&gt;&lt;/xsl:comment&gt;
          &lt;/svg&gt;
  
      &lt;/xsl:template&gt;
   
   &lt;func:function name="my:calXY"&gt;
          &lt;xsl:comment&gt;functionHello &lt;/xsl:comment&gt;
          &lt;xsl:param name="string1" select="''"/&gt;
          &lt;func:result&gt;
              &lt;xsl:value-of select="concat(10,'|',10)" /&gt;
          &lt;/func:result&gt;
      &lt;/func:function&gt;
  &lt;/xsl:stylesheet&gt;</code></pre>
  </div>
  </div>
  </p>