File:  [ELWIX - Embedded LightWeight unIX -] / embedaddon / libxml2 / doc / xsa.xsl
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs - revision graph
Tue Feb 21 23:37:59 2012 UTC (12 years, 4 months ago) by misho
Branches: libxml2, MAIN
CVS tags: v2_9_1p0, v2_9_1, v2_8_0p0, v2_8_0, v2_7_8, HEAD
libxml2

    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@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: 

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>