[ http://issues.apache.org/jira/browse/XALANJ-1922?page=all ]
Brian Minchau updated XALANJ-1922:
----------------------------------
Fix Version: 2.7
> Transformer Exception when using exslt function in a template with parameters
> -----------------------------------------------------------------------------
>
> Key: XALANJ-1922
> URL: http://issues.apache.org/jira/browse/XALANJ-1922
> Project: XalanJ2
> Type: Bug
> Components: transformation, Xalan-interpretive
> Versions: 2.6
> Environment: Operating System: Windows XP
> Platform: PC
> Reporter: Mark Smithson
> Fix For: 2.7
>
> 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.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]