<?xml version="1.0"?>
<!--@+leo-->

<!--@+node:0::@file toc_sbooktocp.xsl-->
<!--@+body-->
<!--@@first <?xml version="1.0"?>-->
<!--@@language html-->
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="html" indent="yes"/>

<xsl:variable name="pageCount" select="count(/screenbook/pages/page)"/>

<!--@<< main template >>-->
<!--@+node:1::<< main template >>-->
<!--@+body-->
<!--@@code-->

<xsl:template match="/">
  <html>
    
<!--@<< head >>-->
	<!--@+node:1::<< head >>-->
	<!--@+body-->
	<!--@@code-->
	
	<head>
	  <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"></meta>
	  <link rel='stylesheet' type='text/css' href='sbook1.css'></link>
	  <script src='sbook.js'></script>
	</head>
	<!--@-body-->
	<!--@-node:1::<< head >>-->

    
<!--@<< body >>-->
	<!--@+node:2::<< body >>-->
	<!--@+body-->
	<!--@@code-->
	
	<body>
	
	<!--@<< main table>>-->
	<!--@+node:1::<< main table >>-->
	<!--@+body-->
	<!--@@code-->
	
	<table align="left" width="600" cellpadding="2" style="margin-left:20; border-collapse:collapse;" border="1">
	  <tr>
	    <td align="center" style="font-size:22pt; font-weight:bold" colspan="2">
	Screenbook Bookshelf Table of Contents
	    <br/>
	    </td>
	  </tr>
	  <xsl:for-each select="bookshelf/category">
	  <tr>
	    <td style="font-size:18pt; color:white; background-color:darkgray; font-weight:bold" colspan="2">
	        <xsl:value-of select="@alias"/>
	    </td>
	  </tr>
	    <xsl:for-each select="subcategory">
	    <tr>
	      <td style="font-weight:bold; background-color:thistle" colspan="2" valign="top">
	        &#160; &#160;<xsl:value-of select="@alias"/>
	      </td>
	    </tr>
	    <xsl:for-each select="format">
	      <xsl:for-each select="sbook">
	      <tr>
	        <td valign="top" colspan="2">
	        <table border="0">
	        <tr><td valign="bottom" style="font-size:11pt; font-weight:bold">
	            &#160; &#160; &#160; &#160;<xsl:value-of select="alias"/> &#160;<span style="font-size:8pt; font-weight:normal; font-style:italic"><xsl:value-of select="slidecount"/> pages</span>
	            <xsl:text> &#160;</xsl:text>
	        </td><td valign="bottom" align="left">
	          <span style="font-size:8pt">
	          <xsl:value-of select="description"/>
	          </span>
	        </td></tr>
	        </table>
	        </td>
	      </tr>  
	      </xsl:for-each>
	    </xsl:for-each>
	  </xsl:for-each>
	</xsl:for-each>
	</table>

	<!--@-body-->
	<!--@-node:1::<< main table >>-->

	<br/>
	</body>
	<!--@-body-->
	<!--@-node:2::<< body >>-->

  </html>
</xsl:template>
<!--@-body-->
<!--@-node:1::<< main template >>-->

</xsl:stylesheet>
<!--@-body-->
<!--@-node:0::@file toc_sbooktocp.xsl-->
<!--@-leo-->