<?xml version="1.0" encoding="iso-8859-1" standalone="yes"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
		version="1.0">
<xsl:output method='html'/>
<xsl:template match='/'>
	<html><body>
		<xsl:apply-templates/>
	</body></html>
</xsl:template>
<xsl:template match='*'>
	<xsl:choose>	
		<xsl:when test="name()='abschnitt'">
			<xsl:if test="contains(@FileID, 'w')">
				<xsl:element name="table">
					<xsl:apply-templates/>
				</xsl:element>
			</xsl:if>
			<xsl:if test="not(contains(@FileID, 'w'))">
				<xsl:apply-templates/>
			</xsl:if>
		</xsl:when>
		<xsl:when test="name()='ueberschrift'">
			<xsl:element name="h1">
				<xsl:apply-templates/>
			</xsl:element>
		</xsl:when>
		<xsl:when test="name()='wert'">
			<xsl:element name="tr">
				<xsl:apply-templates/>
			</xsl:element>
		</xsl:when>
		<xsl:when test="(name()='code') or  (name()='beschreibung' )">
			<xsl:element name="td">
				<xsl:apply-templates/>
			</xsl:element>
		</xsl:when>
		<xsl:otherwise>
			<xsl:copy-of select="."/>
		</xsl:otherwise>
	</xsl:choose>	
</xsl:template>
</xsl:stylesheet>

