You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by bu...@apache.org on 2004/08/15 18:32:30 UTC
DO NOT REPLY [Bug 30680] New: -
Transformer Exception when using exslt function in a template with parameters
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=30680>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=30680
Transformer Exception when using exslt function in a template with parameters
Summary: Transformer Exception when using exslt function in a
template with parameters
Product: XalanJ2
Version: 2.6
Platform: PC
OS/Version: Windows XP
Status: NEW
Severity: Normal
Priority: Other
Component: Xalan
AssignedTo: xalan-dev@xml.apache.org
ReportedBy: mark@digital-morphosis.com
When you run the stylesheet shown below, a
javax.xml.transform.TransformerException is thrown with the message "An EXSLT
function cannot set more than one result!".
When the xsl:param element is commented out or removed the stylesheet runs
normally.
I assume that this should work with parameters in the stylesheet, so am posting
this as a bug.
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"
xmlns:dm="http://dummy"
xmlns:func="http://exslt.org/functions"
extension-element-prefixes="dm func">
<xsl:param name="testing" select="'testing'"/>
<xsl:template match="/">
<result>
<xsl:value-of select="dm:test('call')"/>
</result>
</xsl:template>
<func:function name="dm:test">
<xsl:param name="value" select="''"/>
<func:result select="$value"/>
</func:function>
</xsl:stylesheet>
I am using the Sun J2SDK 1.4.2_04.
---------------------------------------------------------------------
To unsubscribe, e-mail: xalan-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-dev-help@xml.apache.org