The following issue has been updated:

    Updater: Brian Minchau (mailto:[EMAIL PROTECTED])
       Date: Sat, 4 Sep 2004 6:03 PM
    Changes:
             assignee changed from Yash Talwar
             description changed from 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 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.
             environment changed from Operating System: Windows XP
Platform: PC to Operating System: Windows XP
Platform: PC
             priority changed to Blocker
             Component changed to Xalan-interpretive transformation
             Component changed from Xalan
    ---------------------------------------------------------------------
For a full history of the issue, see:

  http://issues.apache.org/jira/browse/XALANJ-1922?page=history

---------------------------------------------------------------------
View the issue:
  http://issues.apache.org/jira/browse/XALANJ-1922

Here is an overview of the issue:
---------------------------------------------------------------------
        Key: XALANJ-1922
    Summary: Transformer Exception when using exslt function in a template with 
parameters
       Type: Bug

     Status: Unassigned
   Priority: Blocker

    Project: XalanJ2
 Components: 
             Xalan-interpretive transformation
   Versions:
             2.6

   Assignee: 
   Reporter: Mark Smithson

    Created: Sun, 15 Aug 2004 4:32 PM
    Updated: Sat, 4 Sep 2004 6:03 PM
Environment: Operating System: Windows XP
Platform: PC

Description:
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.


---------------------------------------------------------------------
JIRA INFORMATION:
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

If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to