3 Stylesheet generating the XSA entry for libxml2 based on the
5 See http://www.garshol.priv.no/download/xsa/ for a description of XSA
7 <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">
9 <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"
14 <xsl:template match="/">
17 <name>Daniel Veillard</name>
18 <email>daniel@veillard.com</email>
19 <url>http://veillard.com/</url>
21 <product id="libxml2">
23 <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>
25 <info-url>http://xmlsoft.org/</info-url>
27 <xsl:apply-templates select="//xhtml:h3[2]/following-sibling::*[1]"/>
32 <xsl:template match="xhtml:h3">
34 <xsl:template match="xhtml:ul">
35 <xsl:apply-templates select=".//xhtml:li"/>
39 <xsl:template match="xhtml:li">
40 <xsl:text> - </xsl:text>
41 <xsl:value-of select="."/>
45 <xsl:template match="xhtml:a">
46 <xsl:value-of select="."/>
49 <xsl:value-of select="@href"/>