doc/en_US.ISO8859-1/htdocs/gnome/rss.xsl
Wolfram Schneider 974fb6486f switch to HTTPS
2017-09-29 11:10:30 +00:00

43 lines
1.3 KiB
XML

<?xml version="1.0" encoding="iso-8859-1" ?>
<!DOCTYPE xsl:stylesheet PUBLIC "-//FreeBSD//DTD FreeBSD XSLT 1.0 DTD//EN"
"http://www.FreeBSD.org/XML/share/xml/xslt10-freebsd.dtd">
<!-- $FreeBSD$ -->
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
version="1.0">
<xsl:import href="http://www.FreeBSD.org/XML/lang/share/xml/libcommon.xsl"/>
<xsl:output type="xml" />
<xsl:template match="/">
<rdf:RDF
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns="http://my.netscape.com/rdf/simple/0.9/">
<channel>
<title>FreeBSD GNOME Project News</title>
<link>https://www.FreeBSD.org/gnome</link>
<description>FreeBSD GNOME News System</description>
</channel>
<xsl:for-each select="descendant::event[position() &lt;= 10]">
<item>
<title>
<xsl:choose>
<xsl:when test="count(child::title)">
<xsl:value-of select="title"/>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="p"/>
</xsl:otherwise>
</xsl:choose>
</title>
<link>https://www.FreeBSD.org/gnome/newsflash#<xsl:call-template name="generate-event-anchor"/></link>
</item>
</xsl:for-each>
</rdf:RDF>
</xsl:template>
</xsl:stylesheet>