From c1cc8a135222e21e0d1890e757d8d12242e5bc31 Mon Sep 17 00:00:00 2001 From: Hiroki Sato Date: Mon, 24 Nov 2003 18:26:35 +0000 Subject: [PATCH] Add refinements on mirrors.xml: - add doc.common.mk, which defines variables, targets, and dependencies commonly used in www/ and doc/. - move www//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 --- en/Makefile | 21 +++-- en/includes.xsl | 115 +---------------------- en/index.xsl | 56 ++--------- en/security/Makefile | 6 +- ja/Makefile | 21 +++-- ja/includes.xsl | 81 +++++----------- ja/index.xsl | 162 ++++++++++++-------------------- ja/security/Makefile | 6 +- share/mk/web.site.mk | 30 +++++- share/sgml/includes.header.xsl | 83 ++++++++++++++++ share/sgml/includes.misc.xsl | 55 +++++++++++ share/sgml/includes.release.xsl | 32 +++++++ share/sgml/includes.xsl | 14 +++ 13 files changed, 339 insertions(+), 343 deletions(-) create mode 100644 share/sgml/includes.header.xsl create mode 100644 share/sgml/includes.misc.xsl create mode 100644 share/sgml/includes.release.xsl create mode 100644 share/sgml/includes.xsl diff --git a/en/Makefile b/en/Makefile index 42c53e4dc3..3411b24acc 100644 --- a/en/Makefile +++ b/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 diff --git a/en/includes.xsl b/en/includes.xsl index d6ca4d39b9..46be24e998 100644 --- a/en/includes.xsl +++ b/en/includes.xsl @@ -1,120 +1,13 @@ - + - - - - + - + - - - + - - [New!] - - - - Copyright © 1995-2003 the FreeBSD Project. All rights reserved. - - - - - - - - - - - - - - - @FreeBSD.org
-
- - - FreeBSD Home Page - - - - - <xsl:value-of select="$title"/> - - - - - - - - #000000 - #FFFFFF - #FFCC33 - - - - Navigation Bar - -

- -
- - - Top - Applications - Support - Documentation - Vendors - Search - Index - Top - Top - -
- - -
-

-
-
- - - - /releases/R/relnotes.html - - - /releases/R/announce.html - - /releases/R/errata.html - - /releases/R/hardware.html - - /releases/R/early-adopter.html - - - - /releases/R/relnotes.html - - - /releases/R/announce.html - - /releases/R/errata.html - - /releases/R/hardware.html -
diff --git a/en/index.xsl b/en/index.xsl index f4855117f2..44d1363c4a 100644 --- a/en/index.xsl +++ b/en/index.xsl @@ -1,4 +1,4 @@ - + @@ -6,7 +6,7 @@ - + - - - - - - - - - - - + + + @@ -418,16 +380,16 @@ Latest update: + select="document($advisories.xml)/descendant::month[position() = 1]/name"/> + select="document($advisories.xml)/descendant::day[position() = 1]/name"/> , + select="document($advisories.xml)/descendant::year[position() = 1]/name"/>
- + · ftp://ftp.freebsd.org/pub/FreeBSD/CERT/advisories/.asc diff --git a/en/security/Makefile b/en/security/Makefile index 0dac5beb69..d383232bb3 100644 --- a/en/security/Makefile +++ b/en/security/Makefile @@ -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} diff --git a/ja/Makefile b/ja/Makefile index 809914a5fa..fc22fb1e1d 100644 --- a/ja/Makefile +++ b/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 diff --git a/ja/includes.xsl b/ja/includes.xsl index 6d6a9a48be..5a4aba7801 100644 --- a/ja/includes.xsl +++ b/ja/includes.xsl @@ -1,61 +1,13 @@ - + - + - - - - - - - - - - [New!] - - - - Copyright © 1995-2003 the FreeBSD Project. All rights reserved. -
- - - - - - - - - - - - - - @FreeBSD.org
-
- - - FreeBSD Home Page - - - - - <xsl:value-of select="$title"/> - - - - - - - - #000000 - #FFFFFF - #FFCC33 - + メニュー - - + + + + + + + + + + + + + /releases/R/hardware.html -
diff --git a/ja/index.xsl b/ja/index.xsl index bb3e85d6ba..362299a9cd 100644 --- a/ja/index.xsl +++ b/ja/index.xsl @@ -1,16 +1,16 @@ - + - + - + <xsl:value-of select="$title"/> - + - + - + - + - +
FreeBSD: このパワーをあなたのために
- +
- + お近くのサーバをお選びください: - +
- + - +
- - 言語: + + 言語: [de]   [en] @@ -119,9 +81,9 @@
- +
- +
@@ -138,22 +100,20 @@

ニュース -
アナウンス
報道
さらに ...

- +

