diff options
author | Daniel Veillard <veillard@src.gnome.org> | 2001-02-08 11:16:41 +0000 |
---|---|---|
committer | Daniel Veillard <veillard@src.gnome.org> | 2001-02-08 11:16:41 +0000 |
commit | 443496a5d7ad1504ad5554f3a80d9539140fcb5c (patch) | |
tree | 1cd9a356c5592831467425f491fd15cb0ae58f8b /tests | |
parent | 8b47e572e390ca59d2b010adb833a237bc4e9db3 (diff) | |
download | libxslt-443496a5d7ad1504ad5554f3a80d9539140fcb5c.tar.gz libxslt-443496a5d7ad1504ad5554f3a80d9539140fcb5c.tar.bz2 libxslt-443496a5d7ad1504ad5554f3a80d9539140fcb5c.zip |
Added more support for keys, nearly complete:
- FEATURES libxslt/xsltInternals.h libxslt/pattern.c libxslt/keys.c:
added support for keys in patterns
- tests/REC/test-12.2-2.*: added a specific testcase
Daniel
Diffstat (limited to 'tests')
-rw-r--r-- | tests/REC/test-12.2-2.out | 7 | ||||
-rw-r--r-- | tests/REC/test-12.2-2.xml | 4 | ||||
-rw-r--r-- | tests/REC/test-12.2-2.xsl | 11 |
3 files changed, 22 insertions, 0 deletions
diff --git a/tests/REC/test-12.2-2.out b/tests/REC/test-12.2-2.out new file mode 100644 index 00000000..62ec6a48 --- /dev/null +++ b/tests/REC/test-12.2-2.out @@ -0,0 +1,7 @@ +<?xml version="1.0"?> + + +Success + + + diff --git a/tests/REC/test-12.2-2.xml b/tests/REC/test-12.2-2.xml new file mode 100644 index 00000000..b833b617 --- /dev/null +++ b/tests/REC/test-12.2-2.xml @@ -0,0 +1,4 @@ +<doc> + <div id="lookup"/> + <div id="unwanted"/> +</doc> diff --git a/tests/REC/test-12.2-2.xsl b/tests/REC/test-12.2-2.xsl new file mode 100644 index 00000000..68d1299c --- /dev/null +++ b/tests/REC/test-12.2-2.xsl @@ -0,0 +1,11 @@ +<xsl:stylesheet version="1.0" + xmlns:xsl="http://www.w3.org/1999/XSL/Transform" + xmlns:fo="http://www.w3.org/1999/XSL/Format"> + +<xsl:key name="idkey" match="div" use="@id"/> + +<xsl:template match="key('idkey','lookup')"> +Success +</xsl:template> + +</xsl:stylesheet> |