aboutsummaryrefslogtreecommitdiffstats
path: root/doc/news.xsl
diff options
context:
space:
mode:
authorDaniel Veillard <veillard@src.gnome.org>2003-01-01 19:13:12 +0000
committerDaniel Veillard <veillard@src.gnome.org>2003-01-01 19:13:12 +0000
commit8ba1741abd991f8ab885f9fe1cecb69cf259f84f (patch)
tree1fd75fa8be06e8d0ff903abe5e42540dc52f14ba /doc/news.xsl
parente3c036eedde59df360f54732fc0948ffde9f3139 (diff)
downloadandroid_external_libxml2-8ba1741abd991f8ab885f9fe1cecb69cf259f84f.tar.gz
android_external_libxml2-8ba1741abd991f8ab885f9fe1cecb69cf259f84f.tar.bz2
android_external_libxml2-8ba1741abd991f8ab885f9fe1cecb69cf259f84f.zip
generate the NEWS file from doc/news.html and a stylesheet Daniel
* NEWS doc/Makefile.am doc/news.xsl: generate the NEWS file from doc/news.html and a stylesheet Daniel
Diffstat (limited to 'doc/news.xsl')
-rw-r--r--doc/news.xsl41
1 files changed, 41 insertions, 0 deletions
diff --git a/doc/news.xsl b/doc/news.xsl
new file mode 100644
index 00000000..58cd271b
--- /dev/null
+++ b/doc/news.xsl
@@ -0,0 +1,41 @@
+<?xml version="1.0"?>
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
+ <xsl:output method="text" encoding="ISO-8859-1"/>
+
+ <xsl:template match="/">
+ <xsl:text>
+ NEWS file for libxml2
+
+ Note that this is automatically generated from the news webpage at:
+ http://xmlsoft.org/news.html
+
+</xsl:text>
+ <xsl:apply-templates select="//h3[1]/.."/>
+ </xsl:template>
+ <xsl:template match="h3">
+ <xsl:text>
+</xsl:text>
+ <xsl:apply-templates/>
+ <xsl:text>:</xsl:text>
+ </xsl:template>
+ <xsl:template match="ul">
+ <xsl:apply-templates select=".//li"/>
+ <xsl:text>
+</xsl:text>
+ </xsl:template>
+ <xsl:template match="li">
+ <xsl:text> - </xsl:text>
+ <xsl:value-of select="."/>
+ <xsl:text>
+</xsl:text>
+ </xsl:template>
+ <xsl:template match="a">
+ <xsl:value-of select="."/>
+ <xsl:text> at
+</xsl:text>
+ <xsl:value-of select="@href"/>
+ <xsl:text>
+</xsl:text>
+ </xsl:template>
+</xsl:stylesheet>
+