Source de todo2html.xsl
<?xml version="1.0" ?>
<xsl:stylesheet version="1.0">
<xsl:template match="/">
<html>
</xsl:template><head>
<link rel="stylesheet" type="text/css" href="https://fabien-torre.fr/include/css/ft-v1.css" />
<title>
TODOs de <xsl:value-of select="/todolist/@owner" />
</title><meta name="robots" content="noimageindex" />
</head><body>
</html><div class="pagelarge">
</body><h1>
Les TODO de <xsl:value-of select="/todolist/@owner" />
</h1><xsl:apply-templates />
</div><xsl:template match="todo">
<h2>
TODO
<xsl:value-of select="title" />
</h2><div class="image">
<img src="{@illustration}" style="width:180px;float:right;margin-right:10px;" />
</div><p class="dead">
Pour le
<strong>
<xsl:value-of select="@deadline" />
</strong> :
</p><xsl:apply-templates select="commentaires" />
<p>Liste des actions à effectuer :</p>
<xsl:apply-templates select="items" />
<hr />
</xsl:template>
<!-- Commentaires -->
<xsl:template match="commentaires">
<div class="commentaires">
</xsl:template><xsl:apply-templates />
</div>
<!-- paragraphes -->
<xsl:template match="par">
<p>
</xsl:template><xsl:apply-templates />
</p>
<!-- listes -->
<xsl:template match="item[@level='critic']">
<li>
</xsl:template><strong>[urgent]</strong>
<xsl:text> </xsl:text>
<xsl:apply-templates />
</li><xsl:template match="item">
<li>
</xsl:template><xsl:apply-templates />
</li><xsl:template match="items">
<ul>
</xsl:template><xsl:apply-templates />
</ul>
<!-- important -->
<xsl:template match="important">
<em>
</xsl:template><xsl:apply-templates />
</em>
<!-- date -->
<xsl:template match="date">
<strong>
</xsl:template><xsl:apply-templates />
</strong>
<!-- liens -->
<xsl:template match="lien">
</xsl:stylesheet><a href="{@url}">
</xsl:template><xsl:apply-templates />
</a>