View | Details | Raw Unified | Return to bug 67042
Collapse All | Expand All

(-)news-rdf.xsl (-5 / +8 lines)
Lines 2-8 Link Here
2
2
3
<!-- $FreeBSD: www/en/news/news-rdf.xsl,v 1.5 2003/08/15 17:35:42 simon Exp $ -->
3
<!-- $FreeBSD: www/en/news/news-rdf.xsl,v 1.5 2003/08/15 17:35:42 simon Exp $ -->
4
4
5
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
5
<xsl:stylesheet version="1.0"
6
    xmlns:xsl="http://www.w3.org/1999/XSL/Transform" 
7
    xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
8
    xmlns="http://purl.org/rss/1.0/">
6
  
9
  
7
  <xsl:import href="includes.xsl"/>
10
  <xsl:import href="includes.xsl"/>
8
11
Lines 12-24 Link Here
12
15
13
  <!-- Generate the main body of the RDF file -->
16
  <!-- Generate the main body of the RDF file -->
14
  <xsl:template match="news">
17
  <xsl:template match="news">
15
    <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
18
    <rdf:RDF>
16
	     xmlns="http://my.netscape.com/rdf/simple/0.9/">
17
19
18
      <channel>
20
      <channel rdf:about="http://www.FreeBSD.org/news/">
19
	<title>FreeBSD Project News</title>
21
	<title>FreeBSD Project News</title>
20
	<link>http://www.FreeBSD.org/news/</link>
22
	<link>http://www.FreeBSD.org/news/</link>
21
	<description>News from the FreeBSD Project</description>
23
	<description>News from the FreeBSD Project</description>
24
	<items></items>  
22
      </channel>
25
      </channel>
23
26
24
      <!-- Only include the last 10 events -->
27
      <!-- Only include the last 10 events -->
Lines 29-35 Link Here
29
32
30
  <!-- Generate the <item> elements and their content -->
33
  <!-- Generate the <item> elements and their content -->
31
  <xsl:template match="event">
34
  <xsl:template match="event">
32
    <item>
35
    <item rdf:about="http://www.FreeBSD.org/news/newsflash.html">
33
      <xsl:choose>
36
      <xsl:choose>
34
	<xsl:when test="count(child::title)">
37
	<xsl:when test="count(child::title)">
35
	  <title><xsl:value-of select="normalize-space(title)"/></title>
38
	  <title><xsl:value-of select="normalize-space(title)"/></title>

Return to bug 67042