doc/en/gnome/includes.xsl
Simon L. B. Nielsen 13856e447f Make news, press, and gnome sections validate as XHTML, by making sure
the id tags generated by the news / story sections does not start with
a number.

PR:		www/55938
Submitted by:	Pav Lucistnik <pav@oook.cz>
2003-08-25 11:36:16 +00:00

27 lines
1.2 KiB
XML

<?xml version="1.0" encoding="ISO-8859-1" ?>
<!-- $FreeBSD: www/en/gnome/includes.xsl,v 1.3 2003/06/18 23:34:04 murray Exp $ -->
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:variable name="newshome">
<a href="{$base}/news/news.html">FreeBSD News Home</a>
</xsl:variable>
<xsl:variable name="author">
<a>
<xsl:attribute name="href">
<xsl:value-of select="concat($base, '/gnome/contact.html')"/>
</xsl:attribute>
<xsl:value-of select="'freebsd-gnome'"/>@FreeBSD.org</a><br/><xsl:copy-of select="$copyright"/>
</xsl:variable>
<!-- Generate a unique anchor for this event -->
<xsl:template name="generate-event-anchor">
<xsl:text>event</xsl:text>
<xsl:value-of select="ancestor::year/name"/>
<xsl:value-of select="ancestor::month/name"/>
<xsl:value-of select="ancestor::day/name"/>:<xsl:value-of select="count(preceding-sibling::event)"/>
</xsl:template>
</xsl:stylesheet>