Re: Re: xmlroff website help wanted

Stefan Seefeld <[email protected]>
Newsgroups gmane.text.xml.xmlroff.general
Message-ID <[email protected]>
Tony Graham wrote:

> The version currently in CVS adds some logos at the bottom of the
> navigation bar.

fine. Though the website doesn't appear to be updated from this new
source. I was ready to investigate when I realized that a simple build
fixed the site locally. Don't you regenerate the website automatically
either per crontab or per checkin ?

> It would look better if a 'rowspan="2"' deep inside the DocBook
> website stylesheets were 'rowspan="3"', but that was more than I
> wanted to customise at this time of night.
> 
> I'll leave the RSS stuff up to you, Stefan.

The attached patch replaces the current 'news.html' content by the
rss news feed from sf.net. The styling still needs a lot of work,
but as that can all be done via css customization, I'll keep that
issue open for the moment.
Please add some news (on the sf.net) so we can all see the rss feed
working :-)

I'd still like to see the website give a more accurate impression of
the current status of the project. I'm not sure though how feasable that
is without more manual work (from your part). Can't the unit tests
be run automatically and some status page generated from that ?

Just so that occasional visitors that want to watch the progress
in terms of feature coverage could get a quick impression.

Any suggestions ?

Kind regards,
		Stefan
patch (text/plain, 5.4 KB)
Index: custom-website.xsl
===================================================================
RCS file: /cvsroot/xmlroff/xmlroff-website/custom-website.xsl,v
retrieving revision 1.5
diff -u -r1.5 custom-website.xsl
--- custom-website.xsl	20 Sep 2004 23:38:22 -0000	1.5
+++ custom-website.xsl	4 Oct 2004 02:06:43 -0000
@@ -56,4 +56,31 @@
 	</td></tr>
 </xsl:template>
 
+<xsl:template match="rss">
+  <xsl:variable name="rss" select="document(@feed, .)"/>
+  <div class="rss">
+    <xsl:apply-templates select="$rss/rss/channel"/>
+  </div>
+</xsl:template>
+
+<xsl:template match="rss/channel">
+  <!-- ignore title and description, as its our own news feed.-->
+  <xsl:apply-templates select="item"/>
+</xsl:template>
+
+<xsl:template match="rss/channel/item">
+  <h3 class="title"><a href="{link}"><xsl:value-of select="title"/></a></h3>
+  <p>
+    <span class="date">
+      <xsl:text> (</xsl:text>
+      <xsl:value-of select="pubDate"/>
+      <xsl:text>)</xsl:text>
+    </span>
+    <span class="author"> by <xsl:value-of select="author"/></span>
+  </p>
+  <p>
+    <xsl:value-of xsl:disable-output-escaping="yes" select="description"/>
+  </p>
+</xsl:template>
+
 </xsl:stylesheet>
Index: news.xml
===================================================================
RCS file: /cvsroot/xmlroff/xmlroff-website/news.xml,v
retrieving revision 1.8
diff -u -r1.8 news.xml
--- news.xml	16 Sep 2004 15:27:54 -0000	1.8
+++ news.xml	4 Oct 2004 02:06:43 -0000
@@ -16,133 +16,7 @@
 <summary>All the news that's it to print</summary>
 </head>
 
