- 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.
96 lines
2.6 KiB
XML
Executable file
96 lines
2.6 KiB
XML
Executable file
<?xml version="1.0" encoding="ISO-8859-1" ?>
|
|
<!DOCTYPE xsl:stylesheet PUBLIC "-//FreeBSD//DTD FreeBSD XSLT 1.0 DTD//EN"
|
|
"http://www.FreeBSD.org/XML/www/share/sgml/xslt10-freebsd.dtd" [
|
|
<!ENTITY base "..">
|
|
<!ENTITY title "Flash de Noticias FreeBSD GNOME">
|
|
<!ENTITY email "freebsd-gnome">
|
|
<!ENTITY % navinclude.developers "INCLUDE">
|
|
]>
|
|
|
|
<!-- $FreeBSD: www/es/gnome/newsflash.xsl,v 1.3 2005/10/04 07:56:17 murray Exp $ -->
|
|
|
|
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"
|
|
xmlns:cvs="http://www.FreeBSD.org/XML/CVS" exclude-result-prefixes="cvs">
|
|
|
|
<xsl:import href="http://www.FreeBSD.org/XML/www/lang/share/sgml/libcommon.xsl"/>
|
|
|
|
<xsl:variable name="date">
|
|
<xsl:value-of select="//cvs:keyword[@name='freebsd']"/>
|
|
</xsl:variable>
|
|
|
|
<xsl:output type="html" encoding="iso-8859-1"/>
|
|
|
|
<xsl:template match="news">
|
|
<html>
|
|
&header1;
|
|
<body>
|
|
|
|
<div id="CONTAINERWRAP">
|
|
<div id="CONTAINER">
|
|
&header2;
|
|
|
|
<div id="CONTENT">
|
|
<div id="SIDEWRAP">
|
|
&nav;
|
|
</div> <!-- SIDEWRAP -->
|
|
|
|
<div id="CONTENTWRAP">
|
|
&header3;
|
|
|
|
<img src="&enbase;/gifs/news.jpg" align="right" border="0" width="193"
|
|
height="144" alt="Noticias FreeBSD GNOME"/>
|
|
|
|
<xsl:apply-templates select="descendant::month"/>
|
|
|
|
<a href="news.html">News Home</a>
|
|
|
|
</div> <!-- contentwrap -->
|
|
<br class="clearboth" />
|
|
|
|
</div> <!-- content -->
|
|
|
|
<div id="FOOTER">
|
|
©right;<br />
|
|
&date;
|
|
</div> <!-- FOOTER -->
|
|
</div> <!-- container -->
|
|
</div> <!-- containerwrap -->
|
|
</body>
|
|
</html>
|
|
</xsl:template>
|
|
|
|
<!-- Everything that follows are templates for the rest of the content -->
|
|
|
|
<xsl:template match="month">
|
|
<h1><xsl:value-of select="name"/>
|
|
<xsl:text> </xsl:text>
|
|
<xsl:value-of select="ancestor::year/name"/></h1>
|
|
|
|
<ul>
|
|
<xsl:apply-templates select="descendant::day"/>
|
|
</ul>
|
|
</xsl:template>
|
|
|
|
<xsl:template match="day">
|
|
<xsl:apply-templates select="event"/>
|
|
</xsl:template>
|
|
|
|
<xsl:template match="event">
|
|
<li><p><a>
|
|
<xsl:attribute name="name">
|
|
<xsl:call-template name="generate-event-anchor"/>
|
|
</xsl:attribute>
|
|
</a>
|
|
|
|
<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>
|
|
<xsl:copy-of select="p"/>
|
|
</p>
|
|
|
|
</li>
|
|
</xsl:template>
|
|
|
|
<xsl:template match="date"/> <!-- Deliberately left blank -->
|
|
</xsl:stylesheet>
|