diff options
author | William M. Brack <wbrack@src.gnome.org> | 2004-08-28 04:00:26 +0000 |
---|---|---|
committer | William M. Brack <wbrack@src.gnome.org> | 2004-08-28 04:00:26 +0000 |
commit | ddbbcaf473ad105286c8ff35a5626c435483e7da (patch) | |
tree | b8373815832b623cd41b6c1ed06fbe400adcec75 /tests/general/bug-153.xsl | |
parent | 2709c26aa4a295036bb51930827df7309c396b09 (diff) | |
download | libxslt-ddbbcaf473ad105286c8ff35a5626c435483e7da.tar.gz libxslt-ddbbcaf473ad105286c8ff35a5626c435483e7da.tar.bz2 libxslt-ddbbcaf473ad105286c8ff35a5626c435483e7da.zip |
fixed small problem with key initialisation disturbing the transformation
* libxslt/keys.c: fixed small problem with key initialisation
disturbing the transformation context (bug 151201).
* tests/general/bug-153.*, tests/general/Makefile.am,
tests/docs/bug-153*, tests/docs/Makefile.am: added test case
for above
Diffstat (limited to 'tests/general/bug-153.xsl')
-rw-r--r-- | tests/general/bug-153.xsl | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/tests/general/bug-153.xsl b/tests/general/bug-153.xsl new file mode 100644 index 00000000..68b05324 --- /dev/null +++ b/tests/general/bug-153.xsl @@ -0,0 +1,19 @@ +<?xml version="1.0"?> + +<xsl:transform + version="1.0" + xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> + + <xsl:template match="cp"> + <xsl:apply-templates select="c"/> + </xsl:template> + + <xsl:template match="c"> + <p> + <xsl:value-of select="document('../docs/bug-153.doc')/ch/v[@name=current()/v]"/> + </p> + </xsl:template> + + <xsl:key name="k" match="u/p" use="un"/> + +</xsl:transform> |