doc/fr/news/includes.xsl
Mathieu Arnold caeb223732 MFen:
1.4   -> 1.6	fr/news/includes.xsl
1.4   -> 1.6	fr/news/news-rdf.xsl
1.214 -> 1.229	fr/news/news.xml
1.9   -> 1.11	fr/news/newsflash.xsl
1.5   -> 1.6	fr/news/oldnewsflash.xsl
1.1   -> 1.2	fr/news/press-rel-6.sgml

Approved by:	stephane
2004-08-07 15:33:38 +00:00

38 lines
1.3 KiB
XML

<?xml version="1.0" encoding="ISO-8859-1" ?>
<!-- $FreeBSD: www/fr/news/includes.xsl,v 1.1 2002/12/08 16:45:35 stephane Exp $ -->
<!--
The FreeBSD French Documentation Project
Original revision: 1.6
Version francaise : Stephane Legrand <stephane@freebsd-fr.org>
Version francaise (mise a jour) : Mathieu Arnold <mat@FreeBSD.org>
-->
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:variable name="newshome">
<a href="{$base}/news/news.html">Accueil Nouvelles</a>
</xsl:variable>
<xsl:variable name="presshome">
<a href="{$base}/news/press.html">Accueil Presse</a>
</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>
<!-- Generate a unique anchor for this story -->
<xsl:template name="generate-story-anchor">
<xsl:text>story</xsl:text>
<xsl:value-of select="ancestor::year/name"/>
<xsl:value-of select="ancestor::month/name"/>:<xsl:text/>
<xsl:value-of select="count(following-sibling::story)"/>
</xsl:template>
</xsl:stylesheet>