[ http://issues.apache.org/jira/browse/XALANJ-1499?page=all ]
Brian Minchau updated XALANJ-1499:
----------------------------------
Version: 2.5Dx
(was: Latest Development Code)
> ROOTNODE problems in XSLTC DTM MultiDOM
> ---------------------------------------
>
> Key: XALANJ-1499
> URL: http://issues.apache.org/jira/browse/XALANJ-1499
> Project: XalanJ2
> Type: Bug
> Components: DTM
> Versions: 2.5Dx
> Environment: Operating System: Other
> Platform: Other
> Reporter: Igor Hersht
> Assignee: Xalan Developers Mailing List
>
> We use static final DTMDefaultBase.ROOTNODE =0
> The ROOTNODE is the root-node of main dom.
> Root nodes of other DOMs are different, but we
> Always use the same value for them (DTMDefaultBase.ROOTNODE).
> We should use different values for different root-nodes.
> This work could be really time consuming.
> A couple of examples
> xml file
> <book> </book>
> test1.xsl
> <?xml version='1.0'?>
> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
> version='1.0'>
> <xsl:template match="book">
> <xsl:for-each select="document('')">
> <xsl:value-of select="generate-id(//book)"/>
> </xsl:for-each>
> <xsl:for-each select="//book">
> <xsl:value-of select="generate-id(//book)"/>
> </xsl:for-each>
> </xsl:template>
> </xsl:stylesheet>
> test2.xsl
> <?xml version="1.0"?>
> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
> version="1.0">
> <xsl:key name="k1" match="book" use="'foo'"/>
> <xsl:template match="*">
> <xsl:copy-of select="key('k1','foo' )"/><xsl:text>,</xsl:text>
> <xsl:for-each select="document('')">
> <xsl:copy-of select="key('k1','foo' )"/>
> </xsl:for-each>
> </xsl:template>
> </xsl:stylesheet>
--
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]