You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by "Sivashankar Gnanasegaran (JIRA)" <xa...@xml.apache.org> on 2007/05/09 17:01:15 UTC
[jira] Created: (XALANJ-2383) Java extensions, access to external
java methods returning integer values doesnt seem to work fine in XSLs.
Java extensions, access to external java methods returning integer values doesnt seem to work fine in XSLs.
-----------------------------------------------------------------------------------------------------------
Key: XALANJ-2383
URL: https://issues.apache.org/jira/browse/XALANJ-2383
Project: XalanJ2
Issue Type: Bug
Components: Xalan-extensions
Affects Versions: 2.7
Environment: Windows XP SP2, JDK 1.4.2
Reporter: Sivashankar Gnanasegaran
Using java extensions, if any java class method returns not String values say an int, we get an error "Cannot find external method xxx.xxx.xxx (must be public)" and also the xsl file is not compiling.
This seems to be working fine in xalan version 2.6.0, and when we upgraded to version 2.7.0, found it to be not working.
code snapshot:
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:java="http://xml.apache.org/xalan/java" xmlns:MyString="xalan://java.lang.String" exclude-result-prefixes="java MyString">
<xsl:variable name="creditClassThreshold">0</xsl:variable>
<xsl:variable name="cs" select="MyString:new('XALAN')"/>
<xsl:variable name="result"><xsl:value-of select="MyString:compareToIgnoreCase($cs, $creditClassThreshold)"/></xsl:variable>
<xsl:template match="/.">
<response>
"><xsl:value-of select="$result"/>
</response>
</xsl:template>
</xsl:stylesheet>
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: xalan-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-dev-help@xml.apache.org