<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:template match = "/">

	<xsl:for-each select="glossary">
		<html>
		<head>
		<title>
			<xsl:value-of select="title"/>
		</title>
		<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"/>
		<meta http-equiv="content-language" content="de"/>
		<meta name="keywords" content="MAML, Glossary, Content Type, XSL, XML"/>
		<link href="../design.css" rel="stylesheet" type="text/css"/>
		</head>

		<body>
		<!-- ### start of header ### -->
		<a name="top" id="top"/>
		<table  width="100%" height="72" border="0" cellpadding="0" cellspacing="0" background="../images/menu/menu_3px.jpg">
  		<tr>
    		<td> <a href="../home.htm"><img src="../images/menu/menu_logo.jpg" width="350" height="72" border="0"/></a><a href="../../en/xml/maml_glossary.xml"><img src="../images/menu/menu_flag-en.jpg" width="25" height="72" border="0"/></a><a href="../redirect.htm"><img src="../images/menu/menu_sitemap.jpg" width="29" height="72" border="0"/></a><a href="../Help_Info_AP_Help/ap_help.htm"><img src="../images/menu/menu_ap_help.jpg" width="63" height="72" border="0"/></a><a href="../Help_Info_Help2/h2.htm"><img src="../images/menu/menu_help2.jpg" alt="Help2" width="51" height="72" border="0"/></a><a href="../Help_Info_HTMLHelp/hh.htm"><img src="../images/menu/menu_htmlhelp.jpg" alt="HTMLHelp" width="77" height="72" border="0"/></a><a href="../Help_Info_WinHelp/hw.htm"><img src="../images/menu/menu_winhelp.jpg" alt="WinHelp" width="67" height="72" border="0"/></a><a href="../Visual_Basic_2005/vb_2005.htm"><img src="../images/menu/menu_vb.jpg" width="30" height="72" border="0"/></a><a href="../Service/contact.htm"><img src="../images/menu/menu_impressum.jpg" width="83" height="72" border="0"/></a></td>
  		</tr>
		</table>
		<table width="100%" border="0" cellpadding="0" cellspacing="0">
		  <tr>
		    <td background="../images/site/riffel_40px.jpg"><a href="../home.htm"><img src="../images/site/home.png" width="25" height="25" border="0"/></a></td>
		  </tr>
		</table>
		<!-- ### end of header ### -->


		<h1><xsl:value-of select="title"/></h1>

        <p align="center">
        <table>
                <tr>

		<xsl:for-each select="glossaryDiv">
  		              <td>
            <!-- ### add href to anchor for each title ### -->
			<a><xsl:attribute name="href">#<xsl:value-of select="title"/></xsl:attribute><xsl:value-of select="title"/></a>
             </td>	
             </xsl:for-each>
 		
             </tr>
		</table>
        </p>

		<xsl:for-each select="glossaryDiv">
            <!-- ### add anchor for each title ### -->
			<a> <xsl:attribute name="name"><xsl:value-of select="title"/></xsl:attribute></a>		
			<h2><xsl:value-of select="title"/></h2>
			<table width="95%" border="0" cellpadding="4" cellspacing="2" class="code">
			  <tr bgcolor="#FFFF99">
			    <td width="150"><div align="center"><strong>Term (Acronym)</strong></div></td>		<!-- Bezeichnung (Akronym) -->
    			    <td><div align="center"><strong>Description</strong></div></td>		<!-- Beschreibung -->
			  </tr>

			<xsl:for-each select="glossaryEntry">
			  <tr bgcolor="#FFFFCC">
				<xsl:apply-templates/>
			  </tr>
			</xsl:for-each>
			
			</table>
			<hr size="1"/>
			<table class="code">
			<tr>
			<td>
			<a href="#top"><img src="../images/site/16px_up_arrow.gif" width="16" height="16" border="0" title="Up .."/></a>
		    </td>
            </tr>
            </table>
        </xsl:for-each>
		</body>
		</html>

	</xsl:for-each>
</xsl:template>






<!-- ############### terms         ############### -->
	
	<xsl:template match="terms">
		<xsl:apply-templates/>	
	</xsl:template>
 
<!-- ############### term          ############### -->
	
	<xsl:template match="term">
		<td valign="top">
		  <xsl:value-of select="."/>
		</td>
	</xsl:template>

<!-- ############### definition    ############### -->
	
	<xsl:template match="definition">
		<td>
		  <xsl:apply-templates/>
		</td>
	</xsl:template>

<!-- ############### para          ############### -->
	
	<xsl:template match="para">
        <xsl:value-of select="."/>
		<br/>
	</xsl:template>	

<!-- ############### list          ############### -->
	
	<xsl:template match="list">
		<ul>
		  <xsl:apply-templates/>
		</ul>
	</xsl:template>	

<!-- ############### listItem      ############### -->
	
	<xsl:template match="listItem">
		<li>
		  <xsl:apply-templates/>
		</li>
	</xsl:template>	

</xsl:stylesheet>

