diff options
author | Jesus Rodriguez Cuesta <jesusr@FreeBSD.org> | 2004-03-05 22:42:32 +0000 |
---|---|---|
committer | Jesus Rodriguez Cuesta <jesusr@FreeBSD.org> | 2004-03-05 22:42:32 +0000 |
commit | 0bb048cd4f85fbd2941595e2c6de03d4123db501 (patch) | |
tree | c5894d9fcd76b6f2abf61922c786669fc061f0fa /es/includes.xsl | |
parent | 2a511679696360a370de0efa25f59ced126dd82b (diff) | |
download | doc-0bb048cd4f85fbd2941595e2c6de03d4123db501.tar.gz doc-0bb048cd4f85fbd2941595e2c6de03d4123db501.zip |
Move to xml... finally!!
Submitted by: jcamou@cox.net
Fixes by: myself
Notes
Notes:
svn path=/www/; revision=20279
Diffstat (limited to 'es/includes.xsl')
-rw-r--r-- | es/includes.xsl | 136 |
1 files changed, 100 insertions, 36 deletions
diff --git a/es/includes.xsl b/es/includes.xsl index da337aab27..3e97cfd8dd 100644 --- a/es/includes.xsl +++ b/es/includes.xsl @@ -1,50 +1,49 @@ <?xml version="1.0" encoding="ISO-8859-1" ?> -<!-- $FreeBSD: www/es/includes.xsl,v 1.2 2003/05/12 10:07:31 jesusr Exp $ --> -<!-- Original version: 1.13 $ --> +<!-- $FreeBSD$ --> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> + <xsl:import href="../share/sgml/includes.xsl" /> + + <xsl:variable name="url.doc.langcode" select="'es_ES.ISO8859-1'" /> + <xsl:variable name="i.daemon"> - <img src="{$base}/gifs/daemon.gif" alt="" align="left" width="80" height="76"/> + <img src="{$enbase}/gifs/daemon.gif" alt="" align="left" width="80" height="76"/> </xsl:variable> <xsl:variable name="i.new"> - <img src="{$base}/gifs/new.gif" alt="[New!]" width="28" height="11"/> + <img src="{$enbase}/gifs/new.gif" alt="[New!]" width="28" height="11"/> </xsl:variable> - <xsl:variable name="copyright" select="'Copyright (c) 1995-2003 the FreeBSD Project. All rights reserved.'"/> + <xsl:variable name="copyright"> + <a href="{$enbase}/copyright/index.html">Copyright</a> © 1995-2004 the FreeBSD Project. Todos los derechos reservados. + </xsl:variable> <xsl:variable name="email" select="'freebsd-questions'"/> <xsl:variable name="author"> <a> <xsl:attribute name="href"> - <xsl:value-of select="concat($base, '/mailto.html')"/> + <xsl:value-of select="concat($base, '/mailto.html')"/> </xsl:attribute> <xsl:value-of select="$email"/>@FreeBSD.org</a><br/><xsl:value-of select="$copyright"/> </xsl:variable> <xsl:variable name="home"> - <a href="{$base}/index.html"><img src="{$base}/gifs/home.gif" alt="FreeBSD Home Page" border="0" align="right" width="101" height="33"/></a> + <a href="{$base}/index.html"><img src="{$enbase}/gifs/home.gif" alt="FreeBSD Home Page" border="0" align="right" width="101" height="33"/></a> </xsl:variable> <xsl:variable name="header1"> <head> <title><xsl:value-of select="$title"/></title> - + <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"/> <meta name="MSSmartTagsPreventParsing" content="TRUE"/> </head> </xsl:variable> - <xsl:attribute-set name="att.body"> - <xsl:attribute name="text">#000000</xsl:attribute> - <xsl:attribute name="bgcolor">#FFFFFF</xsl:attribute> - <xsl:attribute name="alink">#FFCC33</xsl:attribute> - </xsl:attribute-set> - <xsl:variable name="header2"> - <img src="{$base}/gifs/bar.gif" alt="Navigation Bar" width="565" + <img src="{$enbase}/gifs/bar.gif" alt="Navigation Bar" width="565" height="33" border="0" usemap="#bar"/> <h1 align="left"><font color="#660000"><xsl:value-of select="$title"/></font></h1> @@ -53,54 +52,119 @@ <map name="bar"> <area shape="rect" coords="1,1,111,31" - href="{$base}/index.html" alt="Top"/> + href="{$base}/index.html" alt="Home"/> <area shape="rect" coords="112,11,196,31" href="{$base}/ports/index.html" alt="Aplicaciones"/> <area shape="rect" coords="196,12,257,33" - href="{$base}/support.html" alt="Soporte"/> + href="{$base}/support.html" alt="Soporte"/> <area shape="rect" coords="256,12,365,33" href="{$base}/docs.html" alt="Documentació"/> <area shape="rect" coords="366,13,424,32" href="{$base}/commercial/commercial.html" alt="Vendors"/> <area shape="rect" coords="425,16,475,32" - href="{$base}/search/search.html" alt="Buscar"/> + href="{$base}/search/search.html" alt="Buscar"/> <area shape="rect" coords="477,16,516,33" href="{$base}/search/index-site.html" alt="Index"/> <area shape="rect" coords="516,15,562,33" href="{$base}/index.html" alt="Top"/> - <area shape="rect" coords="0,0,564,32" - href="{$base}/index.html" alt="Top"/> + <area shape="rect" coords="0,0,564,32" + href="{$base}/index.html" alt="Top"/> </map> </xsl:variable> - <xsl:variable name="footer"> - <hr noshade="noshade"/> - <address><xsl:copy-of select="$author"/><br/> - <xsl:copy-of select="$date"/></address> - </xsl:variable> + <!-- template: "html-index-advisories-items-lastmodified" --> + + <xsl:template name="html-index-advisories-items-lastmodified"> + <xsl:param name="advisories.xml" select="''" /> + + <xsl:value-of select="document($advisories.xml)/descendant::day[position() = 1]/name"/> + <xsl:text> </xsl:text> + <xsl:call-template name="transtable-lookup"> + <xsl:with-param name="word-group" select="'number-month'" /> + <xsl:with-param name="word"> + <xsl:value-of select="document($advisories.xml)/descendant::month[position() = 1]/name"/> + </xsl:with-param> + </xsl:call-template> + <xsl:text> </xsl:text> + <xsl:value-of select="document($advisories.xml)/descendant::year[position() = 1]/name"/> + </xsl:template> + + <!-- template: "html-index-news-project-items" + pulls in the 10 most recent project items --> + + <xsl:template name="html-index-news-project-items"> + <xsl:param name="news.project.xml" select="''" /> + + <xsl:for-each select="document($news.project.xml)/descendant::event[position() <= 10]"> + <xsl:value-of select="$leadingmark" /><a> + <xsl:attribute name="href"> + <xsl:value-of select="$enbase"/>/news/newsflash.html#<xsl:call-template name="generate-event-anchor"/> + </xsl:attribute> + <xsl:choose> + <xsl:when test="count(child::title)"> + <xsl:value-of select="title"/><br/> + </xsl:when> + <xsl:otherwise> + <xsl:value-of select="p"/><br/> + </xsl:otherwise> + </xsl:choose> + </a> + </xsl:for-each> + </xsl:template> + + <!-- template: "html-index-news-press-items" + pulls in the 10 most recent press items --> + + <xsl:template name="html-index-news-press-items"> + <xsl:param name="news.press.xml" select="''" /> + + <xsl:for-each select="document($news.press.xml)/descendant::story[position() < 10]"> + <xsl:value-of select="$leadingmark" /><a> + <xsl:attribute name="href"> + <xsl:value-of select="$enbase"/>/news/press.html#<xsl:call-template name="generate-story-anchor"/> + </xsl:attribute> + <xsl:value-of select="name"/> + </a><br/> + </xsl:for-each> + </xsl:template> + + <!-- template: "html-index-news-project-items-lastmodified" --> + + <xsl:template name="html-index-news-project-items-lastmodified"> + <xsl:param name="news.project.xml" select="''" /> + + <xsl:value-of select="document($news.project.xml)/descendant::day[position() = 1]/name"/> + <xsl:text> </xsl:text> + <xsl:call-template name="transtable-lookup"> + <xsl:with-param name="word-group" select="'number-month'" /> + <xsl:with-param name="word"> + <xsl:value-of select="document($news.project.xml)/descendant::month[position() = 1]/name"/> + </xsl:with-param> + </xsl:call-template> + <xsl:text> </xsl:text> + <xsl:value-of select="document($news.project.xml)/descendant::year[position() = 1]/name"/> + </xsl:template> - <xsl:variable name="rel.current" select='"5.0"'/> <xsl:variable name="u.rel.notes"> - <xsl:value-of select="$base"/>/releases/<xsl:value-of select="$rel.current"/>R/relnotes.html</xsl:variable> + <xsl:value-of select="$enbase"/>/releases/<xsl:value-of select="$rel.current"/>R/relnotes.html</xsl:variable> <xsl:variable name="u.rel.announce"> - <xsl:value-of select="$base"/>/releases/<xsl:value-of select="$rel.current"/>R/announce.html</xsl:variable> + <xsl:value-of select="$enbase"/>/releases/<xsl:value-of select="$rel.current"/>R/announce.html</xsl:variable> <xsl:variable name="u.rel.errata"> - <xsl:value-of select="$base"/>/releases/<xsl:value-of select="$rel.current"/>R/errata.html</xsl:variable> + <xsl:value-of select="$enbase"/>/releases/<xsl:value-of select="$rel.current"/>R/errata.html</xsl:variable> <xsl:variable name="u.rel.hardware"> - <xsl:value-of select="$base"/>/releases/<xsl:value-of select="$rel.current"/>R/hardware.html</xsl:variable> + <xsl:value-of select="$enbase"/>/releases/<xsl:value-of select="$rel.current"/>R/hardware.html</xsl:variable> <xsl:variable name="u.rel.early"> - <xsl:value-of select="$base"/>/releases/<xsl:value-of select="$rel.current"/>R/early-adopter.html</xsl:variable> + <xsl:value-of select="$enbase"/>/releases/<xsl:value-of select="$rel.current"/>R/early-adopter.html</xsl:variable> - <xsl:variable name="rel2.current" select='"4.9"'/> <xsl:variable name="u.rel2.notes"> - <xsl:value-of select="$base"/>/releases/<xsl:value-of select="$rel2.current"/>R/relnotes.html</xsl:variable> + <xsl:value-of select="$enbase"/>/releases/<xsl:value-of select="$rel2.current"/>R/relnotes.html</xsl:variable> <xsl:variable name="u.rel2.announce"> - <xsl:value-of select="$base"/>/releases/<xsl:value-of select="$rel2.current"/>R/announce.html</xsl:variable> + <xsl:value-of select="$enbase"/>/releases/<xsl:value-of select="$rel2.current"/>R/announce.html</xsl:variable> <xsl:variable name="u.rel2.errata"> - <xsl:value-of select="$base"/>/releases/<xsl:value-of select="$rel2.current"/>R/errata.html</xsl:variable> + <xsl:value-of select="$enbase"/>/releases/<xsl:value-of select="$rel2.current"/>R/errata.html</xsl:variable> <xsl:variable name="u.rel2.hardware"> - <xsl:value-of select="$base"/>/releases/<xsl:value-of select="$rel2.current"/>R/hardware.html</xsl:variable> + <xsl:value-of select="$enbase"/>/releases/<xsl:value-of select="$rel2.current"/>R/hardware.html</xsl:variable> </xsl:stylesheet> |