summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Veillard <veillard@src.gnome.org>2001-07-30 13:47:26 +0000
committerDaniel Veillard <veillard@src.gnome.org>2001-07-30 13:47:26 +0000
commit7b600428453e95b1ac03c5a0fcfaa41bb83f5c1e (patch)
tree591173262116fd04bc368f6e7261c2c6aa0261d8
parent23c11bbc87359296904dc51a61d01c9ad7c22b6c (diff)
downloadlibxslt-7b600428453e95b1ac03c5a0fcfaa41bb83f5c1e.tar.gz
libxslt-7b600428453e95b1ac03c5a0fcfaa41bb83f5c1e.tar.bz2
libxslt-7b600428453e95b1ac03c5a0fcfaa41bb83f5c1e.zip
fixed a serious proble is node-set was called on a nodeset fixed the rule
* libxslt/extra.c: fixed a serious proble is node-set was called on a nodeset * tests//*/Makefile.am: fixed the rule to rebuild xsltproc Daniel
-rw-r--r--ChangeLog6
-rw-r--r--libxslt/extra.c6
-rw-r--r--tests/REC/Makefile.am2
-rw-r--r--tests/REC1/Makefile.am2
-rw-r--r--tests/REC2/Makefile.am2
-rw-r--r--tests/XSLTMark/Makefile.am2
-rw-r--r--tests/docbook/Makefile.am2
-rw-r--r--tests/documents/Makefile.am2
-rw-r--r--tests/exslt/common/Makefile.am2
-rw-r--r--tests/exslt/functions/Makefile.am2
-rw-r--r--tests/exslt/math/Makefile.am2
-rw-r--r--tests/exslt/sets/Makefile.am2
-rw-r--r--tests/extensions/Makefile.am2
-rw-r--r--tests/general/Makefile.am2
-rw-r--r--tests/multiple/Makefile.am2
-rw-r--r--tests/namespaces/Makefile.am2
-rw-r--r--tests/numbers/Makefile.am2
-rw-r--r--tests/xmlspec/Makefile.am2
18 files changed, 26 insertions, 18 deletions
diff --git a/ChangeLog b/ChangeLog
index e733f983..641078b2 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+Tue Jul 31 03:47:10 EDT 2001 Daniel Veillard <daniel@veillard.com>
+
+ * libxslt/extra.c: fixed a serious proble is node-set was called
+ on a nodeset
+ * tests//*/Makefile.am: fixed the rule to rebuild xsltproc
+
Lun Jul 30 05:47:43 CEST 2001 Thomas Broyer <tbroyer@ltgt.net>
* libexslt/functions.c: fixed memory leaks
diff --git a/libxslt/extra.c b/libxslt/extra.c
index 08102f25..282fc6c8 100644
--- a/libxslt/extra.c
+++ b/libxslt/extra.c
@@ -132,8 +132,10 @@ xsltFunctionNodeSet(xmlXPathParserContextPtr ctxt, int nargs){
ctxt->error = XPATH_INVALID_TYPE;
return;
}
- ctxt->value->type = XPATH_NODESET;
- ctxt->value->boolval = 1;
+ if (ctxt->value->type == XPATH_XSLT_TREE) {
+ ctxt->value->type = XPATH_NODESET;
+ ctxt->value->boolval = 1;
+ }
}
/**
diff --git a/tests/REC/Makefile.am b/tests/REC/Makefile.am
index eebd41e0..5da83bbc 100644
--- a/tests/REC/Makefile.am
+++ b/tests/REC/Makefile.am
@@ -1,7 +1,7 @@
## Process this file with automake to produce Makefile.in
$(top_builddir)/xsltproc/xsltproc:
- @(cd ../../libxslt ; make xsltproc)
+ @(cd ../../xsltproc ; make xsltproc)
EXTRA_DIST = \
article.xsl bigfont.xsl \
diff --git a/tests/REC1/Makefile.am b/tests/REC1/Makefile.am
index 02ee4bdf..5ec52199 100644
--- a/tests/REC1/Makefile.am
+++ b/tests/REC1/Makefile.am
@@ -1,7 +1,7 @@
## Process this file with automake to produce Makefile.in
$(top_builddir)/xsltproc/xsltproc:
- @(cd ../../libxslt ; make xsltproc)
+ @(cd ../../xsltproc ; make xsltproc)
EXTRA_DIST = doc.xsl doc.xml doc.dtd result.xml
diff --git a/tests/REC2/Makefile.am b/tests/REC2/Makefile.am
index cfaf50f9..6399063a 100644
--- a/tests/REC2/Makefile.am
+++ b/tests/REC2/Makefile.am
@@ -1,7 +1,7 @@
## Process this file with automake to produce Makefile.in
$(top_builddir)/xsltproc/xsltproc:
- @(cd ../../libxslt ; make xsltproc)
+ @(cd ../../xsltproc ; make xsltproc)
EXTRA_DIST = data.xml vrml.xsl vrml.xml svg.xsl svg.xml html.xsl html.xml
diff --git a/tests/XSLTMark/Makefile.am b/tests/XSLTMark/Makefile.am
index 39abf20a..31bd5335 100644
--- a/tests/XSLTMark/Makefile.am
+++ b/tests/XSLTMark/Makefile.am
@@ -48,7 +48,7 @@ EXTRA_DIST = \
xslbenchdream.xml
$(top_builddir)/xsltproc/xsltproc:
- @(cd ../../libxslt ; make xsltproc)
+ @(cd ../../xsltproc ; make xsltproc)
all: alphabetize attsets avts axis backwards bottles breadth brutal chart \
creation current dbonerow dbtail decoy depth encrypt functions game \
diff --git a/tests/docbook/Makefile.am b/tests/docbook/Makefile.am
index f1d5706e..99d991a4 100644
--- a/tests/docbook/Makefile.am
+++ b/tests/docbook/Makefile.am
@@ -3,7 +3,7 @@
all: single xtchunk # Avoid doing the test in normal pass
$(top_builddir)/xsltproc/xsltproc:
- @(cd ../../libxslt ; make xsltproc)
+ @(cd ../../xsltproc ; make xsltproc)
EXTRA_DIST = README VERSION
diff --git a/tests/documents/Makefile.am b/tests/documents/Makefile.am
index 008f6e9f..7a4fc00b 100644
--- a/tests/documents/Makefile.am
+++ b/tests/documents/Makefile.am
@@ -1,7 +1,7 @@
## Process this file with automake to produce Makefile.in
$(top_builddir)/xsltproc/xsltproc:
- @(cd ../../libxslt ; make xsltproc)
+ @(cd ../../xsltproc ; make xsltproc)
EXTRA_DIST = bredfort.css index.xml system.xml \
bredfort.xsl menu.xml worklog.xml \
diff --git a/tests/exslt/common/Makefile.am b/tests/exslt/common/Makefile.am
index a6b81e07..b0fb12bc 100644
--- a/tests/exslt/common/Makefile.am
+++ b/tests/exslt/common/Makefile.am
@@ -1,7 +1,7 @@
## Process this file with automake to produce Makefile.in
$(top_builddir)/xsltproc/xsltproc:
- @(cd ../../../libxslt ; make xsltproc)
+ @(cd ../../../xsltproc ; make xsltproc)
EXTRA_DIST = \
node-set.1.xml node-set.1.xsl node-set.1.out \
diff --git a/tests/exslt/functions/Makefile.am b/tests/exslt/functions/Makefile.am
index bd1bdc0f..c78ad706 100644
--- a/tests/exslt/functions/Makefile.am
+++ b/tests/exslt/functions/Makefile.am
@@ -1,7 +1,7 @@
## Process this file with automake to produce Makefile.in
$(top_builddir)/xsltproc/xsltproc:
- @(cd ../../../libxslt ; make xsltproc)
+ @(cd ../../../xsltproc ; make xsltproc)
EXTRA_DIST = \
function.1.out function.1.xml function.1.xsl \
diff --git a/tests/exslt/math/Makefile.am b/tests/exslt/math/Makefile.am
index bcd6e0d4..6cbbf6e7 100644
--- a/tests/exslt/math/Makefile.am
+++ b/tests/exslt/math/Makefile.am
@@ -1,7 +1,7 @@
## Process this file with automake to produce Makefile.in
$(top_builddir)/xsltproc/xsltproc:
- @(cd ../../../libxslt ; make xsltproc)
+ @(cd ../../../xsltproc ; make xsltproc)
EXTRA_DIST = \
highest.1.out highest.1.xml highest.1.xsl \
diff --git a/tests/exslt/sets/Makefile.am b/tests/exslt/sets/Makefile.am
index 4dffc82c..223e2c70 100644
--- a/tests/exslt/sets/Makefile.am
+++ b/tests/exslt/sets/Makefile.am
@@ -1,7 +1,7 @@
## Process this file with automake to produce Makefile.in
$(top_builddir)/xsltproc/xsltproc:
- @(cd ../../../libxslt ; make xsltproc)
+ @(cd ../../../xsltproc ; make xsltproc)
EXTRA_DIST = \
difference.1.out difference.1.xml difference.1.xsl \
diff --git a/tests/extensions/Makefile.am b/tests/extensions/Makefile.am
index 56aa74fb..df0ed74f 100644
--- a/tests/extensions/Makefile.am
+++ b/tests/extensions/Makefile.am
@@ -1,7 +1,7 @@
## Process this file with automake to produce Makefile.in
$(top_builddir)/xsltproc/xsltproc:
- @(cd ../../libxslt ; make xsltproc)
+ @(cd ../../xsltproc ; make xsltproc)
EXTRA_DIST = \
module.xml module.xsl module.out \
diff --git a/tests/general/Makefile.am b/tests/general/Makefile.am
index 3e0c5989..3be88c78 100644
--- a/tests/general/Makefile.am
+++ b/tests/general/Makefile.am
@@ -1,7 +1,7 @@
## Process this file with automake to produce Makefile.in
$(top_builddir)/xsltproc/xsltproc:
- @(cd ../../libxslt ; make xsltproc)
+ @(cd ../../xsltproc ; make xsltproc)
EXTRA_DIST = \
bug-1-.out bug-1-.xsl \
diff --git a/tests/multiple/Makefile.am b/tests/multiple/Makefile.am
index 2cf906f3..3e23d382 100644
--- a/tests/multiple/Makefile.am
+++ b/tests/multiple/Makefile.am
@@ -1,7 +1,7 @@
## Process this file with automake to produce Makefile.in
$(top_builddir)/xsltproc/xsltproc:
- @(cd ../../libxslt ; make xsltproc)
+ @(cd ../../xsltproc ; make xsltproc)
EXTRA_DIST = dict.dtd dict.xml dict.xsl result.xml \
out/lettera.orig out/letterb.orig \
diff --git a/tests/namespaces/Makefile.am b/tests/namespaces/Makefile.am
index 7040eacd..86549244 100644
--- a/tests/namespaces/Makefile.am
+++ b/tests/namespaces/Makefile.am
@@ -1,7 +1,7 @@
## Process this file with automake to produce Makefile.in
$(top_builddir)/xsltproc/xsltproc:
- @(cd ../../libxslt ; make xsltproc)
+ @(cd ../../xsltproc ; make xsltproc)
EXTRA_DIST = \
tst.xml tst.xsl tst.out \
diff --git a/tests/numbers/Makefile.am b/tests/numbers/Makefile.am
index e53be590..60991853 100644
--- a/tests/numbers/Makefile.am
+++ b/tests/numbers/Makefile.am
@@ -1,7 +1,7 @@
## Process this file with automake to produce Makefile.in
$(top_builddir)/xsltproc/xsltproc:
- @(cd ../../libxslt ; make xsltproc)
+ @(cd ../../xsltproc ; make xsltproc)
EXTRA_DIST = format-number.xsl format-number.xml format-number.out
diff --git a/tests/xmlspec/Makefile.am b/tests/xmlspec/Makefile.am
index 8bcbbcd5..9e02e3ba 100644
--- a/tests/xmlspec/Makefile.am
+++ b/tests/xmlspec/Makefile.am
@@ -1,7 +1,7 @@
## Process this file with automake to produce Makefile.in
$(top_builddir)/xsltproc/xsltproc:
- @(cd ../../libxslt ; make xsltproc)
+ @(cd ../../xsltproc ; make xsltproc)
EXTRA_DIST = REC-xml-20001006.xml xmlspec-v21.dtd W3C-REC.css \
logo-REC xmlspec.xsl REC-xml-2e.xsl diffspec.xsl \