aboutsummaryrefslogtreecommitdiff
blob: 071be6f44522ee5b0a9e8b34a9049cfb11374c0d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
<?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"/>

  <xsl:template match="/">
    <xsl:text>
        NEWS file for libvir

  Note that this is automatically generated from the news webpage at:
       http://libvir.org/news.html

</xsl:text>
    <xsl:apply-templates select="//xhtml:div[@id='content2']//xhtml:h3[1]/.."/>
  </xsl:template>
  <xsl:template match="xhtml: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:text>
</xsl:text>
  </xsl:template>
  <xsl:template match="xhtml:li">
    <xsl:text>   - </xsl:text>
    <xsl:value-of select="."/>
    <xsl:text>
</xsl:text>
  </xsl:template>
  <xsl:template match="xhtml:a">
    <xsl:value-of select="."/>
    <xsl:text> at 
</xsl:text>
    <xsl:value-of select="@href"/>
    <xsl:text>
</xsl:text>
  </xsl:template>
  <xsl:template match="xhtml:p">
  </xsl:template>
</xsl:stylesheet>