<?xml version="1.0" encoding="UTF-8"?>

<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xhtml="http://www.w3.org/1999/xhtml">

	<xsl:template match="/">

			<html>
				<head>
					<title>TOC</title>
					<meta content="text/html; charset=UTF-8" http-equiv="Content-type" />
					<link rel="stylesheet" href="slides.css" type="text/css" />
					<script language="javascript"><xsl:comment>

              document.onkeypress = flipslide

              function flipslide(evt) {
                var key = window.event.keyCode
                if (key == 32 || key == 29 || key == 30 || key == 11) {
                  
						location.href="slide_1.html"
					}
              } //  </xsl:comment></script>	
				</head>
				
				
				<body>
				<h1>phemplate skaidrės 2004</h1>
		<xsl:for-each select="//xhtml:div[@class='page']">
			<xsl:variable name="slideName">slide_<xsl:value-of select="position()"/>.html</xsl:variable>
			<li>
			<xsl:element name="a">
				<xsl:attribute name="href"><xsl:value-of select="$slideName"/></xsl:attribute>
				
				<xsl:value-of select="xhtml:h1"/>
			</xsl:element>
			</li>
		</xsl:for-each>
		<br />
		<div class="bottom">
		2004 (L) juozas salna
		</div>
		
				</body>
			</html>
	</xsl:template>



	<xsl:template match="text()">
		<xsl:apply-templates/>
	</xsl:template>

</xsl:stylesheet>
