You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by "George James (JIRA)" <xa...@xml.apache.org> on 2004/10/25 20:00:43 UTC

[jira] Created: (XALANJ-1981) multiple elements for the same index does not work

multiple <xsl:key> elements for the same index does not work
------------------------------------------------------------

         Key: XALANJ-1981
         URL: http://issues.apache.org/jira/browse/XALANJ-1981
     Project: XalanJ2
        Type: Bug
  Components: Xalan  
    Versions: 2.4    
 Environment: WinXP SP2

D:\gj\misc>java org.apache.xalan.xslt.EnvironmentCheck
#---- BEGIN writeEnvironmentReport($Revision: 1.14 $): Useful stuff found: ----
version.DOM.draftlevel=2.0fd
java.class.path=.
version.JAXP=1.1
java.ext.dirs=C:\Program Files\Java\j2re1.4.2_05\lib\ext
version.xerces2=not-present
version.xerces1=not-present
version.xalan2_2=Xalan Java 2.4.1
version.xalan1=not-present
version.ant=not-present
java.version=1.4.2_05
version.DOM=2.0
version.crimson=present-unknown-version
sun.boot.class.path=C:\Program Files\Java\j2re1.4.2_05\lib\rt.jar;C:\Program Fil
es\Java\j2re1.4.2_05\lib\i18n.jar;C:\Program Files\Java\j2re1.4.2_05\lib\sunrsas
ign.jar;C:\Program Files\Java\j2re1.4.2_05\lib\jsse.jar;C:\Program Files\Java\j2
re1.4.2_05\lib\jce.jar;C:\Program Files\Java\j2re1.4.2_05\lib\charsets.jar;C:\Pr
ogram Files\Java\j2re1.4.2_05\classes
version.SAX=2.0
version.xalan2x=Xalan Java 2.4.1
#----- END writeEnvironmentReport: Useful properties found: -----
# YAHOO! Your environment seems to be OK.

D:\gj\misc>
    Reporter: George James


If there are two <xsl:key> elements for the same index in a stylesheet, then xalan appears to ignore the second one.

eg:
<xsl:key name='foo' match='someElement' use='@name'/>
<xsl:key name='foo' match='someOtherElement' use='@name'/>

The key will only contain entries for someElement, not for someOtherElement.


-- 
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
-
If you want more information on JIRA, or have a bug to report 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-1981) multiple elements for the same index does not work

Posted by "David Marston (JIRA)" <xa...@xml.apache.org>.
     [ http://issues.apache.org/jira/browse/XALANJ-1981?page=comments#action_54625 ]
     
David Marston commented on XALANJ-1981:
---------------------------------------

Luckily for you, the example you gave can be
accomplished with one declaration:
<xsl:key name='foo'
match='someElement|someOtherElement'
use='@name'/> 

In general, it would be desirable to allow
multiple xsl:key declarations of the same name to
be merged, because then you can have
<xsl:key name='foo' match='x' use='@ex' />
<xsl:key name='foo' match='y' use='@why' />
and the @ex will only index the x elements, not the
y elements, while the @why will only index the y
elements. The spec allows this behavior.

> multiple <xsl:key> elements for the same index does not work
> ------------------------------------------------------------
>
>          Key: XALANJ-1981
>          URL: http://issues.apache.org/jira/browse/XALANJ-1981
>      Project: XalanJ2
>         Type: Bug
>   Components: Xalan
>     Versions: 2.4
>  Environment: WinXP SP2
> D:\gj\misc>java org.apache.xalan.xslt.EnvironmentCheck
> #---- BEGIN writeEnvironmentReport($Revision: 1.14 $): Useful stuff found: ----
> version.DOM.draftlevel=2.0fd
> java.class.path=.
> version.JAXP=1.1
> java.ext.dirs=C:\Program Files\Java\j2re1.4.2_05\lib\ext
> version.xerces2=not-present
> version.xerces1=not-present
> version.xalan2_2=Xalan Java 2.4.1
> version.xalan1=not-present
> version.ant=not-present
> java.version=1.4.2_05
> version.DOM=2.0
> version.crimson=present-unknown-version
> sun.boot.class.path=C:\Program Files\Java\j2re1.4.2_05\lib\rt.jar;C:\Program Fil
> es\Java\j2re1.4.2_05\lib\i18n.jar;C:\Program Files\Java\j2re1.4.2_05\lib\sunrsas
> ign.jar;C:\Program Files\Java\j2re1.4.2_05\lib\jsse.jar;C:\Program Files\Java\j2
> re1.4.2_05\lib\jce.jar;C:\Program Files\Java\j2re1.4.2_05\lib\charsets.jar;C:\Pr
> ogram Files\Java\j2re1.4.2_05\classes
> version.SAX=2.0
> version.xalan2x=Xalan Java 2.4.1
> #----- END writeEnvironmentReport: Useful properties found: -----
> # YAHOO! Your environment seems to be OK.
> D:\gj\misc>
>     Reporter: George James

>
> If there are two <xsl:key> elements for the same index in a stylesheet, then xalan appears to ignore the second one.
> eg:
> <xsl:key name='foo' match='someElement' use='@name'/>
> <xsl:key name='foo' match='someOtherElement' use='@name'/>
> The key will only contain entries for someElement, not for someOtherElement.

-- 
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
-
If you want more information on JIRA, or have a bug to report 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] Updated: (XALANJ-1981) multiple elements for the same index does not work

