Error only on using xalan:evaluate - error Could not compile stylesheet
This is an open discussion with 3 replies, filed under XSLT.
Search
You could try using exslt
with the dyn
-prefix instead of xalan
e. g.
<?xml version="1.0" encoding="UTF-8"?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" extension-element-prefixes="dyn exslt" xmlns:exslt="http://exslt.org/common" xmlns:dyn="http://exslt.org/dynamic">
and in your templates:
<xsl:when test="dyn:evaluate(concat('/data/description/entry/text-', $lang, '/text()'))">
Hi Thank you for your support. I tried as you suggest but i am getting the below error.
ERROR: 'The first argument to the non-static Java function 'evaluate' is not a valid object reference.' FATAL ERROR: 'Could not compile stylesheet'
Error creating 16 template, will skip compile and use interpretive mode instead javax.xml.transform.TransformerConfigurationException: Could not compile stylesheet at org.apache.xalan.xsltc.trax.TransformerFactoryImpl.newTemplates(TransformerFactoryImpl.java:832) at org.apache.xalan.xsltc.trax.SmartTransformerFactoryImpl.newTemplates(SmartTransformerFactoryImpl.java:319)
gokulak, if you need help using XSLT with Java then you will have to look elsewhere. This forum is for Symphony CMS, a PHP-based content management system.
Create an account or sign in to comment.
XSL does not compile when and only I use xalan:evaluate.
Setting in system properties
XSLT snippet
ERROR LOG