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>
This commit is contained in:
parent
220c7f2f03
commit
13856e447f
Notes:
svn2git
2020-12-08 03:00:23 +00:00
svn path=/www/; revision=17978
2 changed files with 5 additions and 2 deletions
|
@ -1,6 +1,6 @@
|
|||
<?xml version="1.0" encoding="ISO-8859-1" ?>
|
||||
|
||||
<!-- $FreeBSD: www/en/gnome/includes.xsl,v 1.2 2002/01/29 05:52:23 sobomax Exp $ -->
|
||||
<!-- $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">
|
||||
|
||||
|
@ -18,6 +18,7 @@
|
|||
|
||||
<!-- 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)"/>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue