<?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE entitys [
<!-- Sonderzeichen -->
<!ENTITY nbsp "&#160;">
<!ENTITY uuml "&#252;">
<!ENTITY Uuml "&#220;">
<!ENTITY auml "&#228;">
<!ENTITY Auml "&#196;">
<!ENTITY ouml "&#246;">
<!ENTITY Ouml "&#214;">
]>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:output method="xml" omit-xml-declaration="no" version="1.0" standalone="yes" encoding="UTF-8"/>
<!-- Main rule: build xml skeleton -->
<xsl:template match="/">
<xsl:processing-instruction name="xml-stylesheet">type="text/xsl" href="layout.xsl"</xsl:processing-instruction>
<!--content -->
<examlist>
<fileinfo>
<title>Pr&uuml;fungsbeispiele</title>
<filename>examlist.xml</filename>
<description>Liste von online erh&auml;ltlichen Pr&uuml;fungsbeispielen</description>
<xsl:for-each select="//fileinfo/author">
<author>
<xsl:value-of select="name"/>
</author>
</xsl:for-each>
</fileinfo>
<xsl:copy-of select="document('navigation.xml')"/>
<xsl:apply-templates/>
</examlist>
<!-- ende page-->

</xsl:template>
<xsl:template match="examlist">
<firstsection>
<xsl:apply-templates mode="first"/>
</firstsection>
<secondsection>
<xsl:apply-templates mode="second"/>
</secondsection>
<mitschrift>
  <xsl:apply-templates mode="mitschrift"/>
</mitschrift>
<various>
<xsl:apply-templates mode="various"/>
</various>
</xsl:template>
<!-- Unfortunately the attributes of the person tag get lost WORKAROUND??? -->
<!-- Filter First Section Exams-->
<xsl:template mode="first" match="exam">
<xsl:if test="self::node()[@section='first']">
<exam>
<xsl:copy-of select="*"/>
</exam>
</xsl:if>
</xsl:template>
<!-- Filter Second Section Exams-->
<xsl:template mode="second" match="exam">
<xsl:if test="self::node()[@section='second']">
<exam>
<xsl:copy-of select="*"/>
</exam>
</xsl:if>
</xsl:template>
<!-- Filter Mitschrift Section Exams-->
<xsl:template mode="mitschrift" match="exam">
<xsl:if test="self::node()[@section='mitschrift']">
<exam>
<xsl:copy-of select="*"/>
</exam>
</xsl:if>
</xsl:template>


<!-- Filter Various Exams-->
<xsl:template mode="various" match="exam">
<xsl:if test="self::node()[@section='various']">
<exam>
<xsl:copy-of select="*"/>
</exam>
</xsl:if>
</xsl:template>
<!-- ignore unknown content -->
<xsl:template match="*"/>
</xsl:stylesheet>



