Home | History | Annotate | Download | only in doc
      1 <?xml version="1.0"?>
      2 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
      3                 xmlns:xhtml="http://www.w3.org/1999/xhtml"
      4                 version="1.0">
      5   <xsl:output method="text" encoding="UTF-8"/>
      6 
      7   <xsl:template match="/">
      8     <xsl:text>
      9         NEWS file for libxml2
     10 
     11   Note that this is automatically generated from the news webpage at:
     12        http://xmlsoft.org/news.html
     13 
     14 </xsl:text>
     15     <xsl:apply-templates select="//xhtml:h3[1]/.."/>
     16   </xsl:template>
     17   <xsl:template match="xhtml:h3">
     18     <xsl:text>
     19 </xsl:text>
     20     <xsl:apply-templates/>
     21     <xsl:text>:
     22 </xsl:text>
     23   </xsl:template>
     24   <xsl:template match="xhtml:ul">
     25     <xsl:apply-templates select=".//xhtml:li"/>
     26     <xsl:text>
     27 </xsl:text>
     28   </xsl:template>
     29   <xsl:template match="xhtml:li">
     30     <xsl:text>   - </xsl:text>
     31     <xsl:value-of select="."/>
     32     <xsl:text>
     33 </xsl:text>
     34   </xsl:template>
     35   <xsl:template match="xhtml:a">
     36     <xsl:value-of select="."/>
     37     <xsl:text> at 
     38 </xsl:text>
     39     <xsl:value-of select="@href"/>
     40     <xsl:text>
     41 </xsl:text>
     42   </xsl:template>
     43 </xsl:stylesheet>
     44 
     45