On 28/06/10 12:00, Syd Bauman wrote:
> When I give fop 0.95 an XSLT 2.0 stylesheet that calls the XPath
> matches() function on a SunOS[1] system running java 1.4[2] I get
> "javax.xml.transform.TransformerException: Could not find function:
> matches". The same version of fop executes the transform just fine on
> Mac OS X 10.6 (running java 1.6). The doc says java 1.4 is sufficient
> for fop.[3]

It looks like fop is using Xalan for XSLT processing and XPath support.

I'm guessing (and I do mean guessing) that your issue will come down to
different versions of Xalan, since matches() is added by xpath 2.0.

Xalan is bundled in 1.4.2-01 and up according to some quick searching.
So I suspect you're using an elderly version of Xalan from the old
JRE/JDK on the sun box that doesn't understand matches(). You might need
to override the bundled version of Xalan.

See: "Q. How do I override the JAXP implementation in JDK 1.4 and
above?" in : http://people.apache.org/~edwingo/jaxp-faq.html

--
Craig Ringer

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to