title: xalan validation java.lang.NoSuchMethodException: For extension function
body: <p>I try to validate data in my page. </p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:item="http://www.myspace.com/item"
      xmlns:shop="xalan://my.app.xslt.model.Shop" xmlns:valid="xalan://my.app.xslt.validation.ShopValidator"
      xmlns:exsl="http://exslt.org/common"&gt;
  </code></pre>
  
  <p>I have a model with field, and class validator with methods for checking every field. </p>
  
  <p>And in row </p>
  
  <pre><code>&lt;xsl:if test="valid:isNotEmptyData(shop:getOwner($item)) != true()"&gt;
              &lt;error message="The field OWNER is empty." /&gt;
          &lt;/xsl:if&gt;
  </code></pre>
  
  <p>I get NoSuchMethodExtension although I have in model</p>
  
  <pre><code>public class Shop{
    private String owner;
    public String getOwner(){
      return owner;
    }
  }
  </code></pre>
  
  <p>And in validator class</p>
  
  <pre><code>public static boolean isNotEmptyData(String model){
    retutn model.isEmpty();
  }
  </code></pre>
  
  <p>Can you help me?</p>