summaryrefslogtreecommitdiff
path: root/doc/news.xsl
diff options
context:
space:
mode:
authorDaniel Veillard <veillard@src.gnome.org>2003-03-16 22:44:34 +0000
committerDaniel Veillard <veillard@src.gnome.org>2003-03-16 22:44:34 +0000
commita34c45ac28f8b9deb2c6d463d9109dfb6abe2438 (patch)
tree2a524f320d72663ce3685c1d2a4359b8adebb0b0 /doc/news.xsl
parent0d0f0f23fb081cfaf70f3dfabeccf690503ef847 (diff)
downloadlibxslt-a34c45ac28f8b9deb2c6d463d9109dfb6abe2438.tar.gz
libxslt-a34c45ac28f8b9deb2c6d463d9109dfb6abe2438.tar.bz2
libxslt-a34c45ac28f8b9deb2c6d463d9109dfb6abe2438.zip
Automated the NEWS generation and generated the XSA, like for libxml2, 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..c2391779
--- /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 libxslt
+
+ Note that this is automatically generated from the news webpage at:
+ http://xmlsoft.org/XSLT/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>
+