<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<xsl:template match="/">
<html>
<head>
<title><xsl:value-of select="pod/head/title" /></title>
<link rel="stylesheet" type="text/css" href="pod.css" />
</head>
<xsl:apply-templates />
</html>
</xsl:template>
<xsl:template match="pod">
<body>
<div id="toc">
<p class="toctitle">Table of Contents</p>
<ul class="toclist">
<xsl:for-each select="/pod/sect1/title">
<li><a href="#{translate(., ' ', '_')}"><xsl:value-of select="." /></a></li>
</xsl:for-each>
</ul>
</div>
<xsl:apply-templates />
<p> </p>
<p> </p>
</body>
</xsl:template>
<xsl:template match="head/title">
<h1><xsl:value-of select="." /></h1>
</xsl:template>
<xsl:template match="sect1">
<xsl:apply-templates />
<hr/>
</xsl:template>
<xsl:template match="sect1">
<xsl:apply-templates/>
</xsl:template>
<xsl:template match="sect1/title">
<h1><a name="{translate(., ' ', '_')}"><xsl:value-of select="." /></a></h1>
<xsl:apply-templates/>
</xsl:template>
<xsl:template match="sect1/title/text()">
</xsl:template>
<xsl:template match="sect2">
<xsl:apply-templates/>
</xsl:template>
<xsl:template match="sect2/title">
<h2><a name="{translate(., ' ', '_')}"><xsl:value-of select="." /></a></h2>
<xsl:apply-templates/>
</xsl:template>
<xsl:template match="sect2/title/text()">
</xsl:template>
<xsl:template match="list">
<xsl:choose>
<xsl:when test="./item/itemtext">
<dl>
<xsl:apply-templates />
</dl>
</xsl:when>
<xsl:otherwise>
<ul>
<xsl:apply-templates />
</ul>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
<xsl:template match="item">
<xsl:choose>
<xsl:when test="./itemtext">
<dt><xsl:value-of select="./itemtext" /></dt>
<dd>
<xsl:apply-templates />
</dd>
</xsl:when>
<xsl:otherwise>
<li>
<xsl:apply-templates />
</li>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
<xsl:template match="item/itemtext">
</xsl:template>
<xsl:template match="para">
<p><xsl:apply-templates/></p>
</xsl:template>
<xsl:template match="verbatim">
<pre><xsl:apply-templates/></pre>
</xsl:template>
<xsl:template match="link">
<a href="{@xref}"><xsl:apply-templates/></a>
</xsl:template>
<xsl:template match="xlink">
<a href="{@uri}"><xsl:apply-templates/></a>
</xsl:template>
<xsl:template match="strong|filename">
<strong><xsl:apply-templates/></strong>
</xsl:template>
<xsl:template match="emphasis">
<em><xsl:apply-templates/></em>
</xsl:template>
<xsl:template match="code">
<tt><xsl:apply-templates/></tt>
</xsl:template>
<!-- Default templates -->
<!--
<xsl:template match="*">
[<font color="blue"><xsl:value-of select="name()" /></font>]
<xsl:apply-templates/>
[<font color="blue">/<xsl:value-of select="name()" /></font>]
</xsl:template>
<xsl:template match="text()">
</xsl:template>
-->
</xsl:stylesheet>