+Wed Apr 23 15:38:11 EST 2008 Daniel P. Berrange <berrange@redhat.com>
+
+ * docs/Makefile.am, docs/news.xsl: Fix generation of NEWS file
+
Wed Apr 23 13:43:11 EST 2008 Daniel P. Berrange <berrange@redhat.com>
* docs/page.xsl: Fix link to wiki when href_base is set
$(srcdir)/../src/*.h $(srcdir)/../src/*.c
-(./apibuild.py)
-$(top_builddir)/NEWS: $(top_srcdir)/docs/news.xsl $(top_srcdir)/docs/news.html
+$(top_builddir)/NEWS: $(top_srcdir)/docs/news.xsl $(top_srcdir)/docs/news.html.in
-@(if [ -x $(XSLTPROC) ] ; then \
- $(XSLTPROC) --nonet $(top_srcdir)/docs/news.xsl $(top_srcdir)/docs/news.html > $(top_builddir)/NEWS ; fi );
+ $(XSLTPROC) --nonet $(top_srcdir)/docs/news.xsl $(top_srcdir)/docs/news.html.in > $(top_builddir)/NEWS ; fi );
clean-local:
rm -f *~ *.bak *.hierarchy *.signals *-unused.txt
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- xmlns:xhtml="http://www.w3.org/1999/xhtml"
version="1.0">
<xsl:output method="text" encoding="ISO-8859-1"/>
http://libvirt.org/news.html
</xsl:text>
- <xsl:apply-templates select="//xhtml:div[@id='content2']//xhtml:h3[1]/.."/>
+ <xsl:apply-templates select="html/body/*"/>
</xsl:template>
- <xsl:template match="xhtml:h3">
+ <xsl:template match="h1"/>
+
+ <xsl:template match="h3">
<xsl:text>
</xsl:text>
<xsl:apply-templates/>
<xsl:text>:
</xsl:text>
</xsl:template>
- <xsl:template match="xhtml:ul">
- <xsl:apply-templates select=".//xhtml:li"/>
+ <xsl:template match="ul">
+ <xsl:apply-templates select=".//li"/>
<xsl:text>
</xsl:text>
</xsl:template>
- <xsl:template match="xhtml:li">
+ <xsl:template match="li">
<xsl:text> - </xsl:text>
<xsl:value-of select="."/>
<xsl:text>
</xsl:text>
</xsl:template>
- <xsl:template match="xhtml:a">
+ <xsl:template match="a">
<xsl:value-of select="."/>
<xsl:text> at
</xsl:text>
<xsl:text>
</xsl:text>
</xsl:template>
- <xsl:template match="xhtml:p">
+ <xsl:template match="p">
</xsl:template>
</xsl:stylesheet>