title: Call Java instance methods in XSLT
body: <p>I am using Saxon (I could use Xalan if necessary) XSLT processor to do some transformation.
  I want to pass the instance of below object to the XSLT template as parameter.</p>
  
  <pre><code>public class Test {
     private String value;
  
     public Test(String v) {
         value = v;
     }
     //getters, setters etc.
  }
  </code></pre>
  
  <p>So I create this object, ie.</p>
  
  <pre><code>Test test = new Test("test");
  transformer.setParameter("test", test);
  </code></pre>
  
  <p>In XSLT file I declare the param as:</p>
  
  <pre><code>&lt;xsl:param name="test" required="yes" as="jt:com.whatever.package.Test" xmlns:jt="http://saxon.sf.net/java-type"/&gt;
  </code></pre>
  
  <p>Now my question is how can I call any instance method (ie. getValue() ) on this object within XSLT? Is it even possible? I know i can call static methods of different Java classes but thats not exactly what Im looking for.</p>
  
  <p>Also, is it possible to populate Java objects within XSLT, ie. call setter methods for instance of an object and then use this object with new values in Java code after the transformation is completed?</p>