Follow new framework for press.html with the English version.
This commit is contained in:
parent
9b2ac98390
commit
80f9176969
Notes:
svn2git
2020-12-08 03:00:23 +00:00
svn path=/www/; revision=10558
3 changed files with 2209 additions and 3 deletions
|
|
@ -1,4 +1,4 @@
|
|||
# $FreeBSD: www/ja/news/Makefile,v 1.26 2001/08/08 02:11:16 kuriyama Exp $
|
||||
# $FreeBSD: www/ja/news/Makefile,v 1.27 2001/08/08 03:55:55 kuriyama Exp $
|
||||
# The FreeBSD Japanese Documentation Project
|
||||
# Original revision: 1.23
|
||||
|
||||
|
|
@ -9,7 +9,7 @@
|
|||
.include "../Makefile.inc"
|
||||
.endif
|
||||
|
||||
DOCS= press.sgml
|
||||
#DOCS= press.sgml
|
||||
DOCS+= news.sgml
|
||||
#DOCS+= webchanges.sgml
|
||||
|
||||
|
|
@ -33,7 +33,7 @@ SUBDIR+= 1997
|
|||
#SUBDIR+= 2000
|
||||
#SUBDIR+= status
|
||||
|
||||
DATA= newsflash.html
|
||||
DATA= newsflash.html press.html
|
||||
#+= news.rdf
|
||||
|
||||
newsflash.html: newsflash.xsl news.xml includes.xsl ../includes.xsl
|
||||
|
|
@ -43,6 +43,10 @@ newsflash.html: newsflash.xsl news.xml includes.xsl ../includes.xsl
|
|||
news.rdf: news-rdf.xsl news.xml includes.xsl ../includes.xsl
|
||||
xsltproc -nonet -o news.rdf news-rdf.xsl news.xml
|
||||
|
||||
press.html: press.xsl press.xml includes.xsl ../includes.xsl
|
||||
xsltproc -nonet -o press.html press.xsl press.xml
|
||||
# -tidy -i -m -f /dev/null press.html
|
||||
|
||||
### Revision checking
|
||||
REVCHECK= YES
|
||||
|
||||
|
|
|
|||
2128
ja/news/press.xml
Normal file
2128
ja/news/press.xml
Normal file
File diff suppressed because it is too large
Load diff
74
ja/news/press.xsl
Normal file
74
ja/news/press.xsl
Normal file
|
|
@ -0,0 +1,74 @@
|
|||
<?xml version="1.0" encoding="EUC-JP" ?>
|
||||
|
||||
<!-- $FreeBSD: www/en/news/press.xsl,v 1.1 2001/08/10 10:31:44 nik Exp $ -->
|
||||
|
||||
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
|
||||
|
||||
<xsl:import href="../includes.xsl"/>
|
||||
<xsl:import href="includes.xsl"/>
|
||||
|
||||
|
||||
<xsl:variable name="base" select="'..'"/>
|
||||
<xsl:variable name="title" select="'FreeBSD In The Press'"/>
|
||||
<xsl:variable name="date" select="'$FreeBSD: www/en/news/press.xsl,v 1.1 2001/08/10 10:31:44 nik Exp $'"/>
|
||||
|
||||
<xsl:output type="html" encoding="EUC-JP"/>
|
||||
|
||||
<xsl:template match="press">
|
||||
<html>
|
||||
|
||||
<xsl:copy-of select="$header1"/>
|
||||
|
||||
<body xsl:use-attribute-sets="att.body">
|
||||
|
||||
<xsl:copy-of select="$header2"/>
|
||||
|
||||
<p>ここに載っていない FreeBSD に関連したニュース記事をご存じなら,
|
||||
我々がここに載せられるように詳細を
|
||||
<a href="mailto:doc@freebsd.org">doc@FreeBSD.org</a> まで
|
||||
(英語で) 送ってください.</p>
|
||||
|
||||
<p>また, FreeBSD Java プロジェクトの報道記事に関する情報は,
|
||||
<a href="{$base}/java/press.html">FreeBSD/Java Press</a>
|
||||
をご覧下さい.</p>
|
||||
|
||||
<xsl:apply-templates select="//month"/>
|
||||
|
||||
<xsl:copy-of select="$newshome"/>
|
||||
<xsl:copy-of select="$footer"/>
|
||||
</body>
|
||||
</html>
|
||||
</xsl:template>
|
||||
|
||||
<!-- Everything that follows are templates for the rest of the content -->
|
||||
|
||||
<xsl:template match="month">
|
||||
<h1><xsl:value-of select="ancestor::year/name"/> 年 <xsl:value-of select="name"/> 月</h1>
|
||||
|
||||
<ul>
|
||||
<xsl:apply-templates select="descendant::story"/>
|
||||
</ul>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match="story">
|
||||
<xsl:variable name="url"><xsl:value-of select="url"/></xsl:variable>
|
||||
<xsl:variable name="site-url"><xsl:value-of
|
||||
select="site-url"/></xsl:variable>
|
||||
|
||||
<li>
|
||||
<a>
|
||||
<xsl:attribute name="name">
|
||||
<xsl:call-template name="generate-story-anchor"/>
|
||||
</xsl:attribute>
|
||||
</a>
|
||||
|
||||
<p><a href="{$url}"><b><xsl:value-of
|
||||
select="name"/></b></a><br/>
|
||||
|
||||
<a href="{$site-url}"><xsl:value-of
|
||||
select="site-name"/></a>, <xsl:value-of select="author"/><br/>
|
||||
<xsl:copy-of select="p/child::node()"/>
|
||||
</p>
|
||||
</li>
|
||||
</xsl:template>
|
||||
</xsl:stylesheet>
|
||||
Loading…
Add table
Add a link
Reference in a new issue