ソフトウェア
FreeBSD を手に入れる
リリース情報
Ports Collection

- +

ドキュメント -
初心者のために
ハンドブック
@@ -162,9 +122,8 @@ ・Doc. Project
さらに...

- +

サポート -
メーリングリスト
ニュースグループ
@@ -183,17 +142,14 @@ ・さらに...

-

開発 -
プロジェクト
Release Engineering
CVS リポジトリ

- +

ベンダ -
ソフトウェア
ハードウェア
@@ -207,15 +163,14 @@ ・現在の寄贈品
寄付募集リスト

- +

このサイトについて -
サイトマップ
検索
さらに...

- + 検索:
@@ -229,15 +184,14 @@ - + - + -

FreeBSD とは?

- +

FreeBSD は x86 互換機、DEC Alpha、IA-64、PC-98、UltraSPARC® アーキテクチャ用の先進的なオペレーティングシステムです。 カリフォルニア大学バークレイ校で開発された @@ -246,14 +200,14 @@ によって保守・開発されています。 その他のプラットフォーム は現在開発中です。

- +

最先端の機能

FreeBSD は (市販の最良のものも含めて) 他のオペレーティング システムに未だに欠けている最先端のネットワーク、パフォーマンス、 セキュリティ、互換性といった 機能 を今、提供しています。

- +

強力なインターネットサポート

FreeBSD は理想的な @@ -265,7 +219,7 @@ 載せていますので、ぜひわたしたちの ギャラリー をご覧になってみてください。

- +

数多くの対応アプリケーション

高い品質を持つ FreeBSD と、今日の低価格で高速な @@ -275,7 +229,7 @@ デスクトップ用、サーバ用の両方について、膨大な数の アプリケーション も用意されています。

- +

簡単インストール

FreeBSD は CD-ROM や DVD-ROM、フロッピーディスク、磁気テープ、MS-DOS® @@ -287,11 +241,11 @@ だけです。

無料で使える FreeBSD

- -

このような特色を持ったオペレーティングシステムは高い値段で @@ -349,7 +303,7 @@

テクノロジリリース:
- + アナウンス
インストールガイド
リリースノート
@@ -359,7 +313,7 @@

プロダクションリリース:
- + アナウンス
インストールガイド
リリースノート
@@ -368,7 +322,7 @@

Project News
- 最終更新: + 最終更新: / @@ -396,11 +350,11 @@ More...

- +

FreeBSD Press
- 最終更新: + 最終更新: / @@ -425,16 +379,16 @@ 最終更新: + select="document($advisories.xml)/descendant::month[position() = 1]/name"/> + select="document($advisories.xml)/descendant::day[position() = 1]/name"/> , + select="document($advisories.xml)/descendant::year[position() = 1]/name"/>
- + ftp://ftp.freebsd.org/pub/FreeBSD/CERT/advisories/.asc @@ -480,28 +434,28 @@ [FreeBSD Mall] - + [Sponsor of Unix Guru Universe] - + [Daemon News] - + [Powered by FreeBSD] - @@ -510,13 +464,13 @@ The FreeBSD Project.
All rights reserved. -
お問い合わせ先 : 日本語化について
+ - - + + - + + + + + + + + + [New!] + + + + Copyright © 1995-2003 the FreeBSD Project. All rights reserved. + + + + + + + + + + @FreeBSD.org
+
+ + + FreeBSD Home Page + + + + + <xsl:value-of select="$title"/> + + + + + + + + #000000 + #FFFFFF + #FFCC33 + + + + Navigation Bar + +

+ +
+ + + Top + Applications + Support + Documentation + Vendors + Search + Index + Top + Top + +
+ + +
+

+
+
+
diff --git a/share/sgml/includes.misc.xsl b/share/sgml/includes.misc.xsl new file mode 100644 index 0000000000..0000f5a94b --- /dev/null +++ b/share/sgml/includes.misc.xsl @@ -0,0 +1,55 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/share/sgml/includes.release.xsl b/share/sgml/includes.release.xsl new file mode 100644 index 0000000000..90bdb91665 --- /dev/null +++ b/share/sgml/includes.release.xsl @@ -0,0 +1,32 @@ + + + + + + + + + + /releases/R/relnotes.html + + + /releases/R/announce.html + + /releases/R/errata.html + + /releases/R/hardware.html + + /releases/R/early-adopter.html + + + + /releases/R/relnotes.html + + + /releases/R/announce.html + + /releases/R/errata.html + + /releases/R/hardware.html + + diff --git a/share/sgml/includes.xsl b/share/sgml/includes.xsl new file mode 100644 index 0000000000..8898928f69 --- /dev/null +++ b/share/sgml/includes.xsl @@ -0,0 +1,14 @@ + + + + + + + + + + + + + +