[xslt] Bug with nested tags of same type?
- From: Aaron Kaplan <Aaron Kaplan xrce xerox com>
- To: xslt gnome org
- Subject: [xslt] Bug with nested tags of same type?
- Date: Wed, 09 Mar 2005 16:07:21 +0100
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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]