<?xml version='1.0' encoding="ISO-8859-1" ?>

<!-- kapitel2-tex1.xsl                                   -->
<!-- XSL-Datei (passend zu kapitel2.xml                  -->
<!-- kann mit SAXON und anderen Tools verarbeitet werden -->
<!-- 28.1.2002, GP (HRZ Gießen)                          -->

<xsl:stylesheet version="1.0" 
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
   <xsl:output method="text" encoding="ISO-8859-1" />
   <xsl:template match="/">
      <xsl:text>\documentclass[a4paper,10pt]{article}

      \usepackage[latin1]{inputenc}
      \usepackage{ngerman}
      \title{Unser Kapitel}
      \author{Emil Mayer}
      \date{\today}

      \begin{document}
      \maketitle</xsl:text>
      <xsl:apply-templates />
      <xsl:text>\end{document}</xsl:text>
   </xsl:template>

   <xsl:template match="kapitel">
      <xsl:apply-templates />
   </xsl:template>

   <xsl:template match="titel">
      <xsl:text>\section{</xsl:text>
      <xsl:apply-templates />
      <xsl:text>}</xsl:text>
   </xsl:template>

   <xsl:template match="rumpf">
      <xsl:apply-templates />
   </xsl:template>

   <xsl:template match="absatz">
      <xsl:apply-templates />
      <xsl:text>\par</xsl:text>
   </xsl:template>

   <xsl:template match="text()">
      <xsl:value-of select="." />
   </xsl:template>
</xsl:stylesheet>


