A
Andrea Desole
I am trying to modify an XSLT transformation, using JDK 1.5. I have an
extension function that I should use for localization. When I try to run
the transformation I get the following error:
ERROR: 'Error checking type of the expression
'com.sun.org.apache.xalan.internal.xsltc.compiler.ApplyTemplates@16c006e'.'
FATAL ERROR: 'Could not compile stylesheet'
Apparently it's a bug in the JDK:
http://hatatap.pingdynasty.com/usage.html
However, this is what I found:
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6409233
(I would also like to know what's wrong with the Sun's search engine, by
the way: I searched for "Error checking type of the expression", with
quotes, and I got more than 212000 results, of which the second didn't
have the phrase already)
I'm not sure if this is exactly the same bug, but I tried also with
function-available, without success. I still get the same error.
Of the several versions of my xsl file I tried, this is the last one:
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:localizer="Localizer" version="1.0">
<xsl:choose>
<xsl:when test="function-available('localizer:localize')">
<xsl:apply-templates select="localizer:localize('test')"/>
available
</xsl:when>
<xsltherwise>
not available
</xsltherwise>
</xsl:choose>
</xsl:stylesheet>
I am definitely not an xml expert, so it's possible that I made a
mistake, but if it's a bug in the JDK 1.5 maybe someone knows something
Thanks
extension function that I should use for localization. When I try to run
the transformation I get the following error:
ERROR: 'Error checking type of the expression
'com.sun.org.apache.xalan.internal.xsltc.compiler.ApplyTemplates@16c006e'.'
FATAL ERROR: 'Could not compile stylesheet'
Apparently it's a bug in the JDK:
http://hatatap.pingdynasty.com/usage.html
However, this is what I found:
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6409233
(I would also like to know what's wrong with the Sun's search engine, by
the way: I searched for "Error checking type of the expression", with
quotes, and I got more than 212000 results, of which the second didn't
have the phrase already)
I'm not sure if this is exactly the same bug, but I tried also with
function-available, without success. I still get the same error.
Of the several versions of my xsl file I tried, this is the last one:
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:localizer="Localizer" version="1.0">
<xsl:choose>
<xsl:when test="function-available('localizer:localize')">
<xsl:apply-templates select="localizer:localize('test')"/>
available
</xsl:when>
<xsltherwise>
not available
</xsltherwise>
</xsl:choose>
</xsl:stylesheet>
I am definitely not an xml expert, so it's possible that I made a
mistake, but if it's a bug in the JDK 1.5 maybe someone knows something
Thanks