Error when trying to access Java class from XSL stylesheet
Posted: Thu Mar 13, 2008 5:53 pm
Hi,
I have a custom Java class declared like this in an XSL stylesheet:
I then try to call a static method in that class:
However, when I execute the style sheet, I get this error:
Thanks,
Padraig.
I have a custom Java class declared like this in an XSL stylesheet:
Code: Select all
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"
xmlns:xalan="http://xml.apache.org/xalan"
xmlns:java="http://xml.apache.org/xslt/java"
xmlns:convertor="QuestionSequenceOrderXSLUtility"
extension-element-prefixes="convertor">
<xalan:component prefix="convertor" functions="generateSequence">
<xalan:script lang="javaclass" src="xalan://tools.upgradehelper.ieg.QuestionSequenceOrderXSLUtility" />
</xalan:component>
Code: Select all
<xsl:element name="attribute">
<xsl:attribute name="name">iegSequenceOrder</xsl:attribute>
<xsl:value-of select="convertor:generateSequence(../attribute[translate(@name,'abcdefghijklmnopqrstuvwxyz','ABCDEFGHIJKLMNOPQRSTUVWXYZ')="questionnaireVersionID"]/value)"/>
</xsl:element>
Now, the path above is correct and the class sits where it should be, etc. Is there a way in Oxygen to specify a classpath or something similar?Description: The URI QuestionSequenceOrderXSLUtility does not identify an external Java class
Thanks,
Padraig.