diff options
author | Nick Wellnhofer <wellnhofer@aevum.de> | 2010-11-08 10:42:33 +0100 |
---|---|---|
committer | Daniel Veillard <veillard@redhat.com> | 2010-11-08 10:42:33 +0100 |
commit | 2a697a5819f8b22fc7541aae82aacf8b70135a93 (patch) | |
tree | 0e5032d10f43580cdc2816aa2a6ebe0ddc72a77b /tests/general/bug-170.xsl | |
parent | 072a80a94b76b7397b742a0c2d9602be1b44f0d7 (diff) | |
download | libxslt-2a697a5819f8b22fc7541aae82aacf8b70135a93.tar.gz |
Fix direct pattern matching bug
and adds a test case for the problem,
also adding a .gitignore cleanup
Diffstat (limited to 'tests/general/bug-170.xsl')
-rw-r--r-- | tests/general/bug-170.xsl | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/general/bug-170.xsl b/tests/general/bug-170.xsl new file mode 100644 index 00000000..393bc4b5 --- /dev/null +++ b/tests/general/bug-170.xsl @@ -0,0 +1,6 @@ +<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> + <xsl:template match="a[@type='b']" > + <xsl:if test="position()"/> + </xsl:template> + <xsl:template match="a[@type='XX'][.]"/> +</xsl:stylesheet> |