Date: Sat, 22 May 2004 07:04:34 -0700 (PDT) From: Tilman Linneweh <arved@FreeBSD.org> To: FreeBSD-gnats-submit@FreeBSD.org Subject: www/67042: FreeBSD rdf feed not valid Message-ID: <200405221404.i4ME4YoL026182@freefall.freebsd.org> Resent-Message-ID: <200405221410.i4MEAGlf029989@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 67042 >Category: www >Synopsis: FreeBSD rdf feed not valid >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-www >State: open >Quarter: >Keywords: >Date-Required: >Class: doc-bug >Submitter-Id: current-users >Arrival-Date: Sat May 22 07:10:16 PDT 2004 >Closed-Date: >Last-Modified: >Originator: Tilman Linneweh >Release: FreeBSD 4.10-RC i386 >Organization: >Environment: System: FreeBSD freefall.freebsd.org 4.10-RC FreeBSD 4.10-RC #12: Sun Apr 25 14:35:16 PDT 2004 kensmith@freefall.freebsd.org:/c/src/sys/compile/FREEFALL i386 >Description: The FreeBSD.org rdf feed is not valid, try the following Validators: http://www.w3.org/RDF/Validator/ http://feedvalidator.org/ A news feed generated with the attached patch validates. Since I have no clue of XSLT this patch could be extended by an XSLT guru. - The item's rdf:about link should probably point to the news item-links instead of the general newspage. - The empty <item></items> tags should be filled with something like this: <rdf:li rdf:resource="$Linktothenewsitem"> for every item. >How-To-Repeat: >Fix: --- news-rdf.xsl.diff begins here --- Index: news-rdf.xsl =================================================================== RCS file: /home/ncvs/www/en/news/news-rdf.xsl,v retrieving revision 1.5 diff -u -r1.5 news-rdf.xsl --- news-rdf.xsl 15 Aug 2003 17:35:42 -0000 1.5 +++ news-rdf.xsl 22 May 2004 13:33:33 -0000 @@ -2,7 +2,10 @@ <!-- $FreeBSD: www/en/news/news-rdf.xsl,v 1.5 2003/08/15 17:35:42 simon Exp $ --> -<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> +<xsl:stylesheet version="1.0" + xmlns:xsl="http://www.w3.org/1999/XSL/Transform" + xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" + xmlns="http://purl.org/rss/1.0/"> <xsl:import href="includes.xsl"/> @@ -12,13 +15,13 @@ <!-- Generate the main body of the RDF file --> <xsl:template match="news"> - <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" - xmlns="http://my.netscape.com/rdf/simple/0.9/"> + <rdf:RDF> - <channel> + <channel rdf:about="http://www.FreeBSD.org/news/"> <title>FreeBSD Project News</title> <link>http://www.FreeBSD.org/news/</link> <description>News from the FreeBSD Project</description> + <items></items> </channel> <!-- Only include the last 10 events --> @@ -29,7 +32,7 @@ <!-- Generate the <item> elements and their content --> <xsl:template match="event"> - <item> + <item rdf:about="http://www.FreeBSD.org/news/newsflash.html"> <xsl:choose> <xsl:when test="count(child::title)"> <title><xsl:value-of select="normalize-space(title)"/></title> --- news-rdf.xsl.diff ends here --- >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200405221404.i4ME4YoL026182>