]> xenbits.xensource.com Git - libvirt.git/commitdiff
Fix generation of NEWS file
authorDaniel P. Berrange <berrange@redhat.com>
Wed, 23 Apr 2008 19:39:59 +0000 (19:39 +0000)
committerDaniel P. Berrange <berrange@redhat.com>
Wed, 23 Apr 2008 19:39:59 +0000 (19:39 +0000)
ChangeLog
docs/Makefile.am
docs/news.xsl

index c5917c09ed1bbe2521a24b400327e58e2e65aaf1..04a097f20281a234dd0adf4f5fb600c21e7e0d09 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+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
index 8cb5f06bc6322a1450a3d87372ec875a7c88d422..c42c1f868cee78ecd3fb697886efae7308705417 100644 (file)
@@ -113,9 +113,9 @@ libvirt-api.xml libvirt-refs.xml: apibuild.py \
                $(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
index 0a23762a4569cc0551e752baa6662aaf54a1e4f0..47431510afc81e4828ee21ef6e4beeac2f4d8f44 100644 (file)
@@ -1,6 +1,5 @@
 <?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>
@@ -40,7 +41,7 @@
     <xsl:text>
 </xsl:text>
   </xsl:template>
-  <xsl:template match="xhtml:p">
+  <xsl:template match="p">
   </xsl:template>
 </xsl:stylesheet>