doc/en/news/press.xsl
Joseph Koshy ff4b37b18c Correct capitalization of page title.
Submitted by:	trevor
2002-05-15 08:27:28 +00:00

79 lines
2.2 KiB
XML

<?xml version="1.0" encoding="ISO-8859-1" ?>
<!-- $FreeBSD: www/en/news/press.xsl,v 1.2 2001/09/20 11:43:31 chris Exp $ -->
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"
xmlns:cvs="http://www.FreeBSD.org/XML/CVS">
<xsl:import href="../includes.xsl"/>
<xsl:import href="includes.xsl"/>
<xsl:variable name="base" select="'..'"/>
<xsl:variable name="title" select="'FreeBSD in the Press'"/>
<xsl:variable name="date">
<xsl:value-of select="//cvs:keyword[@name='freebsd']"/>
</xsl:variable>
<xsl:output type="html" encoding="iso-8859-1"/>
<xsl:template match="press">
<html>
<xsl:copy-of select="$header1"/>
<body xsl:use-attribute-sets="att.body">
<xsl:copy-of select="$header2"/>
<p>If you know of any news stories featuring FreeBSD that we have not
listed here, please send details to
<a href="mailto:doc@freebsd.org">doc@FreeBSD.org</a> so that we can
include them.</p>
<p>You also can visit <a href="{$base}/java/press.html">FreeBSD/Java
Press</a> page for information about FreeBSD Java Project's Press
News</p>
<xsl:apply-templates select="//month"/>
<xsl:copy-of select="$newshome"/>
<xsl:copy-of select="$footer"/>
</body>
</html>
</xsl:template>
<!-- Everything that follows are templates for the rest of the content -->
<xsl:template match="month">
<h1><xsl:value-of select="name"/>
<xsl:text> </xsl:text>
<xsl:value-of select="ancestor::year/name"/></h1>
<ul>
<xsl:apply-templates select="descendant::story"/>
</ul>
</xsl:template>
<xsl:template match="story">
<xsl:variable name="url"><xsl:value-of select="url"/></xsl:variable>
<xsl:variable name="site-url"><xsl:value-of
select="site-url"/></xsl:variable>
<li>
<a>
<xsl:attribute name="name">
<xsl:call-template name="generate-story-anchor"/>
</xsl:attribute>
</a>
<p><a href="{$url}"><b><xsl:value-of
select="name"/></b></a><br/>
<a href="{$site-url}"><xsl:value-of
select="site-name"/></a>, <xsl:value-of select="author"/><br/>
<xsl:copy-of select="p/child::node()"/>
</p>
</li>
</xsl:template>
</xsl:stylesheet>