title: Reflexive calls to Java methods are not available under Saxon-HE
body: <p>I am new to xslt and springboot. I have developed microservice using spring boot. I have xslt file as below.</p>
  
  <pre><code>&lt;?xml version="1.0"?&gt;
  &lt;xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:java="http://xml.apache.org/xslt/java"&gt;
      &lt;xsl:template match="//ProcessInput"&gt;
          &lt;xsl:variable name="dateTimeFmt" select="java:format(java:java.text.SimpleDateFormat.new ('yyyy-MM-ddHH:mm:ss'), java:java.util.Date.new())"/&gt;
          &lt;xsl:variable name="date" select="concat(substring($dateTimeFmt,1,10),'T',substring($dateTimeFmt,11))"/&gt;
          &lt;RMessage&gt;
              &lt;header&gt;
                  &lt;RMessageId&gt;
                      &lt;xsl:value-of select="IMD/@id"/&gt;
                  &lt;/RMessageId&gt;
                  &lt;RMessageSchemaVersion/&gt;
                  &lt;RSource&gt;ABC&lt;/RSource&gt;
                  &lt;RDestination&gt;XYZ&lt;/RDestination&gt;
                  &lt;RDateTimeSent&gt;
                      &lt;xsl:value-of select="$date"/&gt;
                  &lt;/RDateTimeSent&gt;
              &lt;/header&gt;
              &lt;body&gt;
                  &lt;xsl:copy-of select="IMD/node()"/&gt;
              &lt;/body&gt;
          &lt;/RMessage&gt;
      &lt;/xsl:template&gt;
  &lt;/xsl:stylesheet&gt;
  </code></pre>
  
  <p>I am getting Below error :</p>
  
  <pre><code>Error at char 98 in xsl:variable/@select on line 4 column 145 
    XTDE1425: Cannot find a 2-argument function named
    Q{http://xml.apache.org/xslt/java}format(). Reflexive calls to Java methods are not
    available under Saxon-HE
    in built-in template rule for /ProcessInput in the unnamed mode
  </code></pre>
  
  <p>And I have used below dependencies in my pom.xml</p>
  
  <pre><code>&lt;dependency&gt;
      &lt;groupId&gt;net.sf.saxon&lt;/groupId&gt;
      &lt;artifactId&gt;Saxon-HE&lt;/artifactId&gt;
      &lt;version&gt;9.9.0-2&lt;/version&gt;
  &lt;/dependency&gt;
  </code></pre>