DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=9136>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=9136

xsltc fails test of xsl:key with union in "use" attribute (idkey59)

           Summary: xsltc fails test of xsl:key with union in "use"
                    attribute (idkey59)
           Product: XalanJ2
           Version: CurrentCVS
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: org.apache.xalan.xsltc
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


Running xalan on idkey59
------------------------
<?xml version="1.0" encoding="UTF-8"?>
<out>
<h1>Coordinate 25 (4 hits, 3 sections):</h1>
<title>Introduction</title>
<title>Expressions</title>
<title>Numbers</title>
<h1>Coordinate 39 (1 hit):</h1>
<title>Introduction</title>
<h1>Coordinate 44 (2 hits, 2 sections):</h1>
<title>Expressions</title>
<title>Numbers</title>
<h1>Coordinate 75 (2 hits, 2 sections):</h1>
<title>Structure</title>
<title>Numbers</title>
</out>

Running XSLTC with Xerces Parser on idkey59
-------------------------------------------
<?xml version="1.0" encoding="UTF-8"?>
<out>
  <h1>Coordinate 25 (4 hits, 3 sections):</h1>
  <h1>Coordinate 39 (1 hit):</h1>
  <h1>Coordinate 44 (2 hits, 2 sections):</h1>
  <h1>Coordinate 75 (2 hits, 2 sections):</h1>
</out>

idkey59.xsl
-----------
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"; version="1.0">

  <!-- FileName: idkey59 -->
  <!-- Document: http://www.w3.org/TR/xslt -->
  <!-- DocVersion: 19991116 -->
  <!-- Section: 12.2 -->
  <!-- Creator: Frank Weiss -->
  <!-- Purpose: Test xsl:key with union in "use" attribute. -->

<xsl:output method="xml" encoding="UTF-8" indent="yes"/>

<xsl:key name="key1" match="div" use="x | y | z"/>

<xsl:template match="/">
  <out>
    <h1>Coordinate 25 (4 hits, 3 sections):</h1>
    <xsl:for-each select="key('key1', 25)">
      <title>
        <xsl:value-of select="title"/>
      </title>
    </xsl:for-each>
    <h1>Coordinate 39 (1 hit):</h1>
    <xsl:for-each select="key('key1', 39)">
      <title>
        <xsl:value-of select="title"/>
      </title>
    </xsl:for-each>
    <h1>Coordinate 44 (2 hits, 2 sections):</h1>
    <xsl:for-each select="key('key1', 44)">
      <title>
        <xsl:value-of select="title"/>
      </title>
    </xsl:for-each>
    <h1>Coordinate 75 (2 hits, 2 sections):</h1>
    <xsl:for-each select="key('key1', 75)">
      <title>
        <xsl:value-of select="title"/>
      </title>
    </xsl:for-each>
  </out>
</xsl:template>

</xsl:stylesheet>

idkey59.xml
-----------
<?xml version="1.0" encoding="UTF-8" ?>
<doc>
  <div>
    <title>Introduction</title>
        <x>25</x>
        <y>39</y>
        <z>25</z>
    <p>Intro Section</p>
        <q>1</q>
  </div>
  <div>
    <title>Structure</title>
        <x>14</x>
        <y>89</y>
        <z>75</z>
    <p>Struc Section</p>
        <q>2</q>
  </div>
  <div>
    <title>Expressions</title>
        <x>44</x>
        <y>25</y>
        <z>46</z>
    <p>Exp Section</p>
        <q>3</q>
  </div>
  <div>
    <title>Numbers</title>
        <x>25</x>
        <y>44</y>
        <z>75</z>
    <p>Num Section</p>
        <q>3.7</q>
  </div>
</doc>

Reply via email to