MFen 1.4
Obtained from: The FreeBSD Russian Documentation Project
This commit is contained in:
parent
5542957b66
commit
78468e3ae4
Notes:
svn2git
2020-12-08 03:00:23 +00:00
svn path=/www/; revision=19837
1 changed files with 11 additions and 30 deletions
|
@ -4,9 +4,9 @@
|
|||
The FreeBSD Russian Documentation Project
|
||||
|
||||
$FreeBSD$
|
||||
$FreeBSDru: frdp/www/ru/security/mkindex.xsl,v 1.2 2003/10/20 07:20:40 andy Exp $
|
||||
$FreeBSDru: frdp/www/ru/security/mkindex.xsl,v 1.4 2004/01/25 15:22:12 andy Exp $
|
||||
|
||||
Original revision: 1.2
|
||||
Original revision: 1.4
|
||||
-->
|
||||
|
||||
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
|
||||
|
@ -14,40 +14,21 @@
|
|||
<xsl:import href="../includes.xsl"/>
|
||||
|
||||
<xsl:variable name="base" select="'.'"/>
|
||||
<xsl:variable name="date" select="'$FreeBSD: www/en/security/mkindex.xsl,v 1.2 2003/10/11 07:12:58 hrs Exp $'"/>
|
||||
<xsl:variable name="date" select="'$FreeBSD$'"/>
|
||||
<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="KOI8-R"
|
||||
omit-xml-declaration="yes" />
|
||||
|
||||
<xsl:template match="/">
|
||||
<xsl:value-of select="$ulopen" disable-output-escaping="yes" />
|
||||
<xsl:for-each select="descendant::advisory|descendant::release">
|
||||
<xsl:choose>
|
||||
<xsl:when test="self::release">
|
||||
<xsl:value-of select="$ulclose" disable-output-escaping="yes" />
|
||||
<p><xsl:value-of select="name"/> released.</p>
|
||||
<xsl:value-of select="$ulopen" disable-output-escaping="yes" />
|
||||
</xsl:when>
|
||||
<xsl:call-template name="html-list-advisories">
|
||||
<xsl:with-param name="advisories.xml" select="$advisories.xml" />
|
||||
</xsl:call-template>
|
||||
</xsl:template>
|
||||
|
||||
<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>
|
||||
</li>
|
||||
</xsl:when>
|
||||
</xsl:choose>
|
||||
</xsl:for-each>
|
||||
<xsl:value-of select="$ulclose" disable-output-escaping="yes" />
|
||||
<xsl:template name="html-list-advisories-release-label">
|
||||
<xsl:param name="relname" select="'none'" />
|
||||
|
||||
<p>÷ŮĐŐÝĹÎÁ <xsl:value-of select="$relname" />.</p>
|
||||
</xsl:template>
|
||||
</xsl:stylesheet>
|
||||
|
|
Loading…
Reference in a new issue