<?xml version="1.0"?>

<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
  <xsl:output method="html" indent="yes"/>
    
  <xsl:template match="/">
    <xsl:apply-templates/>
  </xsl:template>

  <xsl:template match="doc">
    <html>
      <head><title><xsl:value-of select="@title"/></title></head>
      <body  bgcolor="#ffffff" text="#000000">
        <xsl:apply-templates/>
      <hr/>
      <i>
      Generated from <a href="{@src}"><xsl:value-of select="@src"/></a> with the help of
      <a href="{@xsl}"><xsl:value-of select="@xsl"/></a> (and 
      <a href="http://xml.apache.org/xalan-j/index.html">Xalan</a>).<br/>
      Last updated <xsl:value-of select="@date"/> by <a href="mailto:josv@osp.nl">josv@osp.nl</a>.
      </i>
      </body>
    </html>
  </xsl:template>

  <xsl:template match="header">
    <table cols="1" width="100%" bgcolor="#006600">
      <tr>
      <td><b><font size="+4" color="#ffffff"><xsl:value-of select="@title"/></font></b></td>
      </tr>
    </table>
  </xsl:template>

<xsl:template match="wipheader">
    <table cols="2" width="100%" bgcolor="#006600">
      <tr>
      <td><b><font size="+4" color="#ffffff"><xsl:value-of select="@title"/></font></b></td>
      <td><img src="../under_construction.gif" align="center"/><font color="#ffffff" size="+2">
      	<i>Work in progress....</i></font></td>
      </tr>
    </table>
  </xsl:template>

  <xsl:template match="ol">
    <ol><xsl:apply-templates/></ol>
  </xsl:template>

  <xsl:template match="li">
    <li><xsl:apply-templates/></li>
  </xsl:template>

  <xsl:template match="a">
    <a href="{@href}"><xsl:apply-templates/></a>
  </xsl:template>

  <xsl:template match="p">
    <p><xsl:apply-templates/></p>
  </xsl:template>

  <xsl:template match="sigtable">
    <p>
      <table cols="2" width="80%">
        <xsl:apply-templates/>
      </table>
    </p>
  </xsl:template>

  <xsl:template match="signature">
      <xsl:apply-templates/>
    <tr valign="top"><td><hr/></td></tr>
  </xsl:template>

  <xsl:template match="sig">
      <tr bgcolor="#006600">
        <td>
	  <font color="#ffffff"><pre>--<xsl:apply-templates/></pre></font>
	</td>
      </tr>
  </xsl:template>

  <xsl:template match="explanation">
    <tr><td>
      <xsl:apply-templates/>
      <p/>
    </td></tr>
  </xsl:template>

</xsl:stylesheet>
