You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by "Tristan Mitchell (JIRA)" <xa...@xml.apache.org> on 2007/02/09 17:20:05 UTC

[jira] Created: (XALANJ-2364) Incorrect evaluation of XPath statements with more than one predicate

Incorrect evaluation of XPath statements with more than one predicate
---------------------------------------------------------------------

                 Key: XALANJ-2364
                 URL: https://issues.apache.org/jira/browse/XALANJ-2364
             Project: XalanJ2
          Issue Type: Bug
          Components: XSLTC
    Affects Versions: 2.7
            Reporter: Tristan Mitchell


Input XML:

<root/>

Stylesheet:

<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
  <xsl:template match="root"/>
  
  <xsl:template match="*[not(self::foo)][@bar]">
    <xsl:copy>
      <xsl:apply-templates select="@* | node()"/>
    </xsl:copy>
  </xsl:template>
</xsl:stylesheet>

This should not output the element <root/> but seems to evaluating the XPath on the second template without including the second
predicate, [@bar]. I have also produced the same incorrect result using other expressions, for example match="*[not(self::foo)][not(self::root)]"

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: xalan-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-dev-help@xml.apache.org