Put the generated anchor for each item inside the <p> element, which fixes

some whitespace bugs in some web browsers.
This commit is contained in:
Nik Clayton 2001-08-16 11:41:21 +00:00
parent f5de1d00ef
commit 25cb10224a
Notes: svn2git 2020-12-08 03:00:23 +00:00
svn path=/www/; revision=10375
2 changed files with 16 additions and 18 deletions

View file

@ -1,6 +1,6 @@
<?xml version="1.0" encoding="ISO-8859-1" ?>
<!-- $FreeBSD$ -->
<!-- $FreeBSD: www/en/news/newsflash.xsl,v 1.1 2001/08/06 06:59:11 nik Exp $ -->
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
@ -10,7 +10,7 @@
<xsl:variable name="base" select="'..'"/>
<xsl:variable name="title" select="'FreeBSD News Flash'"/>
<xsl:variable name="date" select="'$FreeBSD$'"/>
<xsl:variable name="date" select="'$FreeBSD: www/en/news/newsflash.xsl,v 1.1 2001/08/06 06:59:11 nik Exp $'"/>
<xsl:output type="html" encoding="iso-8859-1"/>
@ -87,14 +87,13 @@
</xsl:template>
<xsl:template match="event">
<li>
<a>
<xsl:attribute name="name">
<xsl:call-template name="generate-event-anchor"/>
</xsl:attribute>
</a>
<li><p><a>
<xsl:attribute name="name">
<xsl:call-template name="generate-event-anchor"/>
</xsl:attribute>
</a>
<p><b><xsl:value-of select="ancestor::day/name"/>
<b><xsl:value-of select="ancestor::day/name"/>
<xsl:text> </xsl:text>
<xsl:value-of select="ancestor::month/name"/>,
<xsl:value-of select="ancestor::year/name"/>:</b><xsl:text> </xsl:text>

View file

@ -1,6 +1,6 @@
<?xml version="1.0" encoding="ISO-8859-1" ?>
<!-- $FreeBSD$ -->
<!-- $FreeBSD: www/en/news/newsflash.xsl,v 1.1 2001/08/06 06:59:11 nik Exp $ -->
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
@ -10,7 +10,7 @@
<xsl:variable name="base" select="'..'"/>
<xsl:variable name="title" select="'FreeBSD News Flash'"/>
<xsl:variable name="date" select="'$FreeBSD$'"/>
<xsl:variable name="date" select="'$FreeBSD: www/en/news/newsflash.xsl,v 1.1 2001/08/06 06:59:11 nik Exp $'"/>
<xsl:output type="html" encoding="iso-8859-1"/>
@ -87,14 +87,13 @@
</xsl:template>
<xsl:template match="event">
<li>
<a>
<xsl:attribute name="name">
<xsl:call-template name="generate-event-anchor"/>
</xsl:attribute>
</a>
<li><p><a>
<xsl:attribute name="name">
<xsl:call-template name="generate-event-anchor"/>
</xsl:attribute>
</a>
<p><b><xsl:value-of select="ancestor::day/name"/>
<b><xsl:value-of select="ancestor::day/name"/>
<xsl:text> </xsl:text>
<xsl:value-of select="ancestor::month/name"/>,
<xsl:value-of select="ancestor::year/name"/>:</b><xsl:text> </xsl:text>