I  am running Saxon version 7.6.5 Servlet example and utilizing the "matches()" function in my XSLT stylesheet. I receive the following error: "javax.xml.transform.TransformerException: Could not find function: matches" when running from the servlet. This same XSLT/XML document executes without error from the command line. All other XSLT/XML document without XSLT 2.0 features work fine from the servlet. I am new to Saxon and was hoping that someone could give me insight to this issue and a possible workaround. Does the servlet call  an XSLT processor that does not support XSLT 2.0?