util: Fix NAME section for virkey{code,name}-*
[libvirt/ericb.git] / docs / news-html.xsl
blob4d407980286fc258abf9f735d9efc2d3adff913c
1 <?xml version="1.0"?>
2 <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
3 <xsl:output method="xml" indent="yes" encoding="UTF-8"/>
5 <!-- This XSLT stylesheet can be applied to the XML version of the release
6 notes to produce an HTML document suitable for further processing.
7 In particular, the final output will end up on the libvirt website -->
9 <!-- Document -->
10 <xsl:template match="/libvirt">
11 <xsl:text disable-output-escaping="yes">&lt;!DOCTYPE html&gt;
12 </xsl:text>
13 <html xmlns="http://www.w3.org/1999/xhtml">
14 <head>
15 <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
16 </head>
17 <body>
18 <xsl:text disable-output-escaping="yes">
20 &lt;!-- DO NOT EDIT THIS FILE! It was generated automatically.
21 Edit the source file (news.xml) instead --&gt;
23 </xsl:text>
24 <h1>Releases</h1>
25 <p>This is the list of official releases for libvirt, along with an
26 overview of the changes introduced by each of them.</p>
27 <p>For a more fine-grained view, use the
28 <a href="https://libvirt.org/git/?p=libvirt.git;a=log">git log</a>.
29 </p>
30 <xsl:apply-templates select="release"/>
31 <p>Older libvirt releases didn't have proper release notes,
32 and as such are not included in this page: if you're looking
33 for information about them, start from those made in
34 <a href="news-2016.html">2016</a> and work your way back.</p>
35 </body>
36 </html>
37 </xsl:template>
39 <!-- Release -->
40 <xsl:template match="release">
41 <h3>
42 <strong>
43 <xsl:value-of select="@version"/>
44 <xsl:text> (</xsl:text>
45 <xsl:value-of select="@date"/>
46 <xsl:text>)</xsl:text>
47 </strong>
48 </h3>
49 <ul>
50 <xsl:apply-templates select="section"/>
51 </ul>
52 </xsl:template>
54 <!-- Section -->
55 <xsl:template match="section">
56 <li>
57 <strong>
58 <xsl:value-of select="@title"/>
59 </strong>
60 <xsl:if test="*">
61 <ul>
62 <xsl:apply-templates select="change"/>
63 </ul>
64 </xsl:if>
65 </li>
66 </xsl:template>
68 <!-- Change -->
69 <xsl:template match="change">
70 <li>
71 <xsl:apply-templates select="summary"/>
72 <xsl:apply-templates select="description"/>
73 </li>
74 </xsl:template>
76 <!-- Change summary -->
77 <xsl:template match="summary">
78 <xsl:apply-templates/>
79 </xsl:template>
81 <!-- Change description -->
82 <xsl:template match="description">
83 <br/>
84 <xsl:apply-templates/>
85 </xsl:template>
87 <!-- <code> HTML tag -->
88 <xsl:template match="code">
89 <xsl:text disable-output-escaping="yes">&lt;code&gt;</xsl:text>
90 <xsl:apply-templates/>
91 <xsl:text disable-output-escaping="yes">&lt;/code&gt;</xsl:text>
92 </xsl:template>
94 </xsl:stylesheet>