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 2006/06/07 22:30:33 UTC

[jira] Resolved: (XALANJ-2294) XSLTC does not handle the key or id functions correctly when multiple input documents are involved

     [ http://issues.apache.org/jira/browse/XALANJ-2294?page=all ]
     
Henry Zongaro resolved XALANJ-2294:
-----------------------------------

    Fix Version: Latest Development Code
     Resolution: Fixed

Applied patch attached to XALANJ-2295 to source repository.

> XSLTC does not handle the key or id functions correctly when multiple input documents are involved
> --------------------------------------------------------------------------------------------------
>
>          Key: XALANJ-2294
>          URL: http://issues.apache.org/jira/browse/XALANJ-2294
>      Project: XalanJ2
>         Type: Bug

>   Components: DTM, XSLTC
>     Versions: 2.7, Latest Development Code
>     Reporter: Henry Zongaro
>     Assignee: Henry Zongaro
>      Fix For: Latest Development Code
>  Attachments: j2294.out, j2294.xml, j2294.xsl, j2294a.xml, j2294b.xml
>
> The implementation of the key and id functions in XSLTC assumes that there is only one input document.  When more than one input document is involved, the functions should return nodes only in the same document as the context node.  However, XSLTC ends up to put all the matching nodes with a particular key value or all the nodes with the same ID value in the same table, regardless of the source document.  The table entries are DTM node identifiers, rather than node handles, so it's not possible to tell which document they actually came from.  When either function is evaluated, it will treat all the node identifiers as if they represented nodes in the same document as the context node, so they might return seemingly random nodes or even produce an ArrayIndexOutOfBoundsException.

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