[ 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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]