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>
|
||||
|
||||
<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>
|
||||
<!-- Language-specific definitions should be put below this line -->
|
||||
|
||||
</xsl:stylesheet>
|
||||
|
|
|
|||
54
en/index.xsl
54
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 name="html-index-mirrors-options-list">
|
||||
<xsl:with-param name="mirrors.xml" select="$mirrors.xml" />
|
||||
</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>
|
||||
</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"
|
||||
|
|
@ -97,31 +49,46 @@
|
|||
</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>
|
||||
|
|
|
|||
62
ja/index.xsl
62
ja/index.xsl
|
|
@ -1,6 +1,6 @@
|
|||
<?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">
|
||||
|
|
@ -10,7 +10,7 @@
|
|||
|
||||
<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"
|
||||
|
|
@ -54,47 +54,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 name="html-index-mirrors-options-list">
|
||||
<xsl:with-param name="mirrors.xml" select="$mirrors.xml" />
|
||||
</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>
|
||||
</select>
|
||||
|
||||
<input type="submit" value=" Go "/>
|
||||
|
|
@ -138,7 +100,6 @@
|
|||
<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/>
|
||||
|
|
@ -153,7 +114,6 @@
|
|||
</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/>
|
||||
|
|
@ -164,7 +124,6 @@
|
|||
</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,9 +142,7 @@
|
|||
・<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/>
|
||||
|
|
@ -193,7 +150,6 @@
|
|||
</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/>
|
||||
|
|
@ -209,7 +165,6 @@
|
|||
</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/>
|
||||
|
|
@ -235,7 +190,6 @@
|
|||
<!-- 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®
|
||||
|
|
@ -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"/>
|
||||
|
|
|
|||
|
|
@ -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