You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by "Daniel Reuter (JIRA)" <xa...@xml.apache.org> on 2006/11/16 13:32:37 UTC

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

XSLTC: name()-function doesnt work properly with test-statement before
----------------------------------------------------------------------

                 Key: XALANJ-2339
                 URL: http://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


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.
-
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: xalan-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-dev-help@xml.apache.org


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

Posted by "Henry Zongaro (JIRA)" <xa...@xml.apache.org>.
    [ http://issues.apache.org/jira/browse/XALANJ-2339?page=comments#action_12451318 ] 
            
Henry Zongaro commented on XALANJ-2339:
---------------------------------------

It looks like XSLTC is inconsistent in its treatment of node set iterators (DTMAxisIterator).  In cases where there is a reference to a variable whose value is a node set, the generated code will invoke the cloneIterator() method on the variable, and use that for the variable reference.

However, a parameter's type is not generally known statically, and XSLTC generates references to methods defined in BasisLibrary which sometimes use the original iterator (performing a reset() operation first) and sometimes clone the iterator (without performing reset() first).  In particular, BasisLibrary.booleanF (which implements the boolean function for references to parameters) uses the iterator directly by first resetting it, and then checking whether it returns at least one node.  The BasisLibrary.referenceToNodeSet method (which casts a parameter to an iterator, and reports an error if the parameter is of the wrong type) on the other hand, which is used to convert the parameter to a node set for the call to the name function, clones the iterator for the parameter and returns that.  However, the clone operation clones the original iterator's state.  In the case of the parameter, its iterator has been advanced past the first element through the operation of BasisLibrary.booleanF, and so the name() function has no node left to operate upon.

> XSLTC: name()-function doesnt work properly with test-statement before
> ----------------------------------------------------------------------
>
>                 Key: XALANJ-2339
>                 URL: http://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
>
> 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.
-
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: xalan-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-dev-help@xml.apache.org


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

Posted by "Brian Minchau (JIRA)" <xa...@xml.apache.org>.
    [ http://issues.apache.org/jira/browse/XALANJ-2339?page=comments#action_12457550 ] 
            
Brian Minchau commented on XALANJ-2339:
---------------------------------------

>From the Xalan-J JIRA triage on December 11, 2006:
       > Kevin Cormier agreed to try to fix this one, probably in the January
       > time frame.

> XSLTC: name()-function doesnt work properly with test-statement before
> ----------------------------------------------------------------------
>
>                 Key: XALANJ-2339
>                 URL: http://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
>         Attachments: 2339.xsl
>
>
> 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.
-
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: xalan-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-dev-help@xml.apache.org


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

Posted by "Henry Zongaro (JIRA)" <xa...@xml.apache.org>.
    [ https://issues.apache.org/jira/browse/XALANJ-2339?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12551521 ] 

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

You might be able to click on "Close issue."  In any event, I'll do that on your behalf.

> 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
>            Assignee: Kevin Cormier
>             Fix For: 2.7.1
>
>         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


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

Posted by "Henry Zongaro (JIRA)" <xa...@xml.apache.org>.
     [ https://issues.apache.org/jira/browse/XALANJ-2339?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Henry Zongaro closed XALANJ-2339.
---------------------------------


Closing issue now that Daniel has verified that it's fixed.

> 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
>            Assignee: Kevin Cormier
>             Fix For: 2.7.1
>
>         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


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

Posted by "Daniel Reuter (JIRA)" <xa...@xml.apache.org>.
    [ https://issues.apache.org/jira/browse/XALANJ-2339?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12551460 ] 

Daniel Reuter commented on XALANJ-2339:
---------------------------------------

The issue is fixed in the 2.7.1 release! 

Sorry, i'm new to this bugtracking system. Can i set a state like "verified" or is this comment enough?

> 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
>            Assignee: Kevin Cormier
>             Fix For: 2.7.1
>
>         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


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

Posted by "Daniel Reuter (JIRA)" <xa...@xml.apache.org>.
    [ https://issues.apache.org/jira/browse/XALANJ-2339?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12464170 ] 

Daniel Reuter commented on XALANJ-2339:
---------------------------------------

Works great!

Thanks!

> 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
>         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.
-
If you think it was sent incorrectly contact one of the administrators: https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: xalan-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-dev-help@xml.apache.org


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

Posted by "Henry Zongaro (JIRA)" <xa...@xml.apache.org>.
    [ http://issues.apache.org/jira/browse/XALANJ-2339?page=comments#action_12451319 ] 
            
Henry Zongaro commented on XALANJ-2339:
---------------------------------------

Daniel, you've pasted your test case directly into the bug report.  Would you be willing to allow your test to be included into Xalan's XSLT test suite?  If so, please submit the test case as an attachment to the bug report, and click the radio button marked "Grant license to ASF for inclusion in ASF works (as per the Apache Software License ยง5)."

> XSLTC: name()-function doesnt work properly with test-statement before
> ----------------------------------------------------------------------
>
>                 Key: XALANJ-2339
>                 URL: http://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
>
> 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.
-
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: xalan-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-dev-help@xml.apache.org


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

Posted by "Henry Zongaro (JIRA)" <xa...@xml.apache.org>.
    [ 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


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

Posted by "Kevin Cormier (JIRA)" <xa...@xml.apache.org>.
    [ https://issues.apache.org/jira/browse/XALANJ-2339?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12462280 ] 

Kevin Cormier commented on XALANJ-2339:
---------------------------------------

I've attached a patch which fixes the problem.  I changed the BasisLibrary.referenceToNodeSet method so that it resets the iterator after cloning.  I think this was likely the intention.

In debugging this issue, I noticed that in ParameterRef.java, there is a comment on line 103, "// The method cloneIterator() also does resetting."  This is not true, so I wonder if that code may be causing problems as well.  It is not executed when compiling the example for this issue.

> 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
>         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.
-
If you think it was sent incorrectly contact one of the administrators: https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: xalan-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-dev-help@xml.apache.org


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

Posted by "Henry Zongaro (JIRA)" <xa...@xml.apache.org>.
     [ https://issues.apache.org/jira/browse/XALANJ-2339?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Henry Zongaro resolved XALANJ-2339.
-----------------------------------

       Resolution: Fixed
    Fix Version/s: The Latest Development Code
         Assignee: Kevin Cormier  (was: Henry Zongaro)

Applied Kevin's patch to Subversion repository.

> 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: Kevin Cormier
>             Fix For: The Latest Development Code
>
>         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


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

Posted by "Brian Minchau (JIRA)" <xa...@xml.apache.org>.
     [ https://issues.apache.org/jira/browse/XALANJ-2339?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Brian Minchau reassigned XALANJ-2339:
-------------------------------------

    Assignee: Henry Zongaro

> 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