# HG changeset patch # User Daniel Veillard <veillard@src.gnome.org> # Date 981631459 0 # Thu Feb 08 11:24:19 2001 +0000 # Node ID 06ee4262298c24fc5ff001e2e1326ef076c4ba73 # Parent 553e70ac3683d0531496be9cbc9335ec01ea112d Forgot so extra stuff, Daniel diff --git a/tests/REC/article.xsl b/tests/REC/article.xsl new file mode 100644 --- /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 --- /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 new file mode 100644 index 0000000000000000000000000000000000000000..f8cd7d39142749673fbadfdaea84a7f21686cd2d GIT binary patch literal 151219 zc%1FhJ!oBJ7{KwH`W$=&sp$t6HHwr3Zh}Gu7dHimPU7I;;7~BtfZ7ff%urVm2dAJl z_QS!Utrmj$P$5QzS~{pCCdI3RbSSupC^jIXL2}M}!ok(`_nYpY=Y8Mvb)SFf__3kh ze>^%9`OEli`NG&xZ?f0xojCgJ@ne%G+VRd0000000000000000000000000000000 z00000000000000000000000000000000000000000000000000000000000000000 z00000000000000000000000000000000000000000000000000000000000000000 z000000000000000000000Qmogo_afSWifJSJNoZL?jEn27@m#1Z@ElnW+NZ^qZ4cY zbmGCYo%rf>Cw?E4SUwwhbGF3jxyUcyE%Cs)$TMe3e0U-9m5)oDycqe(Y~-!m@#n?P z<npD+!|k5oxyXYblo*+d+<mRR&PS2oo-Z*qAGvg?#MSxEX@?df|GLoL^+IQIdLi<; zxpuM`IoUqx`Nhbe=1U9~J9}~|^0oGjzPB8C@Y52fRw94>tbMp|BG<08cd#1y$mfx} z+W7J762oheqpM}vi{EwjoLq1A?8MHpo9mJDD<y8<h@5UOdVM4Ej&{$>*CIE&adfQ{ zZ>_iAXAt?u7m>GY$Lb*R_07nvkNzR@)%H3YH#+a&{jJC&kCi{t-&>JeKbOgqd#Zf% z`*Pa#y;c2zV>@DBl~*>)vZwb|^=Zvyf0Yycs)?xs&7?ly)LqR1bsV|7Gnu-l*;B{W zkt**zP-6PtDxVlFvH$*NPyMbhk9H229_z%+Sd|kaRkQ5je)9<RJDBP>%c}Y-^sC&p rr)pwQCiMZo^_v6gI5b}6-mUVahsUd2x>4fsiRP~BcxIx?m9p$#u^_3o diff --git a/tests/REC/test-10-1.out b/tests/REC/test-10-1.out new file mode 100644 --- /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 --- /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>