diff --git a/ChangeLog b/ChangeLog index 66a6a5ed..2d820e91 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +Thu Jun 14 10:07:59 CEST 2001 Daniel Veillard + + * libxslt/preproc.c: removed a warning on xsl:transform + * tests/docs/Makefile.am tests/docs/array.xml tests/general/Makefile.am + tests/general/array.out tests/general/array.xsl: added a new + test fround in xsl-dev + Wed Jun 13 23:12:57 CEST 2001 Daniel Veillard * tests/docbook/result/html/*.html tests/XSLTMark/xslbench[12].out diff --git a/libxslt/preproc.c b/libxslt/preproc.c index b2d668c2..0ec9d834 100644 --- a/libxslt/preproc.c +++ b/libxslt/preproc.c @@ -1336,6 +1336,9 @@ xsltStylePreCompute(xsltStylesheetPtr style, xmlNodePtr inst) { } else if (IS_XSLT_NAME(inst, "stylesheet")) { /* no computation needed */ return; + } else if (IS_XSLT_NAME(inst, "transform")) { + /* no computation needed */ + return; } else if (IS_XSLT_NAME(inst, "key")) { /* no computation needed */ return; diff --git a/tests/docs/Makefile.am b/tests/docs/Makefile.am index 4216b89d..afb1ca6a 100644 --- a/tests/docs/Makefile.am +++ b/tests/docs/Makefile.am @@ -41,5 +41,6 @@ EXTRA_DIST = \ bug-35-.xml \ bug-36-.xml \ character.xml \ + array.xml \ items.xml diff --git a/tests/docs/array.xml b/tests/docs/array.xml new file mode 100644 index 00000000..f850b64e --- /dev/null +++ b/tests/docs/array.xml @@ -0,0 +1,7 @@ + + + diff --git a/tests/general/Makefile.am b/tests/general/Makefile.am index dbaf047b..4bc518de 100644 --- a/tests/general/Makefile.am +++ b/tests/general/Makefile.am @@ -40,6 +40,7 @@ EXTRA_DIST = \ bug-35-.out bug-35-.xsl \ bug-36-.out bug-36-.xsl \ bug-36-inc.out bug-36-inc.xsl \ + array.out array.xsl \ character.out character.xsl \ character2.out character2.xsl \ itemschoose.out itemschoose.xsl \ diff --git a/tests/general/array.out b/tests/general/array.out new file mode 100644 index 00000000..78aa7b2f --- /dev/null +++ b/tests/general/array.out @@ -0,0 +1,4 @@ +First we try to find the value for "12M" (should be 1): 1 +Now we define a variable $BP to be "18M". +$BP is defined as: 18M +Now we try to find the value for $BP (should be 2): 2 diff --git a/tests/general/array.xsl b/tests/general/array.xsl new file mode 100644 index 00000000..2124caa4 --- /dev/null +++ b/tests/general/array.xsl @@ -0,0 +1,24 @@ + + + + + +1 +2 +3 +4 +5 + + +First we try to find the value for "12M" (should be 1): + + Now we define a variable $BP to be "18M". +18M + $BP is defined as: + + Now we try to find the value for $BP (should be 2): + + + +