1 <?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 --> 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" 12 indent="yes"/> 13 14 <xsl:template match="/"> 15 <xsa> 16 <vendor> 17 <name>Daniel Veillard</name> 18 <email>daniel (a] veillard.com</email> 19 <url>http://veillard.com/</url> 20 </vendor> 21 <product id="libxml2"> 22 <name>libxml2</name> 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> 26 <changes> 27 <xsl:apply-templates select="//xhtml:h3[2]/following-sibling::*[1]"/> 28 </changes> 29 </product> 30 </xsa> 31 </xsl:template> 32 <xsl:template match="xhtml:h3"> 33 </xsl:template> 34 <xsl:template match="xhtml:ul"> 35 <xsl:apply-templates select=".//xhtml:li"/> 36 <xsl:text> 37 </xsl:text> 38 </xsl:template> 39 <xsl:template match="xhtml:li"> 40 <xsl:text> - </xsl:text> 41 <xsl:value-of select="."/> 42 <xsl:text> 43 </xsl:text> 44 </xsl:template> 45 <xsl:template match="xhtml:a"> 46 <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 55