Merge the following from the English version:
1.9 -> 1.11 security/Makefile 1.2 -> 1.4 security/mkindex.xsl
This commit is contained in:
parent
320ead62d6
commit
b0b2b0867f
Notes:
svn2git
2020-12-08 03:00:23 +00:00
svn path=/www/; revision=19744
2 changed files with 16 additions and 37 deletions
|
@ -1,6 +1,6 @@
|
||||||
# $FreeBSD: www/ja/security/Makefile,v 1.15 2003/11/24 18:26:34 hrs Exp $
|
# $FreeBSD: www/ja/security/Makefile,v 1.16 2004/01/10 18:38:00 rushani Exp $
|
||||||
# The FreeBSD Japanese Documentation Project
|
# The FreeBSD Japanese Documentation Project
|
||||||
# Original revision: 1.9
|
# Original revision: 1.11
|
||||||
|
|
||||||
.if exists(../Makefile.conf)
|
.if exists(../Makefile.conf)
|
||||||
.include "../Makefile.conf"
|
.include "../Makefile.conf"
|
||||||
|
@ -23,6 +23,7 @@ CLEANFILES+= advisories.html.inc
|
||||||
|
|
||||||
security.html: advisories.html.inc
|
security.html: advisories.html.inc
|
||||||
|
|
||||||
advisories.html.inc: mkindex.xsl ${XML_ADVISORIES}
|
advisories.html.inc: mkindex.xsl ${XML_ADVISORIES} ${XML_INCLUDES}
|
||||||
${XSLTPROC} ${XSLTPROCOPTS} -o ${.TARGET} \
|
${XSLTPROC} ${XSLTPROCOPTS} -o ${.TARGET} \
|
||||||
|
--param "advisories.xml" "'${XML_ADVISORIES}'" \
|
||||||
${.CURDIR}/mkindex.xsl ${XML_ADVISORIES}
|
${.CURDIR}/mkindex.xsl ${XML_ADVISORIES}
|
||||||
|
|
|
@ -1,50 +1,28 @@
|
||||||
<?xml version="1.0" encoding="EUC-JP" ?>
|
<?xml version="1.0" encoding="EUC-JP" ?>
|
||||||
|
|
||||||
<!-- $FreeBSD$ -->
|
<!-- $FreeBSD: www/ja/security/mkindex.xsl,v 1.1 2003/10/11 07:12:37 hrs Exp $ -->
|
||||||
<!-- Original revision: 1.2 -->
|
<!-- Original revision: 1.4 -->
|
||||||
|
|
||||||
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
|
<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="base" select="'.'"/>
|
||||||
<xsl:variable name="date" select="'$FreeBSD$'"/>
|
<xsl:variable name="date" select="'$FreeBSD: www/ja/security/mkindex.xsl,v 1.1 2003/10/11 07:12:37 hrs Exp $'"/>
|
||||||
<xsl:variable name="title" select="'untitled'"/>
|
<xsl:variable name="title" select="'untitled'"/>
|
||||||
|
|
||||||
<xsl:variable name="ftpbase" select="'ftp://ftp.FreeBSD.org/pub/FreeBSD/CERT/advisories/'" />
|
|
||||||
<xsl:variable name="ftpbaseold" select="'ftp://ftp.FreeBSD.org/pub/FreeBSD/CERT/advisories/old/'" />
|
|
||||||
<xsl:variable name="ulopen" select="'<ul>'" />
|
|
||||||
<xsl:variable name="ulclose" select="'</ul>'" />
|
|
||||||
|
|
||||||
<xsl:output type="xml" encoding="euc-jp"
|
<xsl:output type="xml" encoding="euc-jp"
|
||||||
omit-xml-declaration="yes" />
|
omit-xml-declaration="yes" />
|
||||||
|
|
||||||
<xsl:template match="/">
|
<xsl:template match="/">
|
||||||
<xsl:value-of select="$ulopen" disable-output-escaping="yes" />
|
<xsl:call-template name="html-list-advisories">
|
||||||
<xsl:for-each select="descendant::advisory|descendant::release">
|
<xsl:with-param name="advisories.xml" select="$advisories.xml" />
|
||||||
<xsl:choose>
|
</xsl:call-template>
|
||||||
<xsl:when test="self::release">
|
</xsl:template>
|
||||||
<xsl:value-of select="$ulclose" disable-output-escaping="yes" />
|
|
||||||
<p><xsl:value-of select="name"/> ¤Î¸ø³«¡£</p>
|
<xsl:template name="html-list-advisories-release-label">
|
||||||
<xsl:value-of select="$ulopen" disable-output-escaping="yes" />
|
<xsl:param name="relname" select="'none'" />
|
||||||
</xsl:when>
|
|
||||||
|
<p><xsl:value-of select="$relname" /> ¤Î¸ø³«¡£</p>
|
||||||
<xsl:when test="self::advisory">
|
|
||||||
<li>
|
|
||||||
<xsl:choose>
|
|
||||||
<xsl:when test="./name/@role='old'">
|
|
||||||
<a><xsl:attribute name="href"><xsl:value-of select="concat($ftpbaseold, name, '.asc')" /></xsl:attribute><xsl:value-of select="concat(name, '.asc')" /></a>
|
|
||||||
</xsl:when>
|
|
||||||
<xsl:otherwise>
|
|
||||||
<a><xsl:attribute name="href"><xsl:value-of select="concat($ftpbase, name, '.asc')" /></xsl:attribute><xsl:value-of select="concat(name, '.asc')" /></a> </xsl:otherwise>
|
|
||||||
</xsl:choose>
|
|
||||||
<xsl:if test="./ulink/@lang='ja'">
|
|
||||||
<a><xsl:attribute name="href"><xsl:value-of select="ulink" /></xsl:attribute>(ÆüËܸìÌõ)</a>
|
|
||||||
</xsl:if>
|
|
||||||
</li>
|
|
||||||
</xsl:when>
|
|
||||||
</xsl:choose>
|
|
||||||
</xsl:for-each>
|
|
||||||
<xsl:value-of select="$ulclose" disable-output-escaping="yes" />
|
|
||||||
</xsl:template>
|
</xsl:template>
|
||||||
</xsl:stylesheet>
|
</xsl:stylesheet>
|
||||||
|
|
Loading…
Reference in a new issue