<?xml version="1.0" encoding="UTF-8"?>
<!-- "xdmgeneric" v1.0 by Massimo Marchiori (21 Oct 1999) -->
<!-- An all-purpose stylesheet for generic XDM documents -->
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xdm="http://www.w3.org/1999/09/ql/xdm">
<xsl:template match="/" priority="100">
<html>
<xsl:apply-templates/>
</html>
</xsl:template>
<xsl:template match="xdm:document" priority="49">
<head>
<title>
<xsl:value-of select="@title"/>
</title>
</head>
<body>
<h1>
<xsl:value-of select="@title"/>
</h1>
<xsl:apply-templates/>
<hr/>
<em>
Originally created by
<xsl:value-of select="@creator"/>
<xsl:text> on </xsl:text>
<xsl:value-of select="@date"/>.<br/>
This document has been automatically converted from its original <A HREF="http://www.w3.org/1999/09/ql/xdm">XDM</A> format using the
<A HREF="http://www.w3.org/1999/09/ql/xdm/styles/xdmgeneric.xsl">xdmgeneric stylesheet</A>.
</em>
</body>
</xsl:template>
<xsl:template match="xdm:document/xdm:event/xdm:event" priority="51">
<p>
<xsl:apply-templates/>
</p>
</xsl:template>
<xsl:template match="xdm:document/xdm:event" priority="50">
<h2>
<xsl:value-of select="xdm:what"/></h2>
<xsl:apply-templates/>
</xsl:template>

<xsl:template match="//xdm:who" priority="70">
<em>
<xsl:apply-templates/>
</em>
</xsl:template>

<xsl:template match="xdm:event/xdm:what" priority="20">
<strong>
<xsl:value-of select="."/>
</strong>
</xsl:template>
<xsl:template match="xdm:event" priority="19">
<blockquote>
<xsl:apply-templates/>
</blockquote>
</xsl:template>
<xsl:template match="xdm:action">
<p>
<table border="1">
<tbody>
<tr>
<td>
<table border="0" width="100%">
<colgroup span="3" width="33%"/>
<tbody>
<tr bgcolor="#FF2200">
<td colspan="3">
<big>Action <xsl:value-of select="@name"/>
</big>
</td>
</tr>
<tr>
<td>Assigned to: <xsl:value-of select="xdm:who"/>
</td>
<td>Deadline: <xsl:value-of select="xdm:when"/>
</td>
<td>Status: <xsl:value-of select="@status"/>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
<tr>
<td>
<xsl:apply-templates/>
</td>
</tr>
</tbody>
</table>
</p>
</xsl:template>

<xsl:template match="xdm:issue" priority="19">
<p>
<table border="1">
<tbody>
<tr>
<td>
<table border="0" width="100%">
<colgroup span="2" width="50%"/>
<tbody>
<tr bgcolor="#00AAFF">
<td colspan="3">
<big>Issue <xsl:value-of select="@name"/>
</big>
</td>
</tr>
<tr>
<td>Raised by: <xsl:value-of select="xdm:who"/>
</td>
<td>Deadline: <xsl:value-of select="xdm:when"/>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
<tr>
<td>
<xsl:apply-templates/>
</td>
</tr>
</tbody>
</table>
</p>
</xsl:template>

<xsl:template match="xdm:requirement/xdm:what" priority="20">
<strong>
<xsl:value-of select="."/>
</strong>
</xsl:template>
<xsl:template match="xdm:requirement" priority="19">
<p>
<table border="1">
<tbody>
<tr>
<td>
<table border="0" width="100%">
<colgroup span="3" width="33%"/>
<tbody>
<tr bgcolor="#00BB00">
<td colspan="3">
<big>Requirement <xsl:value-of select="@name"/>
</big>
</td>
</tr>
<tr>
<td>Kind: <em>
<xsl:value-of select="@kind"/>
</em>
</td>
<td>Status: <em>
<xsl:value-of select="@status"/>
</em>
</td>
<td>Raised by:
<xsl:value-of select="xdm:who"/>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
<tr>
<td>
<xsl:apply-templates/>
</td>
</tr>
</tbody>
</table>
</p>
</xsl:template>

</xsl:stylesheet>


