Daniel Veillard | b4d30b6 | 2003-03-16 22:32:36 +0000 | [diff] [blame] | 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 | --> |
Daniel Veillard | 1177ca4 | 2003-04-26 22:29:54 +0000 | [diff] [blame] | 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"> |
Daniel Veillard | b4d30b6 | 2003-03-16 22:32:36 +0000 | [diff] [blame] | 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@veillard.com</email> |
| 19 | <url>http://veillard.com/</url> |
| 20 | </vendor> |
| 21 | <product id="libxml2"> |
| 22 | <name>libxml2</name> |
Daniel Veillard | 1177ca4 | 2003-04-26 22:29:54 +0000 | [diff] [blame] | 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> |
Daniel Veillard | b4d30b6 | 2003-03-16 22:32:36 +0000 | [diff] [blame] | 25 | <info-url>http://xmlsoft.org/</info-url> |
| 26 | <changes> |
Daniel Veillard | 1177ca4 | 2003-04-26 22:29:54 +0000 | [diff] [blame] | 27 | <xsl:apply-templates select="//xhtml:h3[2]/following-sibling::*[1]"/> |
Daniel Veillard | b4d30b6 | 2003-03-16 22:32:36 +0000 | [diff] [blame] | 28 | </changes> |
| 29 | </product> |
| 30 | </xsa> |
| 31 | </xsl:template> |
Daniel Veillard | 1177ca4 | 2003-04-26 22:29:54 +0000 | [diff] [blame] | 32 | <xsl:template match="xhtml:h3"> |
Daniel Veillard | b4d30b6 | 2003-03-16 22:32:36 +0000 | [diff] [blame] | 33 | </xsl:template> |
Daniel Veillard | 1177ca4 | 2003-04-26 22:29:54 +0000 | [diff] [blame] | 34 | <xsl:template match="xhtml:ul"> |
| 35 | <xsl:apply-templates select=".//xhtml:li"/> |
Daniel Veillard | b4d30b6 | 2003-03-16 22:32:36 +0000 | [diff] [blame] | 36 | <xsl:text> |
| 37 | </xsl:text> |
| 38 | </xsl:template> |
Daniel Veillard | 1177ca4 | 2003-04-26 22:29:54 +0000 | [diff] [blame] | 39 | <xsl:template match="xhtml:li"> |
Daniel Veillard | b4d30b6 | 2003-03-16 22:32:36 +0000 | [diff] [blame] | 40 | <xsl:text> - </xsl:text> |
| 41 | <xsl:value-of select="."/> |
| 42 | <xsl:text> |
| 43 | </xsl:text> |
| 44 | </xsl:template> |
Daniel Veillard | 1177ca4 | 2003-04-26 22:29:54 +0000 | [diff] [blame] | 45 | <xsl:template match="xhtml:a"> |
Daniel Veillard | b4d30b6 | 2003-03-16 22:32:36 +0000 | [diff] [blame] | 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 | |