-<informaltable>
-    <tgroup cols="2">
-      <thead>
-	<row>
-	  <entry>Date</entry>
-	  <entry>News</entry>
-	</row>
-      </thead>
-      <tbody>
-	<row>
-	  <entry>2004-08-09</entry>
-	  <entry>
-	    <para>xmlroff 0.2.8 released</para>
-	  </entry>
-	</row>
-	<row>
-	  <entry>2003-12-20</entry>
-	  <entry>
-	    <para>xmlroff 0.2.4 for Christmas</para>
-
-	    <para>The new xmlroff 0.2.4 is available in time for
-	    the holidays, and at the right price too: it's free.</para>
-
-	    <para>xmlroff 0.2.4 includes many bug fixes and stability
-	    improvements resulting from work done to process the
-	    samples from the XML 2003 "XSL FO Chef's Tools
-	    Exhibition".</para>
-
-	    <para>This release of xmlroff defaults to using GNOME
-	    Print and requires PDFlib support to be explicitly enabled
-	    if it is wanted.</para>
-	  </entry>
-	</row>
-	<row>
-	  <entry>2003-12-20</entry>
-	  <entry>
-	    <para>Java Native Interface (JNI) for libfo</para>
-
-	    <para>A simple demonstration JNI for libfo is now
-	    available in the libfo-jni package.</para>
-	  </entry>
-	</row>
-	<row>
-	  <entry>2003-07-04</entry>
-	  <entry>
-	    <para>Independence Day for xmlroff!</para>
-
-	    <para>The new xmlroff-0.2.3 does not need PDFlib.</para>
-
-	    <para>xmlroff-0.2.3 compiles and runs independently of
-	    PDFlib when you use the --disable-pdflib flag when you run
-	    configure.  Similarly, it is independent of GNOME Print
-	    when you use --disable-gp.</para>
-
-            <para>xmlroff defaults to using PDFlib instead of GNOME
-            Print simply because prior versions supported only PDFlib
-            output.</para>
-
-	    <para>The next release of xmlroff is expected to default
-	    to using GNOME Print and to require PDFlib support to be
-	    explicitly enabled if it is wanted.</para>
-	  </entry>
-	</row>
-	<row>
-	  <entry>2003-05-23</entry>
-	  <entry><para>xmlroff produces PDF output using GNOME Print.
-	  See the <olink targetdocent="examples-pangogp">GNOME Print
-	  example</olink> page.</para>
-	  </entry>
-	</row>
-	<row>
-	  <entry>2003-05-12</entry>
-	  <entry><para>Added <ulink
-	  url="phpwiki/index.php/Status">Status</ulink> link to status
-	  reports in the xmlroff Wiki.</para>
-	  </entry>
-	</row>
-	<row>
-	  <entry>2003-03-05</entry>
-	  <entry><para>xmlroff-0.2.2 now available.</para>
-	    <itemizedlist>
-	      <listitem>
-		<para>Build fixes for handling dependency on libxml2 [Charles Bozeman]</para>
-	      </listitem>
-	      <listitem>
-		<para>Minor property code improvements</para>
-	      </listitem>
-	      <listitem>
-		<para>Increased documentation comment coverage</para>
-	      </listitem>
-	    </itemizedlist>
-	  </entry>
-	</row>
-	<row>
-	  <entry>2003-02-28</entry>
-	  <entry><para>xmlroff-0.2.1 now available.</para>
-	    <itemizedlist>
-	      <listitem>
-		<para>Add FoPropertyTextPropertyIface interface for getting PangoAttribute
-  from inline properties of FoInlineFoIface formatting objects</para>
-	      </listitem>
-	      <listitem>
-		<para>Build fixes for use with statically linked fontconfig</para>
-	      </listitem>
-	      <listitem>
-		<para>Put common color property validation in fo-property-util.[ch]</para>
-	      </listitem>
-	    </itemizedlist>
-</entry>
-	</row>
-	<row>
-	  <entry>2003-02-19</entry>
-	  <entry><para>The <ulink
-	  url="http://xmlroff.sourceforge.net/phpwiki/index.php">xmlroff
-	  Wiki</ulink> is now operational. It contains semi-structured
-	  notes about xmlroff that haven't yet made it into either
-	  this web site or the xmlroff API documentation.</para>
-<para>Everyone is invited to extend the Wiki.</para>
-</entry>
-	</row>
-	<row>
-	  <entry>2003-02-10</entry>
-	  <entry>xmlroff-0.2.0 now available.</entry>
-	</row>
-	</tbody>
-      </tgroup>
-    </informaltable>
+<rss feed="http://sourceforge.net/export/rss2_projnews.php?group_id=73148"/>
 
 </webpage>
 <!--
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.