From 86e8306178dfd9249c9c48b8054b853ab8e149af Mon Sep 17 00:00:00 2001 From: Murray Stokely Date: Thu, 10 Jan 2008 04:23:39 +0000 Subject: [PATCH] Add support for generating an RSS 2.0 feed for the security advisories in addition to the current RDF/RSS 0.9 feed. --- en/security/Makefile | 3 +- en/security/security-rss.xsl | 26 ++++++++++++ share/sgml/libcommon.xsl | 78 +++++++++++++++++++++++++++++++++++- 3 files changed, 105 insertions(+), 2 deletions(-) create mode 100644 en/security/security-rss.xsl diff --git a/en/security/Makefile b/en/security/Makefile index 477872477d..469c94ea68 100644 --- a/en/security/Makefile +++ b/en/security/Makefile @@ -1,4 +1,4 @@ -# $FreeBSD: www/en/security/Makefile,v 1.13 2004/05/25 01:19:50 hrs Exp $ +# $FreeBSD: www/en/security/Makefile,v 1.14 2005/09/18 04:33:46 hrs Exp $ .if exists(../Makefile.conf) .include "../Makefile.conf" @@ -22,5 +22,6 @@ NO_DATA.advisories= yes NO_TIDY.advisories= yes XMLDOCS+= advisories-rdf:security-rdf.xsl::advisories.rdf +XMLDOCS+= advisories-rss:security-rss.xsl::rss.xml .include "${WEB_PREFIX}/share/mk/web.site.mk" diff --git a/en/security/security-rss.xsl b/en/security/security-rss.xsl new file mode 100644 index 0000000000..3a0c4f2b53 --- /dev/null +++ b/en/security/security-rss.xsl @@ -0,0 +1,26 @@ + + + +]> + + + + + + + + + + + + + + + + + + diff --git a/share/sgml/libcommon.xsl b/share/sgml/libcommon.xsl index 2c4d8020a3..4e58052ece 100644 --- a/share/sgml/libcommon.xsl +++ b/share/sgml/libcommon.xsl @@ -1,7 +1,7 @@ - + + + + + + + + + + + + + + + + + + + + + + + + + FreeBSD Security Advisories + http://www.FreeBSD.org/security/ + + <xsl:value-of select="$title" /> + + Security advisories published from the FreeBSD Project + en-us + secteam@FreeBSD.org (FreeBSD Security Team) + secteam@FreeBSD.org (FreeBSD Security Team) + http://blogs.law.harvard.edu/tech/rss + 120 + + http://www.FreeBSD.org/logo/logo-full.png + <xsl:value-of select="$title" /> + + + + + rss.xml + + + + + + + + + + + + <xsl:value-of select="name"/> + + + + + + + + + + + + +