Add a workaround to prevent bogus link generation.

Submitted by:	ceri
This commit is contained in:
Hiroki Sato 2004-01-24 12:10:02 +00:00
parent 7b01481e31
commit db86c6c974
Notes: svn2git 2020-12-08 03:00:23 +00:00
svn path=/www/; revision=19818
2 changed files with 17 additions and 7 deletions

View file

@ -2,7 +2,7 @@
<advisories>
<cvs:keywords xmlns:cvs="http://www.FreeBSD.org/XML/CVS" version="1.0">
<cvs:keyword name="freebsd">
$FreeBSD: www/share/sgml/advisories.xml,v 1.148 2004/01/13 22:44:07 hrs Exp $
$FreeBSD: www/share/sgml/advisories.xml,v 1.149 2004/01/14 20:16:16 hrs Exp $
</cvs:keyword>
</cvs:keywords>
@ -15,7 +15,7 @@
<day>
<name>12</name>
<advisory>
<advisory omithref="yes">
<name>No advisories have yet been issued in 2004</name>
</advisory>

View file

@ -1,6 +1,6 @@
<?xml version="1.0" encoding="ISO-8859-1" ?>
<!-- $FreeBSD: www/share/sgml/includes.misc.xsl,v 1.4 2004/01/12 21:27:00 hrs Exp $ -->
<!-- $FreeBSD: www/share/sgml/includes.misc.xsl,v 1.5 2004/01/17 18:58:07 hrs Exp $ -->
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
@ -72,6 +72,9 @@
<xsl:for-each select="$items">
<li>
<xsl:choose>
<xsl:when test="@omithref='yes'">
<xsl:value-of select="name" />
</xsl:when>
<xsl:when test="name/@role='old'">
<a><xsl:attribute name="href">
<xsl:value-of select="concat($ftpbaseold, name, '.asc')" />
@ -107,10 +110,17 @@
<xsl:param name="advisories.xml" select="''" />
<xsl:for-each select="document($advisories.xml)/descendant::advisory[position() &lt;= 10]">
<xsl:value-of select="$leadingmark" /><a>
<xsl:attribute name="href">ftp://ftp.freebsd.org/pub/FreeBSD/CERT/advisories/<xsl:value-of select="name"/>.asc</xsl:attribute>
<xsl:value-of select="name"/>
</a><br/>
<xsl:value-of select="$leadingmark" />
<xsl:choose>
<xsl:when test="@omithref = 'yes'">
<xsl:value-of select="name"/>
</xsl:when>
<xsl:otherwise>
<a><xsl:attribute name="href"><xsl:value-of select="concat($ftpbase, name, '.asc')"/></xsl:attribute>
<xsl:value-of select="name"/></a>
</xsl:otherwise>
</xsl:choose>
<br/>
</xsl:for-each>
</xsl:template>