<?xml version="1.0" ?>
<xsl:stylesheet 
     xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
     version="1.0"
     xmlns:vmp="http://www.hoise.com/vmp/manual/1.0">

<xsl:output method="html" />

<xsl:template match="/">
<html>
<link rel="stylesheet" href="slides.css" />
<head />
<body  style="margin: 0pt;">
<a name="top" />
<xsl:apply-templates  select="vmp:slides" mode="toc"/>

<xsl:apply-templates  select="vmp:slides" mode="cont"/>

</body>
</html>
</xsl:template>

<xsl:template match="vmp:slides" mode="toc">
<vmp:toc>
<vmp:title>
<xsl:value-of select="vmp:title" /></vmp:title>
<p>
<xsl:apply-templates  select="vmp:slide" mode="toc"/>
</p>
</vmp:toc>
</xsl:template>

<xsl:template match="vmp:slide" mode="toc">
<p style="margin-left: 10pt;
          margin-top: 0pt;
          margin-bottom: 0pt;">
<a href="#{position()}"
   style="color: #ffff00;">
<xsl:value-of select="position()" /> 
<xsl:text> </xsl:text>
<xsl:value-of select="vmp:title" />
</a>
</p>


</xsl:template>



<xsl:template match="vmp:slides" mode="cont">
<xsl:apply-templates  select="vmp:slide" mode="cont"/>
</xsl:template>

<xsl:template match="vmp:slide" mode="cont">
<vmp:slide>
<a name="{position()}" />
<xsl:apply-templates />
</vmp:slide>
<footer>
<table width="100%" >
<tr>
<td width="33%"  
    align="left">
<xsl:if test="preceding-sibling::vmp:slide">
<a href="{concat('#',string(position()-1))}"
   title="Previous">
Previous
</a>
</xsl:if>
</td>

<td width="34%" 
    align="center"
    valign="top">
<table >
<tr>
<td align="center"
 valign="top">

<a href="#top"
        title="Index">
Index
</a>
</td>
</tr> 

<tr>
<td align="center" valign="top">
<xsl:text>slide </xsl:text><xsl:value-of  select="position()"/>
</td>
</tr>
</table>
</td>
<td width="33%" 
    align="right">
<xsl:if test="following-sibling::vmp:slide">
<a href="{concat('#',string(position()+1))}"
   title="Next">
Next</a></xsl:if>
</td>
</tr>
<tr  ><td  style="height: 10cm" colspan="3"  >&#160;</td></tr>
</table>
</footer>
</xsl:template>


<xsl:template match="*|@*">
  <xsl:copy>
    <xsl:apply-templates select="@*"/>
    <xsl:apply-templates select="node()"/>
  </xsl:copy>
</xsl:template>


</xsl:stylesheet>
		  
		  

