home *** CD-ROM | disk | FTP | other *** search
/ PC Online 1999 November / PCONLINE_11_99.ISO / filesbbs / OS2 / APCHSSL2.ZIP / OS2HTTPD / public / htdocs / xml / news.text.xsl < prev    next >
Encoding:
Extensible Markup Language  |  1999-03-09  |  1.8 KB  |  68 lines

  1. <?xml version="1.0"?>
  2.  
  3. <!-- Author: Stefano Mazzocchi <stefano@apache.org> -->
  4. <!-- Version: $Id: news.text.xsl,v 1.1.1.1 1999/03/09 23:09:25 stefano Exp $ -->
  5.  
  6. <!-- This stylesheet is for text browsers -->
  7.  
  8. <xsl:stylesheet xmlns:xsl="http://www.w3.org/TR/WD-xsl">
  9.  
  10.   <xsl:template match="page">
  11.    <html>
  12.     <head>
  13.      <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"/>
  14.      <meta name="Author" content="{author}"/>
  15.      <meta name="Version" content="{version}"/>
  16.      <title><xsl:value-of select="title"/></title>
  17.     </head>
  18.     
  19.     <body bgcolor="#ffffff">
  20.      <xsl:apply-templates select="newscolumn|statuscolumn"/>
  21.     </body>
  22.    </html>
  23.   </xsl:template>
  24.   
  25.   <xsl:template match="newscolumn">
  26.    <h2><xsl:text>News</xsl:text></h2>
  27.    <ul>
  28.     <xsl:apply-templates select="news"/>
  29.    </ul>
  30.   </xsl:template>
  31.   
  32.   <xsl:template match="news">
  33.    <li>
  34.     <a href="{link}"><strong><xsl:value-of select="title"/></strong></a>
  35.     <xsl:text> - </xsl:text>
  36.     <strong><xsl:value-of select="date"/></strong>
  37.     <xsl:text> - </xsl:text>
  38.     <xsl:value-of select="content"/>
  39.    </li>
  40.   </xsl:template>
  41.   
  42.   <xsl:template match="statuscolumn">
  43.    <h2><xsl:text>Status</xsl:text></h2>
  44.    <ul>
  45.     <xsl:apply-templates select="project"/>
  46.    </ul>
  47.   </xsl:template>
  48.  
  49.   <xsl:template match="project">
  50.    <li>
  51.     <a href="{link}"><strong><xsl:value-of select="title"/></strong></a>
  52.     <ul>
  53.      <xsl:apply-templates select="release"/>
  54.     </ul>
  55.    </li>
  56.   </xsl:template>
  57.   
  58.   <xsl:template match="release">
  59.    <li>
  60.     <strong><xsl:value-of select="version"/></strong>
  61.     <xsl:text> - </xsl:text>
  62.     <strong><xsl:value-of select="status"/></strong>
  63.     <xsl:text> - </xsl:text>
  64.     <xsl:value-of select="comment"/>
  65.    </li>
  66.   </xsl:template>
  67.   
  68. </xsl:stylesheet>