- Documentation is updated from DocBook 4.1/SGML to DocBook 4.2/XML - Webpages are updated from HTML 4.01 Transitional to XHTML 1.0 Transitional - Static webpages are now processed by XSLT behind the scenes - Webpages are now built with less cycles; tidy has been removed and the date processing is now done by XSLT - Generated webpages are now actually valid (they did not use to be) - All XSLT stylesheets now pull in a main XSLT, which reduces duplicated markup - Site map and index are converted to an XML format with an XSLT transformation that generates the output - For docs, there is now only one entity set for both articles and books - Some trademark/legalnotice entities have been merged to a cohesive single entity file - Untranslated entity sets are now always pulled in from the English tree instead of redundant copies - The base and enbase entities are already automatically generated so remove inline definitions from individual files - Fetch the LEGAL file via http instead of depending on CVS - Convert id names to lowercase to avoid mixing different styles and for better readability - All PSGML comments are removed since they are mostly useless - Convert character entities to normal characters - Do not copy CSS files but override only necessary part - Fix build with newest tidy - Partly update the fdp-primer to reflect changes Approved by: doceng (implicit)
100 lines
3.6 KiB
XML
100 lines
3.6 KiB
XML
<?xml version="1.0" encoding="EUC-JP" ?>
|
|
<!DOCTYPE xsl:stylesheet PUBLIC "-//FreeBSD//DTD FreeBSD XSLT 1.0 DTD//EN"
|
|
"http://www.FreeBSD.org/XML/www/share/sgml/xslt10-freebsd.dtd">
|
|
<!-- $FreeBSD$ -->
|
|
<!-- The FreeBSD Japanese Documentation Project -->
|
|
<!-- Original revision: 1.2 -->
|
|
|
|
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"
|
|
xmlns:cvs="http://www.FreeBSD.org/XML/CVS"
|
|
exclude-result-prefixes="cvs">
|
|
|
|
<xsl:import href="http://www.FreeBSD.org/XML/www/lang/share/sgml/libcommon.xsl"/>
|
|
|
|
<xsl:output method="xml" indent="yes" encoding="&xml.encoding;"/>
|
|
|
|
<xsl:template match="/">
|
|
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
|
|
<channel>
|
|
<xsl:call-template name="rss-java-news-title" />
|
|
<xsl:call-template name="rss-java-news-items" />
|
|
</channel>
|
|
</rss>
|
|
</xsl:template>
|
|
|
|
<!-- template: "rss-java-news-title"
|
|
pulls in the 10 most recent java news items -->
|
|
|
|
<xsl:template name="rss-java-news-title"
|
|
xmlns:atom="http://www.w3.org/2005/Atom">
|
|
|
|
<xsl:variable name="title">FreeBSD Java Project News</xsl:variable>
|
|
<xsl:variable name="link">http://www.FreeBSD.org/java/</xsl:variable>
|
|
|
|
<title><xsl:value-of select="$title" /></title>
|
|
<link><xsl:value-of select="$link" /></link>
|
|
<description>Java newsflash items from the FreeBSD Project</description>
|
|
<language>en-us</language>
|
|
<webMaster>freebsd-java@FreeBSD.org (FreeBSD Java Team)</webMaster>
|
|
<managingEditor>freebsd-java@FreeBSD.org (FreeBSD Java Team)</managingEditor>
|
|
<docs>http://blogs.law.harvard.edu/tech/rss</docs>
|
|
<ttl>120</ttl>
|
|
<image>
|
|
<url>http://www.FreeBSD.org/logo/logo-full.png</url>
|
|
<title><xsl:value-of select="$title" /></title>
|
|
<link><xsl:value-of select="$link" /></link>
|
|
</image>
|
|
<atom:link rel="self" type="application/rss+xml">
|
|
<xsl:attribute name="href">
|
|
<xsl:value-of select="$link" /><xsl:text>rss.xml</xsl:text>
|
|
</xsl:attribute>
|
|
</atom:link>
|
|
</xsl:template>
|
|
|
|
<!-- template: "rss-java-news-items"
|
|
pulls in the 10 most recent security advisories -->
|
|
|
|
<xsl:template name="rss-java-news-items"
|
|
xmlns:atom="http://www.w3.org/2005/Atom">
|
|
|
|
<xsl:for-each select="descendant::event[position() <= 10]">
|
|
<xsl:variable name="guid"><xsl:call-template name="generate-event-anchor"/></xsl:variable>
|
|
|
|
<xsl:variable name="month"><xsl:call-template name="generate-month-num"><xsl:with-param name="month" select="../../name"/></xsl:call-template></xsl:variable>
|
|
<item>
|
|
<title>
|
|
<xsl:choose>
|
|
<xsl:when test="count(child::title)">
|
|
<xsl:value-of select="title"/>
|
|
</xsl:when>
|
|
<xsl:otherwise>
|
|
<xsl:copy-of select="p"/>
|
|
</xsl:otherwise>
|
|
</xsl:choose>
|
|
</title>
|
|
|
|
<xsl:if test="count(child::title)">
|
|
<description>
|
|
<xsl:apply-templates select="p"/>
|
|
</description>
|
|
</xsl:if>
|
|
|
|
<link>http://www.FreeBSD.org/ja/java/newsflash.html#<xsl:value-of select="$guid" /></link>
|
|
<guid>http://www.FreeBSD.org/ja/java/newsflash.html#<xsl:value-of select="$guid" /></guid>
|
|
|
|
<pubDate>
|
|
<xsl:call-template name="misc-format-date-string">
|
|
<xsl:with-param name="year" select="../../../name" />
|
|
<xsl:with-param name="month" select="$month" />
|
|
<xsl:with-param name="day" select="../name" />
|
|
<xsl:with-param name="date-format" select="$param-l10n-date-format-rfc822" />
|
|
</xsl:call-template>
|
|
</pubDate>
|
|
|
|
</item>
|
|
|
|
</xsl:for-each>
|
|
|
|
</xsl:template>
|
|
|
|
</xsl:stylesheet>
|