Initial revision
[TestXSLT.git] / libxml2 / doc / news.xsl
1 <?xml version="1.0"?>
2 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
3   <xsl:output method="text" encoding="ISO-8859-1"/>
4
5   <xsl:template match="/">
6     <xsl:text>
7         NEWS file for libxml2
8
9   Note that this is automatically generated from the news webpage at:
10        http://xmlsoft.org/news.html
11
12 </xsl:text>
13     <xsl:apply-templates select="//h3[1]/.."/>
14   </xsl:template>
15   <xsl:template match="h3">
16     <xsl:text>
17 </xsl:text>
18     <xsl:apply-templates/>
19     <xsl:text>:</xsl:text>
20   </xsl:template>
21   <xsl:template match="ul">
22     <xsl:apply-templates select=".//li"/>
23     <xsl:text>
24 </xsl:text>
25   </xsl:template>
26   <xsl:template match="li">
27     <xsl:text>   - </xsl:text>
28     <xsl:value-of select="."/>
29     <xsl:text>
30 </xsl:text>
31   </xsl:template>
32   <xsl:template match="a">
33     <xsl:value-of select="."/>
34     <xsl:text> at 
35 </xsl:text>
36     <xsl:value-of select="@href"/>
37     <xsl:text>
38 </xsl:text>
39   </xsl:template>
40 </xsl:stylesheet>
41