summaryrefslogtreecommitdiff
path: root/2005/d/dev/todo/tasklist.xsl
diff options
context:
space:
mode:
Diffstat (limited to '2005/d/dev/todo/tasklist.xsl')
-rw-r--r--2005/d/dev/todo/tasklist.xsl76
1 files changed, 76 insertions, 0 deletions
diff --git a/2005/d/dev/todo/tasklist.xsl b/2005/d/dev/todo/tasklist.xsl
new file mode 100644
index 0000000..59fa0b0
--- /dev/null
+++ b/2005/d/dev/todo/tasklist.xsl
@@ -0,0 +1,76 @@
+<?xml version="1.0" encoding="iso-8859-1"?>
+<xsl:stylesheet version="1.0"
+ xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
+
+ <xsl:output method="html" indent="yes"
+ doctype-public="-//W3C//DTD HTML 4.01 Transitional//EN"
+ encoding="iso-8859-1"/>
+
+ <xsl:template match="/">
+ <xsl:apply-templates select="tasklist"/>
+ </xsl:template>
+
+ <xsl:template match="tasklist">
+ <html>
+ <head>
+ <title>Liste des tāches</title>
+ <meta name="robot" content="noindex,nofollow"/>
+ <link rel="stylesheet" href="tasklist.css" type="text/css"/>
+ </head>
+ <body>
+ <xsl:apply-templates select="task"/>
+ <p>
+ <a href="http://validator.w3.org/check/referer"><img
+ border="0"
+ src="http://www.w3.org/Icons/valid-html401"
+ alt="Valid HTML 4.01!" height="31"
+ width="88"/></a>
+ </p>
+
+ <p>
+ <a href="http://jigsaw.w3.org/css-validator/check/referer">
+ <img style="border:0;width:88px;height:31px"
+ src="http://jigsaw.w3.org/css-validator/images/vcss"
+ alt="Valid CSS!"/>
+ </a>
+ </p>
+ </body>
+ </html>
+ </xsl:template>
+
+ <xsl:template match="task">
+ <div class="task">
+ <xsl:element name="div">
+ <xsl:attribute name="class">
+ <xsl:choose>
+ <xsl:when test="status">taskbody-<xsl:value-of
+ select="status"/></xsl:when>
+ <xsl:otherwise>taskbody</xsl:otherwise>
+ </xsl:choose>
+ </xsl:attribute>
+ <div class="id"><xsl:value-of select="@id"/></div>
+ <xsl:apply-templates select="name"/>
+ <xsl:apply-templates select="desc"/>
+ <xsl:if test="date|assignedto">
+ <div class="footer">
+ <xsl:apply-templates select="date"/>
+ <xsl:apply-templates select="assignedto"/>
+ </div>
+ </xsl:if>
+ </xsl:element>
+ <div class="subtask">
+ <xsl:apply-templates select="task"/>
+ </div>
+ </div>
+ </xsl:template>
+
+ <xsl:template match="name|date|assignedto|desc">
+ <xsl:element name="div">
+ <xsl:attribute name="class">
+ <xsl:value-of select="name()"/>
+ </xsl:attribute>
+ <xsl:value-of select="text()"/>
+ </xsl:element>
+ </xsl:template>
+
+</xsl:stylesheet>