diff options
author | Daniel Veillard <veillard@src.gnome.org> | 2004-02-26 13:54:35 +0000 |
---|---|---|
committer | Daniel Veillard <veillard@src.gnome.org> | 2004-02-26 13:54:35 +0000 |
commit | 2fd968f166d5918054b317ce4ad0c1ee2761cb0c (patch) | |
tree | 639a5923c7a1efc27f37f56d6a937715ca7dab14 | |
parent | 35184c89089ecdbdc202cd24ba30db9b082601aa (diff) | |
download | libxslt-2fd968f166d5918054b317ce4ad0c1ee2761cb0c.tar.gz libxslt-2fd968f166d5918054b317ce4ad0c1ee2761cb0c.tar.bz2 libxslt-2fd968f166d5918054b317ce4ad0c1ee2761cb0c.zip |
added test similar to 143 but checking for AVT in local variables. Daniel
* tests/docs/Makefile.am tests/docs/bug-144.xml
tests/general/Makefile.am tests/docs/bug-144*: added test
similar to 143 but checking for AVT in local variables.
Daniel
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | doc/libxslt-api.xml | 3 | ||||
-rw-r--r-- | doc/libxslt-refs.xml | 5 | ||||
-rw-r--r-- | tests/docs/Makefile.am | 1 | ||||
-rw-r--r-- | tests/docs/bug-144.xml | 1 | ||||
-rw-r--r-- | tests/general/Makefile.am | 1 | ||||
-rw-r--r-- | tests/general/bug-144.out | 2 | ||||
-rw-r--r-- | tests/general/bug-144.xsl | 10 |
8 files changed, 29 insertions, 0 deletions
@@ -1,3 +1,9 @@ +Thu Feb 26 14:53:16 CET 2004 Daniel Veillard <daniel@veillard.com> + + * tests/docs/Makefile.am tests/docs/bug-144.xml + tests/general/Makefile.am tests/docs/bug-144*: added test + similar to 143 but checking for AVT in local variables. + Thu Feb 26 13:16:33 CET 2004 Daniel Veillard <daniel@veillard.com> * libxslt/attrvt.c libxslt/variables.c: fixed a regression for diff --git a/doc/libxslt-api.xml b/doc/libxslt-api.xml index 422280e8..5dd1dba3 100644 --- a/doc/libxslt-api.xml +++ b/doc/libxslt-api.xml @@ -113,6 +113,7 @@ <summary>interface for the key matching used in key() and template matches.</summary> <description>implementation of the key mechanims. </description> <author>Daniel Veillard </author> + <exports symbol='NODE_IS_KEYED' type='macro'/> <exports symbol='xsltInitCtxtKeys' type='function'/> <exports symbol='xsltFreeKeys' type='function'/> <exports symbol='xsltGetKey' type='function'/> @@ -493,6 +494,8 @@ </macro> <macro name='LIBXSLT_PUBLIC' file='xsltexports'> </macro> + <macro name='NODE_IS_KEYED' file='keys'> + </macro> <macro name='XSLTCALL' file='xsltexports'> </macro> <macro name='XSLTPUBFUN' file='xsltexports'> diff --git a/doc/libxslt-refs.xml b/doc/libxslt-refs.xml index 26d24eb8..e9ff82c6 100644 --- a/doc/libxslt-refs.xml +++ b/doc/libxslt-refs.xml @@ -8,6 +8,7 @@ <reference name='IS_XSLT_NAME' href='html/libxslt-xsltutils.html#IS_XSLT_NAME'/> <reference name='IS_XSLT_REAL_NODE' href='html/libxslt-xsltutils.html#IS_XSLT_REAL_NODE'/> <reference name='LIBXSLT_PUBLIC' href='html/libxslt-xsltexports.html#LIBXSLT_PUBLIC'/> + <reference name='NODE_IS_KEYED' href='html/libxslt-keys.html#NODE_IS_KEYED'/> <reference name='XSLTCALL' href='html/libxslt-xsltexports.html#XSLTCALL'/> <reference name='XSLTPUBFUN' href='html/libxslt-xsltexports.html#XSLTPUBFUN'/> <reference name='XSLTPUBVAR' href='html/libxslt-xsltexports.html#XSLTPUBVAR'/> @@ -391,6 +392,9 @@ <letter name='L'> <ref name='LIBXSLT_PUBLIC'/> </letter> + <letter name='N'> + <ref name='NODE_IS_KEYED'/> + </letter> <letter name='X'> <ref name='XSLTCALL'/> <ref name='XSLTPUBFUN'/> @@ -1545,6 +1549,7 @@ <ref name='xsltParseStylesheetInclude'/> </file> <file name='keys'> + <ref name='NODE_IS_KEYED'/> <ref name='xsltAddKey'/> <ref name='xsltFreeDocumentKeys'/> <ref name='xsltFreeKeys'/> diff --git a/tests/docs/Makefile.am b/tests/docs/Makefile.am index 8a328668..04f555ff 100644 --- a/tests/docs/Makefile.am +++ b/tests/docs/Makefile.am @@ -143,6 +143,7 @@ EXTRA_DIST = \ bug-141.xml \ bug-142.xml \ bug-143.xml \ + bug-144.xml \ character.xml \ array.xml \ items.xml diff --git a/tests/docs/bug-144.xml b/tests/docs/bug-144.xml new file mode 100644 index 00000000..69d62f2c --- /dev/null +++ b/tests/docs/bug-144.xml @@ -0,0 +1 @@ +<doc/> diff --git a/tests/general/Makefile.am b/tests/general/Makefile.am index 534ae094..156caa4f 100644 --- a/tests/general/Makefile.am +++ b/tests/general/Makefile.am @@ -149,6 +149,7 @@ EXTRA_DIST = \ bug-141.out bug-141.xsl \ bug-142.out bug-142.xsl \ bug-143.out bug-143.xsl \ + bug-144.out bug-144.xsl \ character.out character.xsl \ character2.out character2.xsl \ itemschoose.out itemschoose.xsl \ diff --git a/tests/general/bug-144.out b/tests/general/bug-144.out new file mode 100644 index 00000000..61380a17 --- /dev/null +++ b/tests/general/bug-144.out @@ -0,0 +1,2 @@ +<?xml version="1.0"?> +<foo bar="0foo1">foo1</foo> diff --git a/tests/general/bug-144.xsl b/tests/general/bug-144.xsl new file mode 100644 index 00000000..4f62ed75 --- /dev/null +++ b/tests/general/bug-144.xsl @@ -0,0 +1,10 @@ +<xsl:stylesheet version="1.0" + xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> +<xsl:template match="/"> + <xsl:variable name="foo">foo</xsl:variable> + <xsl:variable name="bar"> + <foo bar="0{$foo}1">foo1</foo> +</xsl:variable> + <xsl:copy-of select="$bar"/> +</xsl:template> +</xsl:stylesheet> |