1.32 -> 1.33 availability.sgml 1.68 -> 1.77 index.xsl 1.45 -> 1.47 internal/machines.sgml 1.33 -> 1.38 news/Makefile 1.4 -> 1.5 news/includes.xsl 1.30 -> 1.32 projects/newbies.sgml 1.139 -> 1.141 security/security.sgml
26 lines
1 KiB
XML
26 lines
1 KiB
XML
<?xml version="1.0" encoding="EUC-JP" ?>
|
|
|
|
<!-- $FreeBSD: www/ja/news/includes.xsl,v 1.4 2001/09/18 12:49:14 kuriyama Exp $ -->
|
|
<!-- Original revision: 1.5 -->
|
|
|
|
<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 ¥Û¡¼¥à</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>
|