summaryrefslogtreecommitdiff
path: root/tests/REC/test-10-1.xsl
diff options
context:
space:
mode:
authorDaniel Veillard <veillard@src.gnome.org>2001-01-31 20:45:01 +0000
committerDaniel Veillard <veillard@src.gnome.org>2001-01-31 20:45:01 +0000
commitb2e216a7f23af375021c94a03cb237c492d72d24 (patch)
treec632845946e2308320811e6519938b5499612a6a /tests/REC/test-10-1.xsl
parent92326d3c7d769ed98471835924cb49a288e24976 (diff)
downloadlibxslt-b2e216a7f23af375021c94a03cb237c492d72d24.tar.gz
libxslt-b2e216a7f23af375021c94a03cb237c492d72d24.tar.bz2
libxslt-b2e216a7f23af375021c94a03cb237c492d72d24.zip
Test/debug/patch cycle:
- tests/REC/test-[9-10]*: added more tests - tests/REC2/html.xml libxslt/xsltutils.c libxslt/transform.c: fixed sorting Daniel
Diffstat (limited to 'tests/REC/test-10-1.xsl')
-rw-r--r--tests/REC/test-10-1.xsl20
1 files changed, 20 insertions, 0 deletions
diff --git a/tests/REC/test-10-1.xsl b/tests/REC/test-10-1.xsl
new file mode 100644
index 00000000..613c4f33
--- /dev/null
+++ b/tests/REC/test-10-1.xsl
@@ -0,0 +1,20 @@
+<xsl:stylesheet version="1.0"
+ xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+ xmlns:fo="http://www.w3.org/1999/XSL/Format">
+<xsl:template match="employees">
+ <ul>
+ <xsl:apply-templates select="employee">
+ <xsl:sort select="name/family"/>
+ <xsl:sort select="name/given"/>
+ </xsl:apply-templates>
+ </ul>
+</xsl:template>
+
+<xsl:template match="employee">
+ <li>
+ <xsl:value-of select="name/given"/>
+ <xsl:text> </xsl:text>
+ <xsl:value-of select="name/family"/>
+ </li>
+</xsl:template>
+</xsl:stylesheet>