From 451c656c3b1553c3c7caf4785d67c628bdb8f425 Mon Sep 17 00:00:00 2001 From: Daniel Veillard Date: Sun, 8 Jul 2001 20:21:05 +0000 Subject: Norm pointed out that element-available() didn't work, implemented it * libxslt/extra.c libxslt/functions.c libxslt/transform.[ch] libxslt/variables.h: Norm pointed out that element-available() didn't work, implemented it * tests/extensions/Makefile.am tests/extensions/list.*: added a test for all registered xslt element, function and default extensions. Daniel --- tests/extensions/Makefile.am | 3 +- tests/extensions/list.out | 37 ++++++++++++++++++++ tests/extensions/list.xml | 1 + tests/extensions/list.xsl | 82 ++++++++++++++++++++++++++++++++++++++++++++ 4 files changed, 122 insertions(+), 1 deletion(-) create mode 100644 tests/extensions/list.out create mode 100644 tests/extensions/list.xml create mode 100644 tests/extensions/list.xsl (limited to 'tests/extensions') diff --git a/tests/extensions/Makefile.am b/tests/extensions/Makefile.am index 2bf71a93..8db24e26 100644 --- a/tests/extensions/Makefile.am +++ b/tests/extensions/Makefile.am @@ -4,7 +4,8 @@ $(top_builddir)/libxslt/xsltproc: @(cd ../../libxslt ; make xsltproc) EXTRA_DIST = \ - module.xml module.xsl module.out + module.xml module.xsl module.out \ + list.xml list.xsl list.out all: test diff --git a/tests/extensions/list.out b/tests/extensions/list.out new file mode 100644 index 00000000..44843632 --- /dev/null +++ b/tests/extensions/list.out @@ -0,0 +1,37 @@ + + === 24 Standard elements: +xsl:apply-templates available +xsl:apply-imports available +xsl:call-template available +xsl:element available +xsl:attribute available +xsl:text available +xsl:processing-instruction available +xsl:comment available +xsl:copy available +xsl:value-of available +xsl:number available +xsl:for-each available +xsl:if available +xsl:choose available +xsl:sort available +xsl:copy-of available +xsl:message available +xsl:variable available +xsl:param available +xsl:with-param available +xsl:decimal-format available +xsl:when available +xsl:otherwise available +xsl:fallback available + === 5 Extension elements: +xsl:element available +saxon:output available +xalanredirect:write available +xt:document available +libxslt:debug available + === 3 Extension functions: +libxslt:node-set() available +saxon:node-set() available +xt:node-set() available + diff --git a/tests/extensions/list.xml b/tests/extensions/list.xml new file mode 100644 index 00000000..69d62f2c --- /dev/null +++ b/tests/extensions/list.xml @@ -0,0 +1 @@ + diff --git a/tests/extensions/list.xsl b/tests/extensions/list.xsl new file mode 100644 index 00000000..ffb03bad --- /dev/null +++ b/tests/extensions/list.xsl @@ -0,0 +1,82 @@ + + + + + === 24 Standard elements: + +xsl:apply-templates available + +xsl:apply-imports available + +xsl:call-template available + +xsl:element available + +xsl:attribute available + +xsl:text available + +xsl:processing-instruction available + +xsl:comment available + +xsl:copy available + +xsl:value-of available + +xsl:number available + +xsl:for-each available + +xsl:if available + +xsl:choose available + +xsl:sort available + +xsl:copy-of available + +xsl:message available + +xsl:variable available + +xsl:param available + +xsl:with-param available + +xsl:decimal-format available + +xsl:when available + +xsl:otherwise available + +xsl:fallback available + + === 5 Extension elements: + +xsl:element available + +saxon:output available + +xalanredirect:write available + +xt:document available + +libxslt:debug available + + === 3 Extension functions: + +libxslt:node-set() available + +saxon:node-set() available + +xt:node-set() available + + + + -- cgit v1.2.3