diff options
author | Daniel Veillard <veillard@src.gnome.org> | 2001-02-08 11:24:19 +0000 |
---|---|---|
committer | Daniel Veillard <veillard@src.gnome.org> | 2001-02-08 11:24:19 +0000 |
commit | 2681e1ebd72cd75a09f17546234e9e0d54ab123f (patch) | |
tree | 9f28ef6920da1b6f3162890f09393c2b81402962 /tests/REC | |
parent | 443496a5d7ad1504ad5554f3a80d9539140fcb5c (diff) | |
download | libxslt-2681e1ebd72cd75a09f17546234e9e0d54ab123f.tar.gz libxslt-2681e1ebd72cd75a09f17546234e9e0d54ab123f.tar.bz2 libxslt-2681e1ebd72cd75a09f17546234e9e0d54ab123f.zip |
Forgot so extra stuff, Daniel
Diffstat (limited to 'tests/REC')
-rw-r--r-- | tests/REC/article.xsl | 11 | ||||
-rw-r--r-- | tests/REC/bigfont.xsl | 6 | ||||
-rw-r--r-- | tests/REC/gmon.out | bin | 0 -> 151219 bytes | |||
-rw-r--r-- | tests/REC/test-10-1.out | 2 | ||||
-rw-r--r-- | tests/REC/test-9.2-1.xsl | 30 |
5 files changed, 49 insertions, 0 deletions
diff --git a/tests/REC/article.xsl b/tests/REC/article.xsl new file mode 100644 index 00000000..302652a7 --- /dev/null +++ b/tests/REC/article.xsl @@ -0,0 +1,11 @@ +<xsl:stylesheet version="1.0" + xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> +<xsl:template match="article"> +<h3><xsl:value-of select="title"/></h3> +<xsl:apply-templates select="para"/> +</xsl:template> +<xsl:template match="para"> +<p><xsl:apply-templates/> +</p> +</xsl:template> +</xsl:stylesheet> diff --git a/tests/REC/bigfont.xsl b/tests/REC/bigfont.xsl new file mode 100644 index 00000000..c3a2bd1e --- /dev/null +++ b/tests/REC/bigfont.xsl @@ -0,0 +1,6 @@ +<xsl:stylesheet version="1.0" + xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> +<xsl:template match="big"> +<em><xsl:apply-templates/></em> +</xsl:template> +</xsl:stylesheet> diff --git a/tests/REC/gmon.out b/tests/REC/gmon.out Binary files differnew file mode 100644 index 00000000..f8cd7d39 --- /dev/null +++ b/tests/REC/gmon.out diff --git a/tests/REC/test-10-1.out b/tests/REC/test-10-1.out new file mode 100644 index 00000000..60426d40 --- /dev/null +++ b/tests/REC/test-10-1.out @@ -0,0 +1,2 @@ +<?xml version="1.0"?> +<ul><li>James Clark</li><li>Michael Kay</li><li>Daniel Veillard</li></ul> diff --git a/tests/REC/test-9.2-1.xsl b/tests/REC/test-9.2-1.xsl new file mode 100644 index 00000000..7070e131 --- /dev/null +++ b/tests/REC/test-9.2-1.xsl @@ -0,0 +1,30 @@ +<xsl:stylesheet version="1.0" + xmlns:xsl="http://www.w3.org/1999/XSL/Transform" + xmlns:fo="http://www.w3.org/1999/XSL/Format"> + +<xsl:strip-space elements="orderedlist"/> + +<xsl:template match="orderedlist/listitem"> + <fo:list-item indent-start='2pi'> + <fo:list-item-label> + <xsl:variable name="level" + select="count(ancestor::orderedlist) mod 3"/> + <xsl:choose> + <xsl:when test='$level=1'> + <xsl:number format="i"/> + </xsl:when> + <xsl:when test='$level=2'> + <xsl:number format="a"/> + </xsl:when> + <xsl:otherwise> + <xsl:number format="1"/> + </xsl:otherwise> + </xsl:choose> + <xsl:text>. </xsl:text> + </fo:list-item-label> + <fo:list-item-body> + <xsl:apply-templates/> + </fo:list-item-body> + </fo:list-item> +</xsl:template> +</xsl:stylesheet> |