[ http://issues.apache.org/jira/browse/XALANJ-2294?page=comments#action_12378690 ]
Henry Zongaro commented on XALANJ-2294: --------------------------------------- Patch for XALANJ-2295 includes a fix for this problem. > 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: XSLTC, DTM > Versions: Latest Development Code, 2.7 > Reporter: Henry Zongaro > Assignee: Henry Zongaro > 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]