doc/en/news/includes.xsl
Chris Costello 49235349bd Change relative paths to use {$base} so that subdirectories which include
`../includes.xsl' will properly be able to reference these variables.
2001-09-18 10:04:33 +00:00

24 lines
936 B
XML

<?xml version="1.0" encoding="ISO-8859-1" ?>
<!-- $FreeBSD: www/en/news/includes.xsl,v 1.3 2001/08/10 18:21:44 nik 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">News Home</a>
</xsl:variable>
<!-- Generate a unique anchor for this event -->
<xsl:template name="generate-event-anchor">
<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: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>