| <?xml version="1.0" encoding="UTF-8"?> |
| |
| <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" |
| xmlns:n="http://www.betaversion.org/linotype/news/1.0"> |
| |
| <xsl:param name="home"/> |
| |
| <xsl:template match="/"> |
| <html> |
| <head> |
| <title>News History</title> |
| <link rel="stylesheet" type="text/css" href="{$home}/styles/main.css"/> |
| </head> |
| <body> |
| <div id="sidebar"> |
| <a href="{$home}/"><img alt="Linotype" src="{$home}/images/linotype.jpg" width="156px" height="207px" /></a> |
| </div> |
| |
| <div id="bottombar"> |
| <a href="http://cocoon.apache.org" title="Apache Cocoon"><img alt="Powered by Cocoon" src="{$home}/images/cocoon.jpg"/></a> |
| </div> |
| |
| <div id="page"> |
| <h1>News History</h1> |
| <h2>The whole braindump</h2> |
| <xsl:apply-templates select="//n:news[@online = 'on']"/> |
| </div> |
| |
| </body> |
| </html> |
| </xsl:template> |
| |
| <xsl:template match="n:news"> |
| <xsl:variable name="id" select="../@id"/> |
| <div class="news" online="{@online}"> |
| <h1><img src="{$home}/images/hand.jpg" alt=""/><a href="news/{$id}/"><xsl:value-of select="n:title"/></a></h1> |
| <h2><xsl:value-of select="@creation-date"/> ~ <xsl:value-of select="@creation-time"/></h2> |
| </div> |
| </xsl:template> |
| |
| </xsl:stylesheet> |