www/55938: make news, press and gnome sections validate

Pav Lucistnik pav at oook.cz
Sun Aug 24 15:00:36 PDT 2003


>Number:         55938
>Category:       www
>Synopsis:       make news, press and gnome sections validate
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-www
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          doc-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Aug 24 15:00:34 PDT 2003
>Closed-Date:
>Last-Modified:
>Originator:     Pav Lucistnik
>Release:        FreeBSD 5.1-CURRENT i386
>Organization:
>Environment:
System: FreeBSD hood.oook.cz 5.1-CURRENT FreeBSD 5.1-CURRENT #0: Tue Aug 19 23:53:22 CEST 2003 root at hood.oook.cz:/usr/obj/usr/src/sys/PAV i386


	
>Description:

Anchor name is not allowed to begin with a digit. Please apply this patch
to /usr/www/en/news/includes.xsl and the events part
to /usr/www/en/gnome/includes.xsl

>How-To-Repeat:
	
>Fix:

--- includes.xsl.orig	Tue Sep 18 12:04:32 2001
+++ includes.xsl	Sun Aug 24 23:42:57 2003
@@ -10,6 +10,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)"/>
@@ -17,6 +18,7 @@
 
   <!-- 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)"/>
>Release-Note:
>Audit-Trail:
>Unformatted:


More information about the freebsd-www mailing list