Is this a bug or am I doing something wrong?  I think the xpath

  AAA[Title='foo']//BBB

has a match in

  <AAA>
      <Title>foo</Title>
      <AAA>
          <BBB/>
      </AAA>
  </AAA>

but according to xsltproc it doesn't. Here's the stylesheet I'm using to test it:

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

    <xsl:template match="AAA[Title='foo']//BBB">
      <xsl:message>got one</xsl:message>
    </xsl:template>

  </xsl:stylesheet>

Here's the output of xsltproc --version:

Using libxml 20617, libxslt 10112 and libexslt 810
xsltproc was compiled against libxml 20617, libxslt 10112 and libexslt 810
libxslt 10112 was compiled against libxml 20617
libexslt 810 was compiled against libxml 20617


Thanks -Aaron

_______________________________________________
xslt mailing list, project page http://xmlsoft.org/XSLT/
[email protected]
http://mail.gnome.org/mailman/listinfo/xslt

Reply via email to