blob: 30151d46c19d3ccd87a04c803cc300bc690820df [file] [log] [blame]
Daniel Veillardb4d30b62003-03-16 22:32:36 +00001<?xml version="1.0"?>
2<!--
3 Stylesheet generating the XSA entry for libxml2 based on the
4 latest News entry.
5 See http://www.garshol.priv.no/download/xsa/ for a description of XSA
6 -->
Daniel Veillard1177ca42003-04-26 22:29:54 +00007<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"
8 xmlns:xhtml="http://www.w3.org/1999/xhtml" exclude-result-prefixes="xhtml">
Daniel Veillardb4d30b62003-03-16 22:32:36 +00009 <xsl:output method="xml"
10 doctype-public="-//LM Garshol//DTD XML Software Autoupdate 1.0//EN//XML"
11 doctype-system="http://www.garshol.priv.no/download/xsa/xsa.dtd"
12 indent="yes"/>
13
14 <xsl:template match="/">
15<xsa>
16 <vendor>
17 <name>Daniel Veillard</name>
18 <email>daniel@veillard.com</email>
19 <url>http://veillard.com/</url>
20 </vendor>
21 <product id="libxml2">
22 <name>libxml2</name>
Daniel Veillard1177ca42003-04-26 22:29:54 +000023 <version><xsl:value-of select="substring-before(//xhtml:h3[2], ':')"/></version>
24 <last-release><xsl:value-of select="substring-after(//xhtml:h3[2], ':')"/></last-release>
Daniel Veillardb4d30b62003-03-16 22:32:36 +000025 <info-url>http://xmlsoft.org/</info-url>
26 <changes>
Daniel Veillard1177ca42003-04-26 22:29:54 +000027 <xsl:apply-templates select="//xhtml:h3[2]/following-sibling::*[1]"/>
Daniel Veillardb4d30b62003-03-16 22:32:36 +000028 </changes>
29 </product>
30</xsa>
31 </xsl:template>
Daniel Veillard1177ca42003-04-26 22:29:54 +000032 <xsl:template match="xhtml:h3">
Daniel Veillardb4d30b62003-03-16 22:32:36 +000033 </xsl:template>
Daniel Veillard1177ca42003-04-26 22:29:54 +000034 <xsl:template match="xhtml:ul">
35 <xsl:apply-templates select=".//xhtml:li"/>
Daniel Veillardb4d30b62003-03-16 22:32:36 +000036 <xsl:text>
37</xsl:text>
38 </xsl:template>
Daniel Veillard1177ca42003-04-26 22:29:54 +000039 <xsl:template match="xhtml:li">
Daniel Veillardb4d30b62003-03-16 22:32:36 +000040 <xsl:text> - </xsl:text>
41 <xsl:value-of select="."/>
42 <xsl:text>
43</xsl:text>
44 </xsl:template>
Daniel Veillard1177ca42003-04-26 22:29:54 +000045 <xsl:template match="xhtml:a">
Daniel Veillardb4d30b62003-03-16 22:32:36 +000046 <xsl:value-of select="."/>
47 <xsl:text> at
48</xsl:text>
49 <xsl:value-of select="@href"/>
50 <xsl:text>
51</xsl:text>
52 </xsl:template>
53</xsl:stylesheet>
54