Posted by "Brian Minchau (JIRA)" <xa...@xml.apache.org>.
     [ http://issues.apache.org/jira/browse/XALANJ-1981?page=all ]

Brian Minchau updated XALANJ-1981:
----------------------------------

    Fix Version: 2.7

> multiple <xsl:key> elements for the same index does not work
> ------------------------------------------------------------
>
>          Key: XALANJ-1981
>          URL: http://issues.apache.org/jira/browse/XALANJ-1981
>      Project: XalanJ2
>         Type: Bug
>   Components: Xalan
>     Versions: 2.4
>  Environment: WinXP SP2
> D:\gj\misc>java org.apache.xalan.xslt.EnvironmentCheck
> #---- BEGIN writeEnvironmentReport($Revision: 1.14 $): Useful stuff found: ----
> version.DOM.draftlevel=2.0fd
> java.class.path=.
> version.JAXP=1.1
> java.ext.dirs=C:\Program Files\Java\j2re1.4.2_05\lib\ext
> version.xerces2=not-present
> version.xerces1=not-present
> version.xalan2_2=Xalan Java 2.4.1
> version.xalan1=not-present
> version.ant=not-present
> java.version=1.4.2_05
> version.DOM=2.0
> version.crimson=present-unknown-version
> sun.boot.class.path=C:\Program Files\Java\j2re1.4.2_05\lib\rt.jar;C:\Program Fil
> es\Java\j2re1.4.2_05\lib\i18n.jar;C:\Program Files\Java\j2re1.4.2_05\lib\sunrsas
> ign.jar;C:\Program Files\Java\j2re1.4.2_05\lib\jsse.jar;C:\Program Files\Java\j2
> re1.4.2_05\lib\jce.jar;C:\Program Files\Java\j2re1.4.2_05\lib\charsets.jar;C:\Pr
> ogram Files\Java\j2re1.4.2_05\classes
> version.SAX=2.0
> version.xalan2x=Xalan Java 2.4.1
> #----- END writeEnvironmentReport: Useful properties found: -----
> # YAHOO! Your environment seems to be OK.
> D:\gj\misc>
>     Reporter: George James
>      Fix For: 2.7

>
> If there are two <xsl:key> elements for the same index in a stylesheet, then xalan appears to ignore the second one.
> eg:
> <xsl:key name='foo' match='someElement' use='@name'/>
> <xsl:key name='foo' match='someOtherElement' use='@name'/>
> The key will only contain entries for someElement, not for someOtherElement.

-- 
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] Resolved: (XALANJ-1981) multiple elements for the same index does not work

Posted by "Henry Zongaro (JIRA)" <xa...@xml.apache.org>.
     [ http://issues.apache.org/jira/browse/XALANJ-1981?page=history ]
     
Henry Zongaro resolved XALANJ-1981:
-----------------------------------

    Resolution: Duplicate

This appears to be a duplicate of Jira bug 1956.

> multiple <xsl:key> elements for the same index does not work
> ------------------------------------------------------------
>
>          Key: XALANJ-1981
>          URL: http://issues.apache.org/jira/browse/XALANJ-1981
>      Project: XalanJ2
>         Type: Bug
>   Components: Xalan
>     Versions: 2.4
>  Environment: WinXP SP2
> D:\gj\misc>java org.apache.xalan.xslt.EnvironmentCheck
> #---- BEGIN writeEnvironmentReport($Revision: 1.14 $): Useful stuff found: ----
> version.DOM.draftlevel=2.0fd
> java.class.path=.
> version.JAXP=1.1
> java.ext.dirs=C:\Program Files\Java\j2re1.4.2_05\lib\ext
> version.xerces2=not-present
> version.xerces1=not-present
> version.xalan2_2=Xalan Java 2.4.1
> version.xalan1=not-present
> version.ant=not-present
> java.version=1.4.2_05
> version.DOM=2.0
> version.crimson=present-unknown-version
> sun.boot.class.path=C:\Program Files\Java\j2re1.4.2_05\lib\rt.jar;C:\Program Fil
> es\Java\j2re1.4.2_05\lib\i18n.jar;C:\Program Files\Java\j2re1.4.2_05\lib\sunrsas
> ign.jar;C:\Program Files\Java\j2re1.4.2_05\lib\jsse.jar;C:\Program Files\Java\j2
> re1.4.2_05\lib\jce.jar;C:\Program Files\Java\j2re1.4.2_05\lib\charsets.jar;C:\Pr
> ogram Files\Java\j2re1.4.2_05\classes
> version.SAX=2.0
> version.xalan2x=Xalan Java 2.4.1
> #----- END writeEnvironmentReport: Useful properties found: -----
> # YAHOO! Your environment seems to be OK.
> D:\gj\misc>
>     Reporter: George James

>
> If there are two <xsl:key> elements for the same index in a stylesheet, then xalan appears to ignore the second one.
> eg:
> <xsl:key name='foo' match='someElement' use='@name'/>
> <xsl:key name='foo' match='someOtherElement' use='@name'/>
> The key will only contain entries for someElement, not for someOtherElement.

-- 
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
-
If you want more information on JIRA, or have a bug to report 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