File: news.xsl

package info (click to toggle)
libvirt-php 0.4.8-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 1,400 kB
  • ctags: 757
  • sloc: ansic: 6,618; sh: 875; makefile: 101
file content (46 lines) | stat: -rw-r--r-- 1,063 bytes parent folder | download | duplicates (12)
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"
                version="1.0">
  <xsl:output method="text" encoding="UTF-8"/>

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

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

</xsl:text>
    <xsl:apply-templates select="html/body/*"/>
  </xsl:template>
  <xsl:template match="h1"/>

  <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:template match="p">
  </xsl:template>
</xsl:stylesheet>