You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by "Henry Zongaro (JIRA)" <xa...@xml.apache.org> on 2007/02/08 23:00:08 UTC

[jira] Commented: (XALANJ-2339) XSLTC: name()-function doesnt work properly with test-statement before

    [ https://issues.apache.org/jira/browse/XALANJ-2339?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12471499 ] 

Henry Zongaro commented on XALANJ-2339:
---------------------------------------

I have reviewed Kevin's patch, and I believe that it safely resolves the problem.  We might need a thorough review of XSLTC code to ensure that it's applying a consistent policy to its uses of parameters so that it's performing neither too few nor too many clone and reset operations.

> XSLTC: name()-function doesnt work properly with test-statement before
> ----------------------------------------------------------------------
>
>                 Key: XALANJ-2339
>                 URL: https://issues.apache.org/jira/browse/XALANJ-2339
>             Project: XalanJ2
>          Issue Type: Bug
>          Components: XPath-function, XSLTC
>    Affects Versions: 2.7
>         Environment: JDK 1.4
>            Reporter: Daniel Reuter
>         Assigned To: Henry Zongaro
>         Attachments: 2339.xsl, j2339.patch
>
>
> XML:
> <?xml version="1.0" encoding="UTF-8"?>
> <test>
>    <sub>
>       <value>test</value>
>    </sub>
> <test>
> XSL:
> <xsl:template match="test">
>    <xsl:call-template name="subtemplate">
>       <xsl:with-param name="nodeSet" select="sub"/>
>    </xsl:call-template>
> </xsl:template>
> <xsl:template name="subtemplate">
>    <xsl:param name="nodeSet"/>
>       <xsl:if test="$nodeSet">
>          Name=<xsl:value-of select="name($nodeSet)"/>		
>       </xsl:if>			
> </xsl:template>
> The name()-function in the "subtemplate" doesnt work properly. Without the former test-statement, the function writes the correct name of the node ("sub"). The Bug only appears with XSLTC activated.

-- 
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