Add refinements on mirrors.xml:
- add doc.common.mk, which defines variables, targets, and
dependencies commonly used in www/ and doc/.
- move www/<lang>/includes.xsl to the language independent
directory and split into several files.
- add transtable*.xsl and transtable.xml to support localized
mirror names.
- make doc/{en_US.ISO8859-1,ja_JP.eucJP}/books/handbook/ use
mirrors.xml (mirrors and eresources).
- make www/{en,ja}/index.xsl use mirrors.xml.
For details, please see doc/share/sgml/README.mirrors for the moment.
Reviewed by: simon and Alex Dupre <sysadmin@alexdupre.com>
This commit is contained in:
parent
17d4072afd
commit
c1cc8a1352
Notes:
svn2git
2020-12-08 03:00:23 +00:00
svn path=/www/; revision=18976
13 changed files with 339 additions and 343 deletions
21
en/Makefile
21
en/Makefile
|
|
@ -1,4 +1,4 @@
|
|||
# $FreeBSD: www/en/Makefile,v 1.99 2003/10/29 20:42:50 simon Exp $
|
||||
# $FreeBSD: www/en/Makefile,v 1.100 2003/11/16 18:56:24 hrs Exp $
|
||||
.if exists(Makefile.conf)
|
||||
.include "Makefile.conf"
|
||||
.endif
|
||||
|
|
@ -91,13 +91,6 @@ WEBDIR?= data
|
|||
DATA+= index.html
|
||||
CLEANFILES+= index.html
|
||||
|
||||
index.html: index.xsl news/news.xml news/press.xml includes.xsl news/includes.xsl security/advisories.xml ../../doc/share/sgml/mirrors.xml
|
||||
${XSLTPROC} ${XSLTPROCOPTS} -o ${.TARGET} \
|
||||
${.CURDIR}/index.xsl ${.CURDIR}/news/news.xml
|
||||
.if !defined(NO_TIDY)
|
||||
-${TIDY} ${TIDYOPTS} ${.TARGET}
|
||||
.endif
|
||||
|
||||
WEBCHECK?= ${PREFIX}/bin/webcheck
|
||||
WEBCHECKOPTS?= -ab ${WEBCHECKFLAGS}
|
||||
WEBCHECKDIR?= /webcheck
|
||||
|
|
@ -109,3 +102,15 @@ webcheck:
|
|||
${WEBCHECK} ${WEBCHECKOPTS} -o ${WEBCHECKINSTALLDIR} ${WEBCHECKURL}
|
||||
|
||||
.include "${WEB_PREFIX}/share/mk/web.site.mk"
|
||||
|
||||
index.html: index.xsl ${XML_INCLUDES}\
|
||||
${XML_NEWS_INCLUDES} ${XML_NEWS_NEWS}\
|
||||
${XML_MIRRORS} ${XML_ADVISORIES}
|
||||
${XSLTPROC} ${XSLTPROCOPTS} \
|
||||
-o $@ \
|
||||
--param mirrors.xml "'${XML_MIRRORS}'" \
|
||||
--param advisories.xml "'${XML_ADVISORIES}'" \
|
||||
${.CURDIR}/index.xsl ${XML_NEWS_NEWS}
|
||||
.if !defined(NO_TIDY)
|
||||
-${TIDY} ${TIDYOPTS} ${.TARGET}
|
||||
.endif
|
||||
|
|
|
|||
115
en/includes.xsl
115
en/includes.xsl
|
|
@ -1,120 +1,13 @@
|
|||
<?xml version="1.0" encoding="ISO-8859-1" ?>
|
||||
|
||||
<!-- $FreeBSD: www/en/includes.xsl,v 1.18 2003/11/16 18:56:24 hrs Exp $ -->
|
||||
<!-- $FreeBSD: www/en/includes.xsl,v 1.19 2003/11/17 06:28:19 hrs Exp $ -->
|
||||
|
||||
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
|
||||
|
||||
<xsl:template name="transtable">
|
||||
<xsl:param name="name" />
|
||||
<xsl:value-of select="$name"/>
|
||||
</xsl:template>
|
||||
<xsl:import href="../share/sgml/includes.xsl" />
|
||||
|
||||
<xsl:variable name="mirrors" select="'../../doc/share/sgml/mirrors.xml'" />
|
||||
<xsl:variable name="url.doc.langcode" select="'en_US.ISO8859-1'" />
|
||||
|
||||
<xsl:variable name="i.daemon">
|
||||
<img src="{$base}/gifs/daemon.gif" alt="" align="left" width="80" height="76"/>
|
||||
</xsl:variable>
|
||||
<!-- Language-specific definitions should be put below this line -->
|
||||
|
||||
<xsl:variable name="i.new">
|
||||
<img src="{$base}/gifs/new.gif" alt="[New!]" width="28" height="11"/>
|
||||
</xsl:variable>
|
||||
|
||||
<xsl:variable name="copyright">
|
||||
<a href="{$base}/copyright/index.html">Copyright</a> © 1995-2003 the FreeBSD Project. All rights reserved.
|
||||
</xsl:variable>
|
||||
|
||||
<!-- Often used trademarks -->
|
||||
<xsl:variable name="unix" select="'UNIX®'"/>
|
||||
<xsl:variable name="java" select="'Java™'"/>
|
||||
<xsl:variable name="jdk" select="'JDK™'"/>
|
||||
<xsl:variable name="posix" select="'POSIX®'"/>
|
||||
|
||||
<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:attribute>
|
||||
<xsl:value-of select="$email"/>@FreeBSD.org</a><br/><xsl:copy-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>
|
||||
</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"
|
||||
height="33" border="0" usemap="#bar"/>
|
||||
|
||||
<h1 align="left"><font color="#660000"><xsl:value-of select="$title"/></font></h1>
|
||||
|
||||
<br clear="all"/>
|
||||
|
||||
<map name="bar">
|
||||
<area shape="rect" coords="1,1,111,31"
|
||||
href="{$base}/index.html" alt="Top"/>
|
||||
<area shape="rect" coords="112,11,196,31"
|
||||
href="{$base}/ports/index.html" alt="Applications"/>
|
||||
<area shape="rect" coords="196,12,257,33"
|
||||
href="{$base}/support.html" alt="Support"/>
|
||||
<area shape="rect" coords="256,12,365,33"
|
||||
href="{$base}/docs.html" alt="Documentation"/>
|
||||
<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="Search"/>
|
||||
<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"/>
|
||||
</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>
|
||||
|
||||
<xsl:variable name="rel.current" select='"5.1"'/>
|
||||
<xsl:variable name="u.rel.notes">
|
||||
<xsl:value-of select="$base"/>/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:variable name="u.rel.errata">
|
||||
<xsl:value-of select="$base"/>/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:variable name="u.rel.early">
|
||||
<xsl:value-of select="$base"/>/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:variable name="u.rel2.announce">
|
||||
<xsl:value-of select="$base"/>/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:variable name="u.rel2.hardware">
|
||||
<xsl:value-of select="$base"/>/releases/<xsl:value-of select="$rel2.current"/>R/hardware.html</xsl:variable>
|
||||
|
||||
</xsl:stylesheet>
|
||||
|
|
|
|||
56
en/index.xsl
56
en/index.xsl
|
|
@ -1,4 +1,4 @@
|
|||
<!-- $FreeBSD: www/en/index.xsl,v 1.81 2003/11/16 18:56:24 hrs Exp $ -->
|
||||
<!-- $FreeBSD: www/en/index.xsl,v 1.82 2003/11/17 06:28:19 hrs Exp $ -->
|
||||
|
||||
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
|
||||
|
||||
|
|
@ -6,7 +6,7 @@
|
|||
<xsl:import href="news/includes.xsl"/>
|
||||
|
||||
<xsl:variable name="base" select="'.'"/>
|
||||
<xsl:variable name="date" select="'$FreeBSD: www/en/index.xsl,v 1.81 2003/11/16 18:56:24 hrs Exp $'"/>
|
||||
<xsl:variable name="date" select="'$FreeBSD: www/en/index.xsl,v 1.82 2003/11/17 06:28:19 hrs Exp $'"/>
|
||||
<xsl:variable name="title" select="'The FreeBSD Project'"/>
|
||||
|
||||
<xsl:output type="html" encoding="iso-8859-1"
|
||||
|
|
@ -50,47 +50,9 @@
|
|||
which are not mirrored should be listed in
|
||||
support.sgml. -->
|
||||
|
||||
<xsl:for-each select="document($mirrors)/mirrors/entry[url[contains(@proto, 'httpv6')]]">
|
||||
<xsl:for-each select="url[contains(@proto, 'httpv6') and contains(@type, 'www')]">
|
||||
<option><xsl:attribute name="value"><xsl:value-of select="." /></xsl:attribute>
|
||||
<xsl:choose>
|
||||
<xsl:when test="last() = 1">
|
||||
<xsl:value-of select="'IPv6 '" />
|
||||
<xsl:call-template name="transtable">
|
||||
<xsl:with-param name="name" select="../country" />
|
||||
</xsl:call-template>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<xsl:value-of select="'IPv6 '" />
|
||||
<xsl:call-template name="transtable">
|
||||
<xsl:with-param name="name" select="../country" />
|
||||
</xsl:call-template>
|
||||
<xsl:value-of select="concat('/', position())" />
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</option>
|
||||
</xsl:for-each>
|
||||
</xsl:for-each>
|
||||
|
||||
<xsl:for-each select="document($mirrors)/mirrors/entry[url[contains(@proto, 'http')]]">
|
||||
<xsl:for-each select="url[contains(@proto, 'http') and contains(@type, 'www')]">
|
||||
<option><xsl:attribute name="value"><xsl:value-of select="." /></xsl:attribute>
|
||||
<xsl:choose>
|
||||
<xsl:when test="last() = 1">
|
||||
<xsl:call-template name="transtable">
|
||||
<xsl:with-param name="name" select="../country" />
|
||||
</xsl:call-template>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<xsl:call-template name="transtable">
|
||||
<xsl:with-param name="name" select="../country" />
|
||||
</xsl:call-template>
|
||||
<xsl:value-of select="concat('/', position())" />
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</option>
|
||||
</xsl:for-each>
|
||||
</xsl:for-each>
|
||||
<xsl:call-template name="html-index-mirrors-options-list">
|
||||
<xsl:with-param name="mirrors.xml" select="$mirrors.xml" />
|
||||
</xsl:call-template>
|
||||
</select>
|
||||
|
||||
<input type="submit" value=" Go "/>
|
||||
|
|
@ -418,16 +380,16 @@
|
|||
<font size="-1">
|
||||
Latest update:
|
||||
<xsl:value-of
|
||||
select="document('security/advisories.xml')/descendant::month[position() = 1]/name"/>
|
||||
select="document($advisories.xml)/descendant::month[position() = 1]/name"/>
|
||||
<xsl:text> </xsl:text>
|
||||
<xsl:value-of
|
||||
select="document('security/advisories.xml')/descendant::day[position() = 1]/name"/>
|
||||
select="document($advisories.xml)/descendant::day[position() = 1]/name"/>
|
||||
<xsl:text>, </xsl:text>
|
||||
<xsl:value-of
|
||||
select="document('security/advisories.xml')/descendant::year[position() = 1]/name"/>
|
||||
select="document($advisories.xml)/descendant::year[position() = 1]/name"/>
|
||||
<br/>
|
||||
<!-- Pull in the 10 most recent security advisories -->
|
||||
<xsl:for-each select="document('security/advisories.xml')/descendant::advisory[position() < 10]">
|
||||
<xsl:for-each select="document($advisories.xml)/descendant::advisory[position() < 10]">
|
||||
· <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"/>
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
# $FreeBSD: www/en/security/Makefile,v 1.7 2000/11/07 04:05:36 kuriyama Exp $
|
||||
# $FreeBSD: www/en/security/Makefile,v 1.8 2003/09/29 16:46:32 hrs Exp $
|
||||
|
||||
.if exists(../Makefile.conf)
|
||||
.include "../Makefile.conf"
|
||||
|
|
@ -18,6 +18,6 @@ CLEANFILES+= advisories.html.inc
|
|||
|
||||
security.html: advisories.html.inc
|
||||
|
||||
advisories.html.inc: mkindex.xsl advisories.xml
|
||||
advisories.html.inc: mkindex.xsl ${XML_ADVISORIES}
|
||||
${XSLTPROC} ${XSLTPROCOPTS} -o ${.TARGET} \
|
||||
${.CURDIR}/mkindex.xsl ${.CURDIR}/advisories.xml
|
||||
${.CURDIR}/mkindex.xsl ${XML_ADVISORIES}
|
||||
|
|
|
|||
21
ja/Makefile
21
ja/Makefile
|
|
@ -1,4 +1,4 @@
|
|||
# $FreeBSD: www/ja/Makefile,v 1.60 2003/11/17 06:28:19 hrs Exp $
|
||||
# $FreeBSD: www/ja/Makefile,v 1.61 2003/11/18 22:11:26 rushani Exp $
|
||||
# The FreeBSD Japanese Documentation Project
|
||||
# Original revision: 1.83
|
||||
|
||||
|
|
@ -85,14 +85,19 @@ WEBDIR= data/ja
|
|||
DATA+= index.html
|
||||
CLEANFILES+= index.html
|
||||
|
||||
index.html: index.xsl news/news.xml news/press.xml includes.xsl news/includes.xsl ../en/security/advisories.xml ../../doc/share/sgml/mirrors.xml ../../doc/ja_JP.eucJP/share/sgml/transtable.xsl ../../doc/ja_JP.eucJP/share/sgml/transtable.xml
|
||||
${XSLTPROC} ${XSLTPROCOPTS} -o index.html \
|
||||
${.CURDIR}/index.xsl ${.CURDIR}/news/news.xml
|
||||
.if !defined(NO_TIDY)
|
||||
-${TIDY} ${TIDYOPTS} ${.TARGET}
|
||||
.endif
|
||||
|
||||
### Revision checking
|
||||
REVCHECK= yes
|
||||
|
||||
.include "${WEB_PREFIX}/share/mk/web.site.mk"
|
||||
|
||||
index.html: index.xsl ${XML_INCLUDES}\
|
||||
${XML_NEWS_INCLUDES} ${XML_NEWS_NEWS}\
|
||||
${XML_MIRRORS} ${XML_ADVISORIES}
|
||||
${XSLTPROC} ${XSLTPROCOPTS} \
|
||||
-o $@ \
|
||||
--param mirrors.xml "'${XML_MIRRORS}'" \
|
||||
--param advisories.xml "'${XML_ADVISORIES}'" \
|
||||
${.CURDIR}/index.xsl ${XML_NEWS_NEWS}
|
||||
.if !defined(NO_TIDY)
|
||||
-${TIDY} ${TIDYOPTS} ${.TARGET}
|
||||
.endif
|
||||
|
|
|
|||
|
|
@ -1,61 +1,13 @@
|
|||
<?xml version="1.0" encoding="EUC-JP" ?>
|
||||
|
||||
<!-- $FreeBSD: www/ja/includes.xsl,v 1.16 2003/11/02 07:54:23 rushani Exp $ -->
|
||||
<!-- $FreeBSD: www/ja/includes.xsl,v 1.17 2003/11/17 06:28:19 hrs Exp $ -->
|
||||
<!-- Original revision: 1.19 -->
|
||||
|
||||
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
|
||||
|
||||
<xsl:import href="../../doc/ja_JP.eucJP/share/sgml/transtable.xsl"/>
|
||||
<xsl:import href="../share/sgml/includes.xsl" />
|
||||
|
||||
<xsl:variable name="mirrors" select="'../../doc/share/sgml/mirrors.xml'" />
|
||||
|
||||
<xsl:variable name="enbase" select='concat ($base, "/..")'/>
|
||||
|
||||
<xsl:variable name="i.daemon">
|
||||
<img src="{$base}/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"/>
|
||||
</xsl:variable>
|
||||
|
||||
<xsl:variable name="copyright">
|
||||
<a href="{$base}/copyright/index.html">Copyright</a> © 1995-2003 the FreeBSD Project. All rights reserved.
|
||||
</xsl:variable>
|
||||
|
||||
<!-- Often used trademarks -->
|
||||
<xsl:variable name="unix" select="'UNIX®'"/>
|
||||
<xsl:variable name="java" select="'Java™'"/>
|
||||
<xsl:variable name="jdk" select="'JDK™'"/>
|
||||
<xsl:variable name="posix" select="'POSIX®'"/>
|
||||
|
||||
<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:attribute>
|
||||
<xsl:value-of select="$email"/>@FreeBSD.org</a><br/><xsl:copy-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>
|
||||
</xsl:variable>
|
||||
|
||||
<xsl:variable name="header1">
|
||||
<head>
|
||||
<title><xsl:value-of select="$title"/></title>
|
||||
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=EUC-JP"/>
|
||||
<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="url.doc.langcode" select="'ja_JP.eucJP'" />
|
||||
|
||||
<xsl:variable name="header2">
|
||||
<img src="{$base}/../gifs/bar.gif" alt="メニュー" width="565"
|
||||
|
|
@ -96,32 +48,47 @@
|
|||
までお願いします)
|
||||
</address>
|
||||
</xsl:variable>
|
||||
|
||||
<xsl:variable name="rel.current" select='"5.1"'/>
|
||||
|
||||
<!--
|
||||
<xsl:variable name="u.rel.notes">
|
||||
<xsl:value-of select="$base"/>/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:variable name="u.rel.errata">
|
||||
<xsl:value-of select="$base"/>/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:variable name="u.rel.early">
|
||||
<xsl:value-of select="$base"/>/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:variable name="u.rel2.announce">
|
||||
<xsl:value-of select="$base"/>/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="$base"/>/releases/<xsl:value-of select="$rel2.current"/>R/errata.html</xsl:variable>-->
|
||||
|
||||
<xsl:variable name="u.rel2.hardware">
|
||||
<xsl:value-of select="$enbase"/>/releases/<xsl:value-of select="$rel2.current"/>R/hardware.html</xsl:variable>
|
||||
<!-- 2002/01/02:hrs - when the translation is finished, $enbase should be "$base" -->
|
||||
|
||||
</xsl:stylesheet>
|
||||
|
|
|
|||
162
ja/index.xsl
162
ja/index.xsl
|
|
@ -1,16 +1,16 @@
|
|||
<?xml version="1.0" encoding="EUC-JP" ?>
|
||||
|
||||
<!-- $FreeBSD: www/ja/index.xsl,v 1.31 2003/11/02 07:54:23 rushani Exp $ -->
|
||||
<!-- $FreeBSD: www/ja/index.xsl,v 1.32 2003/11/17 06:28:19 hrs Exp $ -->
|
||||
<!-- Original revision: 1.81 -->
|
||||
|
||||
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
|
||||
|
||||
|
||||
<xsl:import href="includes.xsl"/>
|
||||
<xsl:import href="news/includes.xsl"/>
|
||||
|
||||
<xsl:variable name="base" select="'.'"/>
|
||||
<xsl:variable name="enbase" select="'..'"/>
|
||||
<xsl:variable name="date" select="'$FreeBSD: www/ja/index.xsl,v 1.31 2003/11/02 07:54:23 rushani Exp $'"/>
|
||||
<xsl:variable name="date" select="'$FreeBSD: www/ja/index.xsl,v 1.32 2003/11/17 06:28:19 hrs Exp $'"/>
|
||||
<xsl:variable name="title" select="'The FreeBSD Project'"/>
|
||||
|
||||
<xsl:output type="html" encoding="EUC-JP"
|
||||
|
|
@ -20,88 +20,50 @@
|
|||
<html>
|
||||
<head>
|
||||
<title><xsl:value-of select="$title"/></title>
|
||||
|
||||
|
||||
<meta name="description" content="The FreeBSD Project"/>
|
||||
|
||||
|
||||
<meta name="keywords" content="FreeBSD, BSD, UNIX, Support, Gallery,
|
||||
Release, Application, Software, Handbook, FAQ, Tutorials, Bugs,
|
||||
CVS, CVSup, News, Commercial Vendors, homepage, CTM, Unix"/>
|
||||
<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon"/>
|
||||
<link rel="icon" href="/favicon.ico" type="image/x-icon"/>
|
||||
</head>
|
||||
|
||||
|
||||
<body bgcolor="#FFFFFF" text="#000000" link="#0000FF" vlink="#840084"
|
||||
alink="#0000FF">
|
||||
|
||||
|
||||
<table border="0" cellspacing="0" cellpadding="0" width="100%">
|
||||
<tr>
|
||||
<td><a href="http://www.FreeBSD.org/index.html">
|
||||
<img src="../gifs/freebsd_1.gif" height="94" width="306"
|
||||
alt="FreeBSD: このパワーをあなたのために" border="0"/></a></td>
|
||||
|
||||
|
||||
<td align="right" valign="bottom">
|
||||
<form action="http://www.FreeBSD.org/cgi/mirror.cgi"
|
||||
method="get">
|
||||
|
||||
|
||||
<br/>
|
||||
|
||||
|
||||
<font color="#990000"><b>お近くのサーバをお選びください:</b></font>
|
||||
|
||||
|
||||
<br/>
|
||||
|
||||
|
||||
<select name="goto">
|
||||
<!-- Only list TRUE mirrors here! Native language pages
|
||||
which are not mirrored should be listed in
|
||||
support.sgml. -->
|
||||
|
||||
<xsl:for-each select="document($mirrors)/mirrors/entry[url[contains(@proto, 'httpv6')]]">
|
||||
<xsl:for-each select="url[contains(@proto, 'httpv6') and contains(@type, 'www')]">
|
||||
<option><xsl:attribute name="value"><xsl:value-of select="." /></xsl:attribute>
|
||||
<xsl:choose>
|
||||
<xsl:when test="last() = 1">
|
||||
<xsl:value-of select="'IPv6 '" />
|
||||
<xsl:call-template name="transtable">
|
||||
<xsl:with-param name="name" select="../country" />
|
||||
</xsl:call-template>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<xsl:value-of select="'IPv6 '" />
|
||||
<xsl:call-template name="transtable">
|
||||
<xsl:with-param name="name" select="../country" />
|
||||
</xsl:call-template>
|
||||
<xsl:value-of select="concat('/', position())" />
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</option>
|
||||
</xsl:for-each>
|
||||
</xsl:for-each>
|
||||
|
||||
<xsl:for-each select="document($mirrors)/mirrors/entry[url[contains(@proto, 'http')]]">
|
||||
<xsl:for-each select="url[contains(@proto, 'http') and contains(@type, 'www')]">
|
||||
<option><xsl:attribute name="value"><xsl:value-of select="." /></xsl:attribute>
|
||||
<xsl:choose>
|
||||
<xsl:when test="last() = 1">
|
||||
<xsl:call-template name="transtable">
|
||||
<xsl:with-param name="name" select="../country" />
|
||||
</xsl:call-template>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<xsl:call-template name="transtable">
|
||||
<xsl:with-param name="name" select="../country" />
|
||||
</xsl:call-template>
|
||||
<xsl:value-of select="concat('/', position())" />
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</option>
|
||||
</xsl:for-each>
|
||||
</xsl:for-each>
|
||||
<xsl:call-template name="html-index-mirrors-options-list">
|
||||
<xsl:with-param name="mirrors.xml" select="$mirrors.xml" />
|
||||
</xsl:call-template>
|
||||
</select>
|
||||
|
||||
<input type="submit" value=" Go "/>
|
||||
|
||||
|
||||
<br/>
|
||||
|
||||
<font color="#990000"><b>¸À¸ì: </b></font>
|
||||
|
||||
<font color="#990000"><b>¸À¸ì: </b></font>
|
||||
<a href="{$enbase}/de/index.html" title="ドイツ語">[de]</a>
|
||||
<xsl:text> </xsl:text>
|
||||
<a href="{$enbase}/index.html" title="英語">[en]</a>
|
||||
|
|
@ -119,9 +81,9 @@
|
|||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
|
||||
<br/>
|
||||
|
||||
|
||||
<hr size="1" noshade="noshade"/>
|
||||
|
||||
<!-- Main layout table -->
|
||||
|
|
@ -138,22 +100,20 @@
|
|||
<td>
|
||||
<p><font size="+1" color="#990000"><b>ニュース</b></font>
|
||||
|
||||
|
||||
<small><br/>
|
||||
・<a href="news/newsflash.html">アナウンス</a><br/>
|
||||
・<a href="news/press.html">報道</a><br/>
|
||||
・<a href="news/index.html">さらに ...</a>
|
||||
</small></p>
|
||||
|
||||
|
||||
<p><font size="+1" color="#990000"><b>ソフトウェア</b></font>
|
||||
<small><br/>
|
||||
・<a href="{$enbase}/doc/ja_JP.eucJP/books/handbook/mirrors.html">FreeBSD を手に入れる</a><br/>
|
||||
・<a href="releases/index.html">リリース情報</a><br/>
|
||||
・<a href="{$base}/ports/index.html">Ports Collection</a><br/>
|
||||
</small></p>
|
||||
|
||||
|
||||
<p><font size="+1" color="#990000"><b>ドキュメント</b></font>
|
||||
|
||||
<small><br/>
|
||||
・<a href="projects/newbies.html">初心者のために</a><br/>
|
||||
・<a href="{$enbase}/doc/ja_JP.eucJP/books/handbook/index.html">ハンドブック</a><br/>
|
||||
|
|
@ -162,9 +122,8 @@
|
|||
・<a href="{$base}/docproj/index.html">Doc. Project</a><br/>
|
||||
・<a href="docs.html">さらに...</a><br/>
|
||||
</small></p>
|
||||
|
||||
|
||||
<p><font size="+1" color="#990000"><b>サポート</b></font>
|
||||
|
||||
<small><br/>
|
||||
・<a href="{$base}/support.html#mailing-list">メーリングリスト</a><br/>
|
||||
・<a href="{$base}/support.html#newsgroups">ニュースグループ</a><br/>
|
||||
|
|
@ -183,17 +142,14 @@
|
|||
・<a href="{$base}/support.html#gnats">さらに...</a><br/>
|
||||
</small></p>
|
||||
|
||||
|
||||
<p><font size="+1" color="#990000"><b>開発</b></font>
|
||||
|
||||
<small><br/>
|
||||
・<a href="projects/index.html">プロジェクト</a><br/>
|
||||
・<a href="../releng/index.html">Release Engineering</a><br/>
|
||||
・<a href="{$base}/support.html#cvs">CVS リポジトリ</a><br/>
|
||||
</small></p>
|
||||
|
||||
|
||||
<p><font size="+1" color="#990000"><b>ベンダ</b></font>
|
||||
|
||||
<small><br/>
|
||||
・<a href="{$base}/../commercial/software_bycat.html">ソフトウェア</a><br/>
|
||||
・<a href="{$base}/../commercial/hardware.html">ハードウェア</a><br/>
|
||||
|
|
@ -207,15 +163,14 @@
|
|||
・<a href="{$enbase}/donations/donors.html">現在の寄贈品</a><br/>
|
||||
・<a href="{$enbase}/donations/wantlist.html">寄付募集リスト</a><br/>
|
||||
</small></p>
|
||||
|
||||
|
||||
<p><font size="+1" color="#990000"><b>このサイトについて</b></font>
|
||||
|
||||
<small><br/>
|
||||
・<a href="{$base}/search/index-site.html">サイトマップ</a><br/>
|
||||
・<a href="{$base}/search/search.html">検索</a><br/>
|
||||
・<a href="internal/index.html">さらに...</a><br/>
|
||||
</small></p>
|
||||
|
||||
|
||||
<form action="http://www.FreeBSD.org/cgi/search.cgi" method="get">
|
||||
<small>検索:<br/>
|
||||
<input type="text" name="words" size="10"/>
|
||||
|
|
@ -229,15 +184,14 @@
|
|||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
|
||||
|
||||
<td></td>
|
||||
|
||||
|
||||
<!-- Main body column -->
|
||||
|
||||
<td align="left" valign="top" rowspan="2">
|
||||
|
||||
<h2><font color="#990000">FreeBSD とは?</font></h2>
|
||||
|
||||
|
||||
<p>FreeBSD は x86 互換機、DEC Alpha、IA-64、PC-98、UltraSPARC®
|
||||
アーキテクチャ用の先進的なオペレーティングシステムです。
|
||||
カリフォルニア大学バークレイ校で開発された <xsl:value-of select="$unix"/>
|
||||
|
|
@ -246,14 +200,14 @@
|
|||
によって保守・開発されています。
|
||||
その他の<a href="{$base}/platforms/index.html">プラットフォーム
|
||||
</a> は現在開発中です。</p>
|
||||
|
||||
|
||||
<h2><font color="#990000">最先端の機能</font></h2>
|
||||
|
||||
<p>FreeBSD は (市販の最良のものも含めて) 他のオペレーティング
|
||||
システムに未だに欠けている最先端のネットワーク、パフォーマンス、
|
||||
セキュリティ、互換性といった <a href="{$base}/features.html">
|
||||
機能</a> を今、提供しています。</p>
|
||||
|
||||
|
||||
<h2><font color="#990000">強力なインターネットサポート</font></h2>
|
||||
|
||||
<p>FreeBSD は理想的な <a href="{$base}/internet.html">
|
||||
|
|
@ -265,7 +219,7 @@
|
|||
載せていますので、ぜひわたしたちの
|
||||
<a href="gallery/gallery.html">ギャラリー</a>
|
||||
をご覧になってみてください。</p>
|
||||
|
||||
|
||||
<h2><font color="#990000">数多くの対応アプリケーション</font></h2>
|
||||
|
||||
<p>高い品質を持つ FreeBSD と、今日の低価格で高速な
|
||||
|
|
@ -275,7 +229,7 @@
|
|||
デスクトップ用、サーバ用の両方について、膨大な数の
|
||||
<a href="{$base}/applications.html">アプリケーション</a>
|
||||
も用意されています。</p>
|
||||
|
||||
|
||||
<h2><font color="#990000">簡単インストール</font></h2>
|
||||
|
||||
<p>FreeBSD は CD-ROM や DVD-ROM、フロッピーディスク、磁気テープ、MS-DOS®
|
||||
|
|
@ -287,11 +241,11 @@
|
|||
だけです。</p>
|
||||
|
||||
<h2><font color="#990000"><i>無料</i>で使える FreeBSD</font></h2>
|
||||
|
||||
<a href="copyright/daemon.html"><img src="../gifs/dae_up3.gif"
|
||||
|
||||
<a href="copyright/daemon.html"><img src="../gifs/dae_up3.gif"
|
||||
alt=""
|
||||
height="81" width="72"
|
||||
align="right"
|
||||
height="81" width="72"
|
||||
align="right"
|
||||
border="0"/></a>
|
||||
|
||||
<p>このような特色を持ったオペレーティングシステムは高い値段で
|
||||
|
|
@ -349,7 +303,7 @@
|
|||
<tr>
|
||||
<td valign="top"><p><font size="+1" color="#990000"><b>テクノロジリリース:
|
||||
<xsl:value-of select="$rel.current"/></b></font><br/>
|
||||
|
||||
|
||||
<small>・<a href="{$u.rel.announce}">アナウンス</a><br/>
|
||||
・<a href="{$enbase}/doc/ja_JP.eucJP/books/handbook/install.html">インストールガイド</a><br/>
|
||||
・<a href="{$u.rel.notes}">リリースノート</a><br/>
|
||||
|
|
@ -359,7 +313,7 @@
|
|||
|
||||
<p><font size="+1" color="#990000"><b>プロダクションリリース:
|
||||
<xsl:value-of select="$rel2.current"/></b></font><br/>
|
||||
|
||||
|
||||
<small>・<a href="{$u.rel2.announce}">アナウンス</a><br/>
|
||||
・<a href="{$enbase}/doc/ja_JP.eucJP/books/handbook/install.html">インストールガイド</a><br/>
|
||||
・<a href="{$u.rel2.notes}">リリースノート</a><br/>
|
||||
|
|
@ -368,7 +322,7 @@
|
|||
|
||||
<p><font size="+1" color="#990000"><b>Project News</b></font><br/>
|
||||
<font size="-1">
|
||||
ºÇ½ª¹¹¿·:
|
||||
ºÇ½ª¹¹¿·:
|
||||
<xsl:value-of
|
||||
select="format-number(number(descendant::year[position() = 1]/name),'0000')"/>
|
||||
<xsl:text>/</xsl:text>
|
||||
|
|
@ -396,11 +350,11 @@
|
|||
</xsl:for-each>
|
||||
<a href="news/newsflash.html">More...</a>
|
||||
</font></p>
|
||||
|
||||
|
||||
<p><font size="+1" color="#990000"><b>FreeBSD Press</b></font><br/>
|
||||
|
||||
<font size="-1">
|
||||
ºÇ½ª¹¹¿·:
|
||||
ºÇ½ª¹¹¿·:
|
||||
<xsl:value-of
|
||||
select="format-number(number(document('news/press.xml')/descendant::year[position() = 1]/name),'0000')"/>
|
||||
<xsl:text>/</xsl:text>
|
||||
|
|
@ -425,16 +379,16 @@
|
|||
<font size="-1">
|
||||
最終更新:
|
||||
<xsl:value-of
|
||||
select="document('../en/security/advisories.xml')/descendant::month[position() = 1]/name"/>
|
||||
select="document($advisories.xml)/descendant::month[position() = 1]/name"/>
|
||||
<xsl:text> </xsl:text>
|
||||
<xsl:value-of
|
||||
select="document('../en/security/advisories.xml')/descendant::day[position() = 1]/name"/>
|
||||
select="document($advisories.xml)/descendant::day[position() = 1]/name"/>
|
||||
<xsl:text>, </xsl:text>
|
||||
<xsl:value-of
|
||||
select="document('../en/security/advisories.xml')/descendant::year[position() = 1]/name"/>
|
||||
select="document($advisories.xml)/descendant::year[position() = 1]/name"/>
|
||||
<br/>
|
||||
<!-- Pull in the 10 most recent security advisories -->
|
||||
<xsl:for-each select="document('../en/security/advisories.xml')/descendant::advisory[position() < 10]">
|
||||
<xsl:for-each select="document($advisories.xml)/descendant::advisory[position() < 10]">
|
||||
・ <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"/>
|
||||
|
|
@ -480,28 +434,28 @@
|
|||
<td><a href="http://www.freebsdmall.com/"><img
|
||||
src="../gifs/mall_title_medium.gif" alt="[FreeBSD Mall]"
|
||||
height="65" width="165" border="0"/></a></td>
|
||||
|
||||
|
||||
<td><a href="http://www.ugu.com/"><img src="../gifs/ugu_icon.gif"
|
||||
alt="[Sponsor of Unix Guru Universe]"
|
||||
alt="[Sponsor of Unix Guru Universe]"
|
||||
height="64" width="76"
|
||||
border="0"/></a></td>
|
||||
|
||||
|
||||
<td><a href="http://www.daemonnews.org/"><img src="../gifs/darbylogo.gif"
|
||||
alt="[Daemon News]" height="45" width="130"
|
||||
border="0"/></a></td>
|
||||
|
||||
|
||||
<td><a href="{$base}/copyright/daemon.html"><img
|
||||
src="../gifs/powerlogo.gif"
|
||||
src="../gifs/powerlogo.gif"
|
||||
alt="[Powered by FreeBSD]"
|
||||
height="64"
|
||||
width="160"
|
||||
height="64"
|
||||
width="160"
|
||||
border="0"/></a></td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<table width="100%" cellpadding="0" border="0" cellspacing="0">
|
||||
<tr>
|
||||
<td align="left"
|
||||
<td align="left"
|
||||
valign="top"><small><a href="{$base}/mailto.html">お問い合わせ先</a> : <a href="jabout.html">日本語化について</a><br/>
|
||||
<xsl:value-of select="$date"/></small></td>
|
||||
|
||||
|
|
@ -510,13 +464,13 @@
|
|||
The FreeBSD Project.<br/>
|
||||
All rights reserved.</small></td>
|
||||
</tr>
|
||||
</table>
|
||||
</table>
|
||||
</body>
|
||||
</html>
|
||||
</xsl:template>
|
||||
</html>
|
||||
</xsl:template>
|
||||
</xsl:stylesheet>
|
||||
|
||||
<!--
|
||||
<!--
|
||||
Local Variables:
|
||||
mode: xml
|
||||
sgml-indent-data: t
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
# $FreeBSD: www/ja/security/Makefile,v 1.13 2000/11/07 11:38:09 kuriyama Exp $
|
||||
# $FreeBSD: www/ja/security/Makefile,v 1.14 2003/10/11 07:12:37 hrs Exp $
|
||||
# The FreeBSD Japanese Documentation Project
|
||||
# Original revision: 1.8
|
||||
|
||||
|
|
@ -23,6 +23,6 @@ CLEANFILES+= advisories.html.inc
|
|||
|
||||
security.html: advisories.html.inc
|
||||
|
||||
advisories.html.inc: mkindex.xsl ../../en/security/advisories.xml
|
||||
advisories.html.inc: mkindex.xsl ${XML_ADVISORIES}
|
||||
${XSLTPROC} ${XSLTPROCOPTS} -o ${.TARGET} \
|
||||
${.CURDIR}/mkindex.xsl ${.CURDIR}/../../en/security/advisories.xml
|
||||
${.CURDIR}/mkindex.xsl ${XML_ADVISORIES}
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
# bsd.web.mk
|
||||
# $FreeBSD: www/share/mk/web.site.mk,v 1.46 2003/06/24 10:24:59 phantom Exp $
|
||||
# $FreeBSD: www/share/mk/web.site.mk,v 1.47 2003/11/16 18:56:24 hrs Exp $
|
||||
|
||||
#
|
||||
# Build and install a web site.
|
||||
|
|
@ -77,6 +77,32 @@ PORTSBASE?= /usr
|
|||
#
|
||||
NO_SUBDIR= YES
|
||||
|
||||
#
|
||||
# for dependency
|
||||
#
|
||||
DOC_PREFIX?= ${WEB_PREFIX}/../doc
|
||||
.include "${DOC_PREFIX}/share/mk/doc.common.mk"
|
||||
|
||||
XML_NEWS_NEWS_MASTER= ${WEB_PREFIX}/en/news/news.xml
|
||||
XML_NEWS_NEWS= ${WEB_PREFIX}/${WWW_LANGCODE}/news/news.xml
|
||||
XML_NEWS_PRESS_MASTER= ${WEB_PREFIX}/en/news/press.xml
|
||||
XML_NEWS_PRESS= ${WEB_PREFIX}/${WWW_LANGCODE}/news/press.xml
|
||||
XML_NEWS_INCLUDES_MASTER= ${WEB_PREFIX}/en/news/includes.xsl
|
||||
XML_NEWS_INCLUDES= ${WEB_PREFIX}/${WWW_LANGCODE}/news/includes.xsl
|
||||
|
||||
XML_INCLUDES= ${WEB_PREFIX}/${WWW_LANGCODE}/includes.xsl
|
||||
XML_INCLUDES+= ${WEB_PREFIX}/share/sgml/includes.header.xsl
|
||||
XML_INCLUDES+= ${WEB_PREFIX}/share/sgml/includes.misc.xsl
|
||||
XML_INCLUDES+= ${WEB_PREFIX}/share/sgml/includes.release.xsl
|
||||
XML_INCLUDES+= ${WEB_PREFIX}/share/sgml/includes.xsl
|
||||
|
||||
SGML_INCLUDES= ${WEB_PREFIX}/${WWW_LANGCODE}/includes.sgml
|
||||
SGML_INCLUDES+= ${WEB_PREFIX}/share/sgml/includes.header.sgml
|
||||
SGML_INCLUDES+= ${WEB_PREFIX}/share/sgml/includes.misc.sgml
|
||||
SGML_INCLUDES+= ${WEB_PREFIX}/share/sgml/includes.release.sgml
|
||||
SGML_INCLUDES+= ${WEB_PREFIX}/share/sgml/includes.sgml
|
||||
|
||||
|
||||
##################################################################
|
||||
# Transformation rules
|
||||
|
||||
|
|
@ -118,7 +144,7 @@ spellcheck:
|
|||
@${HTML2TXT} ${HTML2TXTOPTS} ${.CURDIR}/${_entry} | ${ISPELL} ${ISPELLOPTS}
|
||||
.endfor
|
||||
|
||||
.sgml.html:
|
||||
.sgml.html: ${SGML_INCLUDES}
|
||||
${PREHTML} ${PREHTMLOPTS} ${.IMPSRC} | \
|
||||
${SETENV} SGML_CATALOG_FILES= \
|
||||
${SGMLNORM} ${SGMLNORMOPTS} > ${.TARGET} || \
|
||||
|
|
|
|||
83
share/sgml/includes.header.xsl
Normal file
83
share/sgml/includes.header.xsl
Normal file
|
|
@ -0,0 +1,83 @@
|
|||
<?xml version="1.0" encoding="ISO-8859-1" ?>
|
||||
|
||||
<!-- $FreeBSD$ -->
|
||||
|
||||
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
|
||||
|
||||
<xsl:variable name="i.daemon">
|
||||
<img src="{$base}/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"/>
|
||||
</xsl:variable>
|
||||
|
||||
<xsl:variable name="copyright">
|
||||
<a href="{$base}/copyright/index.html">Copyright</a> © 1995-2003 the FreeBSD Project. All rights reserved.
|
||||
</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:attribute>
|
||||
<xsl:value-of select="$email"/>@FreeBSD.org</a><br/><xsl:copy-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>
|
||||
</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"
|
||||
height="33" border="0" usemap="#bar"/>
|
||||
|
||||
<h1 align="left"><font color="#660000"><xsl:value-of select="$title"/></font></h1>
|
||||
|
||||
<br clear="all"/>
|
||||
|
||||
<map name="bar">
|
||||
<area shape="rect" coords="1,1,111,31"
|
||||
href="{$base}/index.html" alt="Top"/>
|
||||
<area shape="rect" coords="112,11,196,31"
|
||||
href="{$base}/ports/index.html" alt="Applications"/>
|
||||
<area shape="rect" coords="196,12,257,33"
|
||||
href="{$base}/support.html" alt="Support"/>
|
||||
<area shape="rect" coords="256,12,365,33"
|
||||
href="{$base}/docs.html" alt="Documentation"/>
|
||||
<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="Search"/>
|
||||
<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"/>
|
||||
</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>
|
||||
</xsl:stylesheet>
|
||||
55
share/sgml/includes.misc.xsl
Normal file
55
share/sgml/includes.misc.xsl
Normal file
|
|
@ -0,0 +1,55 @@
|
|||
<?xml version="1.0" encoding="ISO-8859-1" ?>
|
||||
|
||||
<!-- $FreeBSD$ -->
|
||||
|
||||
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
|
||||
|
||||
<!-- Often used trademarks -->
|
||||
<xsl:variable name="unix" select="'UNIX®'"/>
|
||||
<xsl:variable name="java" select="'Java™'"/>
|
||||
<xsl:variable name="jdk" select="'JDK™'"/>
|
||||
<xsl:variable name="posix" select="'POSIX®'"/>
|
||||
|
||||
<!-- template: "html-index-mirrors-options-list"
|
||||
generates mirror sites list in index.html -->
|
||||
|
||||
<xsl:template name="html-index-mirrors-options-list">
|
||||
<xsl:param name="mirrors.xml" select="''" />
|
||||
|
||||
<xsl:for-each select="document($mirrors.xml)/mirrors/entry[country/@role != 'primary' and
|
||||
url[contains(@proto, 'httpv6') and contains(@type, 'www')]]">
|
||||
<xsl:sort select="country" />
|
||||
|
||||
<xsl:for-each select="url[contains(@proto, 'httpv6') and contains(@type, 'www')]">
|
||||
<option><xsl:attribute name="value"><xsl:value-of select="." /></xsl:attribute>
|
||||
<xsl:choose>
|
||||
<xsl:when test="last() = 1">
|
||||
<xsl:value-of select="concat('IPv6 ', ../country)" />
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<xsl:value-of select="concat('IPv6 ', ../country, '/', position())" />
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</option>
|
||||
</xsl:for-each>
|
||||
</xsl:for-each>
|
||||
|
||||
<xsl:for-each select="document($mirrors.xml)/mirrors/entry[country/@role != 'primary' and
|
||||
url[contains(@proto, 'http') and contains(@type, 'www')]]">
|
||||
<xsl:sort select="country" />
|
||||
|
||||
<xsl:for-each select="url[contains(@proto, 'http') and contains(@type, 'www')]">
|
||||
<option><xsl:attribute name="value"><xsl:value-of select="." /></xsl:attribute>
|
||||
<xsl:choose>
|
||||
<xsl:when test="last() = 1">
|
||||
<xsl:value-of select="../country" />
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<xsl:value-of select="concat(../country, '/', position())" />
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</option>
|
||||
</xsl:for-each>
|
||||
</xsl:for-each>
|
||||
</xsl:template>
|
||||
</xsl:stylesheet>
|
||||
32
share/sgml/includes.release.xsl
Normal file
32
share/sgml/includes.release.xsl
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
<?xml version="1.0" encoding="ISO-8859-1" ?>
|
||||
|
||||
<!-- $FreeBSD$ -->
|
||||
|
||||
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
|
||||
|
||||
<xsl:variable name="rel.current" select='"5.1"'/>
|
||||
|
||||
<xsl:variable name="u.rel.notes">
|
||||
<xsl:value-of select="$base"/>/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:variable name="u.rel.errata">
|
||||
<xsl:value-of select="$base"/>/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:variable name="u.rel.early">
|
||||
<xsl:value-of select="$base"/>/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:variable name="u.rel2.announce">
|
||||
<xsl:value-of select="$base"/>/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:variable name="u.rel2.hardware">
|
||||
<xsl:value-of select="$base"/>/releases/<xsl:value-of select="$rel2.current"/>R/hardware.html</xsl:variable>
|
||||
|
||||
</xsl:stylesheet>
|
||||
14
share/sgml/includes.xsl
Normal file
14
share/sgml/includes.xsl
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
<?xml version="1.0" encoding="ISO-8859-1" ?>
|
||||
|
||||
<!-- $FreeBSD$ -->
|
||||
|
||||
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
|
||||
|
||||
<xsl:import href="./includes.header.xsl" />
|
||||
<xsl:import href="./includes.misc.xsl" />
|
||||
<xsl:import href="./includes.release.xsl" />
|
||||
|
||||
<xsl:variable name="base" select="'.'" />
|
||||
<xsl:variable name="enbase" select="concat ($base, '/..')" />
|
||||
|
||||
</xsl:stylesheet>
|
||||
Loading…
Add table
Add a link
Reference in a new issue