1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69
|
<?xml version="1.0"?>
<!-- Author: Stefano Mazzocchi "stefano@apache.org" -->
<!-- Version: $Id: text-page-html.xsl,v 1.5 2000/03/01 16:05:37 stefano Exp $ -->
<!-- This stylesheet is for text browsers -->
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="page">
<xsl:processing-instruction name="cocoon-format">type="text/html"</xsl:processing-instruction>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"/>
<meta name="Author" content="{author}"/>
<meta name="Version" content="{version}"/>
<title><xsl:value-of select="title"/></title>
</head>
<body bgcolor="#ffffff">
<xsl:apply-templates select="newscolumn|statuscolumn"/>
</body>
</html>
</xsl:template>
<xsl:template match="newscolumn">
<h2><xsl:text>News</xsl:text></h2>
<ul>
<xsl:apply-templates select="news"/>
</ul>
</xsl:template>
<xsl:template match="news">
<li>
<a href="{link}"><strong><xsl:value-of select="title"/></strong></a>
<xsl:text> - </xsl:text>
<strong><xsl:value-of select="date"/></strong>
<xsl:text> - </xsl:text>
<xsl:value-of select="content"/>
</li>
</xsl:template>
<xsl:template match="statuscolumn">
<h2><xsl:text>Status</xsl:text></h2>
<ul>
<xsl:apply-templates select="project"/>
</ul>
</xsl:template>
<xsl:template match="project">
<li>
<a href="{link}"><strong><xsl:value-of select="title"/></strong></a>
<ul>
<xsl:apply-templates select="release"/>
</ul>
</li>
</xsl:template>
<xsl:template match="release">
<li>
<strong><xsl:value-of select="version"/></strong>
<xsl:text> - </xsl:text>
<strong><xsl:value-of select="status"/></strong>
<xsl:text> - </xsl:text>
<xsl:value-of select="comment"/>
</li>
</xsl:template>
</xsl:stylesheet>
|