www cleanup mega commit:

- Move includes.nav*.sgml to share/sgml/navibar.ent and
   <lang>/share/sgml/navibar.l10n.ent.

 - Move includes.sgml and includes.xsl to
   share/sgml/common.ent, share/sgml/header.ent, <lang>/share/sgml/l10n.ent,
   and <lang>/share/sgml/header.l10n.ent.

 - Move most of XSLT libraries to share/sgml/*.xsl and
   <lang>/share/sgml/*.xsl.

 - Move news.xml and other *.xml files for the similar purpose
   to share/sgml/*.xml and <lang>/share/sgml/*.xml.

 - Switch to use a custom DTD for HTML document.  Now we use
   "-//FreeBSD//DTD HTML 4.01 Transitional-Based Extension", which is
   HTML 4.01 + some entities previously pulled via
   "<!ENTITY % includes SYSTEM "includes.sgml"> %includes;" line.
   The location of entity file will be resolved by using catalog file.

 - Add DOCTYPE declearation to XML documents.  This makes the followings
   possible:

   * Use of &foo; entities for SGML in an XML file instead of defining
     {$foo} as the same content.

   * &symbolic; entities for Latin characters.

 - Duplicated information between SGML and XML, or English and
   translated doc, has been removed as much as possible.
This commit is contained in:
Hiroki Sato 2006-08-19 21:26:51 +00:00
parent de3f531874
commit 5305bb945d
Notes: svn2git 2020-12-08 03:00:23 +00:00
svn path=/www/; revision=28475
795 changed files with 4878 additions and 36943 deletions

View file

@ -3,7 +3,7 @@
<!--
The FreeBSD Russian Documentation Project
$FreeBSD: www/ru/gnome/newsflash.xsl,v 1.1 2004/01/04 09:42:56 andy Exp $
$FreeBSD: www/ru/gnome/newsflash.xsl,v 1.2 2005/10/05 20:59:53 simon Exp $
$FreeBSDru: frdp/www/ru/gnome/newsflash.xsl,v 1.1 2003/10/26 18:32:48 andy Exp $
Original revision: 1.3
@ -103,30 +103,11 @@
<xsl:text> </xsl:text>
<xsl:value-of select="ancestor::month/name"/>,
<xsl:value-of select="ancestor::year/name"/>:</b><xsl:text> </xsl:text>
<xsl:apply-templates select="p"/>
<xsl:copy-of select="p"/>
</p>
</li>
</xsl:template>
<xsl:template match="date"/> <!-- Deliberately left blank -->
<!-- When the href attribute contains a '$base', expand it to the current
value of the $base variable. -->
<!-- All your $base are belong to us. Ho ho ho -->
<xsl:template match="a">
<a><xsl:attribute name="href">
<xsl:choose>
<xsl:when test="contains(@href, '$base')">
<xsl:value-of select="concat(substring-before(@href, '$base'), $base, substring-after(@href, '$base'))"/>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="@href"/>
</xsl:otherwise>
</xsl:choose>
</xsl:attribute>
<xsl:apply-templates/>
</a>
</xsl:template>
</xsl:stylesheet>