Generate anchors for the press stories. Should have committed this about
eight hours ago. Oops. . .
This commit is contained in:
parent
b2d52b2bc8
commit
65588eb96f
Notes:
svn2git
2020-12-08 03:00:23 +00:00
svn path=/www/; revision=10294
1 changed files with 11 additions and 5 deletions
|
@ -1,6 +1,6 @@
|
|||
<?xml version="1.0" encoding="ISO-8859-1" ?>
|
||||
|
||||
<!-- $FreeBSD$ -->
|
||||
<!-- $FreeBSD: www/en/news/includes.xsl,v 1.2 2001/08/07 01:54:42 kuriyama Exp $ -->
|
||||
|
||||
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
|
||||
|
||||
|
@ -10,9 +10,15 @@
|
|||
|
||||
<!-- 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: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>
|
||||
|
|
Loading…
Reference in a new issue