You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by bu...@apache.org on 2001/10/17 22:56:39 UTC

DO NOT REPLY [Bug 4249] New: - xsltc fails conf test position90,

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=4249>.
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=4249

xsltc fails conf test position90, <xsl:for-each select="chapter/descendant::footnote[6]">

           Summary: xsltc fails conf test position90, <xsl:for-each
                    select="chapter/descendant::footnote[6]">
           Product: XalanJ2
           Version: 2.0.0
          Platform: Sun
        OS/Version: Solaris
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: org.apache.xalan.xsltc
        AssignedTo: xalan-dev@xml.apache.org
        ReportedBy: tom.amiro@sun.com


Xsltc is not selecting the correct node (the 6th descendant footnote node) 
per the instruction 

  <xsl:for-each select="chapter/descendant::footnote[6]">

It should select the node whose value is "aloha".

Here's a test session showing the problem followed by the test files.

Running xalan on position90
<?xml version="1.0" encoding="utf-8"?>
<out><greeting>aloha</greeting>
</out>


Running XSLTC with Xerces Parser on position90
<?xml version="1.0" encoding="utf-8" ?>
<out/>

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

  <!-- FileName: position90 -->
  <!-- Document: http://www.w3.org/TR/xpath -->
  <!-- DocVersion: 19991116 -->
  <!-- Section: 3.3 -->
  <!-- Creator: David Marston, from remarks of Mukund Raghavachari (who read
Mike Kay) -->
  <!-- Purpose: Test () grouping with expanded version of // axis. This test
attempts to
     give an explicit representation of one possible fallacious interpretation
of
     chapter//footnote[6]. -->

<xsl:output method="xml" encoding="utf-8"/>

<xsl:template match="/">
  <out>
    <xsl:for-each select="chapter/descendant::footnote[6]">
      <greeting>
        <xsl:value-of select="."/>
      </greeting>
      <xsl:text>
</xsl:text>
    </xsl:for-each>
  </out>
</xsl:template>

</xsl:stylesheet>


position90.xml
--------------
<?xml version="1.0"?> 
<chapter>
   <section>
      <footnote>hello</footnote>
   </section>
   <section>
      <footnote>goodbye</footnote>
      <footnote>sayonara</footnote>
      <footnote>adios</footnote>
   </section>
   <footnote>auf wiedersehn</footnote>
   <section>
      <footnote>aloha</footnote>
      <subsection>
        <footnote>shalom</footnote>
        <footnote>yo</footnote>
      </subsection>
      <footnote>ciao</footnote>
   </section>
</chapter>