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 21:24:52 UTC

DO NOT REPLY [Bug 4242] New: - xsltc fails predicate11 on select="a[following-sibling::*=descendant::*]"

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

xsltc fails predicate11 on select="a[following-sibling::*=descendant::*]"

           Summary: xsltc fails predicate11 on select="a[following-
                    sibling::*=descendant::*]"
           Product: XalanJ2
           Version: 2.0.0
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Major
          Priority: Other
         Component: org.apache.xalan.xsltc
        AssignedTo: xalan-dev@xml.apache.org
        ReportedBy: tom.amiro@sun.com


XSLTC is not selecting the node that meets the conditions specified
by the predicate [following-sibling::*=descendant::*]"

Running xalan on predicate11
<?xml version="1.0" encoding="UTF-8"?>
<out>2
    target
  </out>


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

predicate11.xsl
---------------
<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">

  <!-- FileName: PREDICATE11 -->
  <!-- Document: http://www.w3.org/TR/xpath -->
  <!-- DocVersion: 19991116 -->
  <!-- Section: 3.4 -->
  <!-- Creator: David Marston -->
  <!-- Purpose: Test of comparison of 2 node-sets. -->

<xsl:template match="doc">
  <out>
    <xsl:value-of select="a[following-sibling::*=descendant::*]"/>
    <!-- True only when the node has both a descendant and a following sibling
containing "target". -->
  </out>
</xsl:template>

</xsl:stylesheet>

predicate11.xml
---------------
<?xml version="1.0"?> 
<doc>
  <a>1</a>
  <a>2
    <achild>target</achild>
  </a>
  <a>3</a>
  <a>target</a>
</doc>