added test similar to 143 but checking for AVT in local variables. Daniel
authorDaniel Veillard <veillard@src.gnome.org>
Thu, 26 Feb 2004 13:54:35 +0000 (13:54 +0000)
committerDaniel Veillard <veillard@src.gnome.org>
Thu, 26 Feb 2004 13:54:35 +0000 (13:54 +0000)
* 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

ChangeLog
doc/libxslt-api.xml
doc/libxslt-refs.xml
tests/docs/Makefile.am
tests/docs/bug-144.xml [new file with mode: 0644]
tests/general/Makefile.am
tests/general/bug-144.out [new file with mode: 0644]
tests/general/bug-144.xsl [new file with mode: 0644]

index ca2f29a..933e6d6 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -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
index 422280e..5dd1dba 100644 (file)
      <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'/>
     </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'>
index 26d24eb..e9ff82c 100644 (file)
@@ -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'/>
     <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'/>
       <ref name='xsltParseStylesheetInclude'/>
     </file>
     <file name='keys'>
+      <ref name='NODE_IS_KEYED'/>
       <ref name='xsltAddKey'/>
       <ref name='xsltFreeDocumentKeys'/>
       <ref name='xsltFreeKeys'/>
index 8a32866..04f555f 100644 (file)
@@ -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 (file)
index 0000000..69d62f2
--- /dev/null
@@ -0,0 +1 @@
+<doc/>
index 534ae09..156caa4 100644 (file)
@@ -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 (file)
index 0000000..61380a1
--- /dev/null
@@ -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 (file)
index 0000000..4f62ed7
--- /dev/null
@@ -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>