Modified: jakarta/site/xdocs/stylesheets/news2content.xsl URL: http://svn.apache.org/viewcvs/jakarta/site/xdocs/stylesheets/news2content.xsl?rev=373322&r1=373321&r2=373322&view=diff ============================================================================== --- jakarta/site/xdocs/stylesheets/news2content.xsl (original) +++ jakarta/site/xdocs/stylesheets/news2content.xsl Sun Jan 29 08:06:35 2006 @@ -21,13 +21,14 @@ ***************************** --> - -<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:date="http://exslt.org/dates-and-times" - xmlns:redirect="http://xml.apache.org/xalan/redirect" extension-element-prefixes="date redirect" version="1.0"> +<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" + xmlns:date="http://exslt.org/dates-and-times" + xmlns:redirect="http://xml.apache.org/xalan/redirect" extension-element-prefixes="date redirect" + version="1.0"> <xsl:import href="common.xsl"/> - <xsl:param name="base.dir" select="string('.')"/> + <xsl:param name="base.dir" select="string('.')"/> <xsl:output method="xml" encoding="Cp1252"/> - <xsl:template match="/"> + <xsl:template match="/"> <!-- Apply templates to generate a content file for each group. --> <xsl:apply-templates select="news/group"/> <!-- RSS output --> @@ -35,16 +36,16 @@ <channel> <title>Apache Jakarta Project</title> <link>http://jakarta.apache.org/</link> - <language>en</language> + <language>en</language> <image> - <url>http://jakarta.apache.org/images/jakarta-logo.gif</url> - <title>Apache Jakarta Project</title> + <url>http://jakarta.apache.org/images/jakarta-logo.gif</url> + <title>Apache Jakarta Project</title> <link>http://jakarta.apache.org/</link> </image> <description>News and product releases from Apache's Jakarta Project</description> - <xsl:apply-templates select="news/group/*" mode="rss"> + <xsl:apply-templates select="news/group/*" mode="rss"> <!-- ids are really dates, so this is descending chronological order --> - <xsl:sort select="@id" order="descending"/> + <xsl:sort select="@id" order="descending"/> <!-- Maybe should limit the number of <item>s generated into the RSS feed here? --> </xsl:apply-templates> </channel> @@ -55,9 +56,11 @@ <title> <xsl:value-of select="@product"/> Released </title> <!-- The file is name news-{group id}.html --> - <link>http://jakarta.apache.org/site/news/news-<xsl:value-of select="../@id"/>.html#<xsl:value-of - select="@id"/></link> - <xsl:copy-of select="*"/> + <link>http://jakarta.apache.org/site/news/news-<xsl:value-of select="../@id" + />.html#<xsl:value-of select="@id"/></link> + <description> + <xsl:apply-templates mode="rss"/> + </description> </item> </xsl:template> <xsl:template match="item" mode="rss"> @@ -66,10 +69,10 @@ <xsl:value-of select="@title"/> </title> <!-- The file is name news-{group id}.html --> - <link>http://jakarta.apache.org/site/news/news-<xsl:value-of select="../@id"/>.html#<xsl:value-of - select="@id"/></link> + <link>http://jakarta.apache.org/site/news/news-<xsl:value-of select="../@id" + />.html#<xsl:value-of select="@id"/></link> <description> - <xsl:copy-of select="*"/> + <xsl:apply-templates mode="rss"/> </description> </item> </xsl:template> @@ -87,33 +90,41 @@ <xsl:for-each select="*"> <xsl:sort select="@id" order="descending"/> <xsl:if test="position() > 1"> - <hr noshade="noshade"> - <xsl:attribute name="size">1</xsl:attribute> + <hr noshade="noshade"> + <xsl:attribute name="size">1</xsl:attribute> </hr> </xsl:if> <xsl:apply-templates select="."/> </xsl:for-each> - <h3 align="center">[ <a href="index.html#Headlines">News Headlines index</a> ]</h3> - <h3 align="center">[ <a href="index.html#Newsletter Archive">Newsletters Archive</a> ]</h3> + <h3 align="center">[ <a href="index.html#Headlines">News Headlines index</a> + ]</h3> + <h3 align="center">[ <a href="index.html#Newsletter Archive">Newsletters + Archive</a> ]</h3> <!-- Build links for each generated news content page. TODO: Make the "current" page a non-link. --> <xsl:for-each select="/news/group"> <xsl:sort select="@id" order="descending"/> - <h3 align="center"> [ <a href="[EMAIL PROTECTED]">Jakarta Product News from <xsl:value-of - select="@title"/></a> ] </h3> - </xsl:for-each> - <h3 align="center">[ <a href="news-2005-q2.html">Jakarta Product News from 2005 Apr-Jun</a> ]</h3> - <h3 align="center">[ <a href="news-2005-q1.html">Jakarta Product News from 2005 Jan-Mar</a> ]</h3> - <h3 align="center">[ <a href="news-2004-2ndHalf.html">Jakarta Product News from 2004 Jul-Dec</a> - ]</h3> - <h3 align="center">[ <a href="news-2004-1stHalf.html">Jakarta Product News from 2004 Jan-Jun</a> - ]</h3> - <h3 align="center">[ <a href="elsewhere-2004-2ndHalf.html">Other News from 2004 Jul-Dec</a> ]</h3> - <h3 align="center">[ <a href="elsewhere-2004-1stHalf.html">Other News from 2004 Jan-Jun</a> ]</h3> + <h3 align="center"> [ <a href="[EMAIL PROTECTED]">Jakarta Product News + from <xsl:value-of select="@title"/></a> ] </h3> + </xsl:for-each> + <h3 align="center">[ <a href="news-2005-q2.html">Jakarta Product News from + 2005 Apr-Jun</a> ]</h3> + <h3 align="center">[ <a href="news-2005-q1.html">Jakarta Product News from + 2005 Jan-Mar</a> ]</h3> + <h3 align="center">[ <a href="news-2004-2ndHalf.html">Jakarta Product News + from 2004 Jul-Dec</a> ]</h3> + <h3 align="center">[ <a href="news-2004-1stHalf.html">Jakarta Product News + from 2004 Jan-Jun</a> ]</h3> + <h3 align="center">[ <a href="elsewhere-2004-2ndHalf.html">Other News from + 2004 Jul-Dec</a> ]</h3> + <h3 align="center">[ <a href="elsewhere-2004-1stHalf.html">Other News from + 2004 Jan-Jun</a> ]</h3> <h3 align="center">[ <a href="news-2003.html">Jakarta News from 2003</a> ]</h3> - <h3 align="center">[ <a href="elsewhere-2003.html">Other News from 2003</a> ]</h3> + <h3 align="center">[ <a href="elsewhere-2003.html">Other News from 2003</a> + ]</h3> <h3 align="center">[ <a href="news-2002.html">Jakarta News from 2002</a> ]</h3> - <h3 align="center">[ <a href="elsewhere-2002.html">Other News from 2002</a> ]</h3> + <h3 align="center">[ <a href="elsewhere-2002.html">Other News from 2002</a> + ]</h3> <h3 align="center">[ <a href="news-2001.html">News from 2001</a> ]</h3> <h3 align="center">[ <a href="news-2000.html">News from 2000</a> ]</h3> </section>
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]