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

regression on axes13 axes14 tests for ancestor::*[...][...]

[EMAIL PROTECTED] changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|FIXED                       |



------- Additional Comments From [EMAIL PROTECTED]  2001-10-03 08:32 -------
axes14 now passes but 13 fails:

Running xalan on axes13
<?xml version="1.0" encoding="UTF-8"?>
<out>doc/foo/baz/is new
doc/foo/baz/is new but has text
doc/foo/baz/is not new
</out>


Running XSLTC with Xerces Parser on axes13
<?xml version="1.0" encoding="utf-8" ?>
<out>baz/foo/doc/is new
/foo/doc/xyz
baz/foo/doc/is new but has text
baz/foo/doc/is not new
</out>

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

  <!-- FileName: AXES13 -->
  <!-- Document: http://www.w3.org/TR/xpath -->
  <!-- DocVersion: 19991116 -->
  <!-- Section: 2.2 -->
  <!-- Purpose: Test for ancestor::*[...][...] and index of ancestors. -->

<xsl:template match="/">
  <out>
    <xsl:apply-templates/>
  </out>
</xsl:template>

<xsl:template match="text()">
  <xsl:choose>
    <xsl:when test="ancestor::*[@new='true'][not(text())]">
      <xsl:value-of select="name(ancestor::*[3])"/><xsl:text>/</xsl:text>
      <xsl:value-of select="name(ancestor::*[2])"/><xsl:text>/</xsl:text>
      <xsl:value-of select="name(ancestor::*[1])"/><xsl:text>/</xsl:text>
      <xsl:value-of select="."/><xsl:text>&#010;</xsl:text>
    </xsl:when>
    <xsl:when test="ancestor::*[2][@new]">
      <xsl:value-of select="name(ancestor::*[3])"/><xsl:text>/</xsl:text>
      <xsl:value-of select="name(ancestor::*[2])"/><xsl:text>/</xsl:text>
      <xsl:value-of select="name(ancestor::*[1])"/><xsl:text>/</xsl:text>
      <xsl:value-of select="."/><xsl:text>&#010;</xsl:text>
    </xsl:when>
    <xsl:otherwise>
    </xsl:otherwise>
  </xsl:choose>
</xsl:template>

</xsl:stylesheet>

XML
---
<?xml version="1.0"?> 
<doc>
  <foo new="true"><baz>is new</baz></foo>
  <foo new="true">xyz<baz>is new but has text</baz></foo>
  <foo new="false"><baz>is not new</baz></foo>
</doc>

Reply via email to