<!-- Category: top-level-element -->
<!-- space est un paramètre global -->
<xsl:param name="space" select="10"/>
<xsl:template name="render-course">
<xsl:param name="position-y"/>
<text x="{$space}" y="{$position-y * $increase-y - $space }"
style="stroke:#000099;fill:#000099;font-size:12;">
<xsl:value-of select="title"/>
<news>
<item>
<title>Home Page de Daniel Schneider</title>
<link>http://tecfa.unige.ch/tecfa-people/schneider.html</link>
<description>Cette page renvoie à mes publications, ....</description>
</item>
<item>
<title>Matériaux de cours de Daniel Schneider</title>
<link>http://tecfa.unige.ch/guides/tie/tie.html</link>
<description>Il s'agit de plusieurs centaines de transparents ... </description>
</item>
.... </news>
doctype-public="-//W3C//DTD HTML 4.01 Transitional//EN"/>
<head><title>Demo call-templates</title></head>
< xsl:for-each select="item" >
<xsl:call-template name="display_item">
<xsl:with-param name="position" select="position()"/>
<xsl:template name="display_item">
<p style="font-size: {5 +
$position
* 5}pt ;">
<a href="{link}"> <xsl:value-of select="title"/></a></p>
<p><xsl:value-of select="description"/></p>
</xsl:stylesheet>
<!-- you can change the value of these 2 parameters -->
<xsl:param name="initial_size" select="5"/>
<xsl:param name="multiplier" select="3"/>
<xsl:template name="display_item">
<xsl:param name="position"/>
<xsl:variable name="fonte " select="$initial_size + $position * $multiplier "/>
<p style="font-size: {$fonte }pt ;"><a href="{link}"><xsl:value-of select="title"/></a><br />
[Pos = <xsl:value-of select="$position"/>, Multip. = <xsl:value-of select="$multiplier"/>,
Taille init. = <xsl:value-of select="$initial_size"/>, Taille fonte = <xsl:value-of select="$fonte"/>]
</p>
<p><xsl:value-of select="description"/></p>
</xsl:template>