-<!--
 edited with oXyGen XML-Editor by Edgar Neuherz (Graz University of Technology) 
-->
-<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:siha="http://www.a-sit.at/siha">
-<!--
 
  ************************************************************
  ** Appendix (fo/appendix.xsl)
  ************************************************************
   
-->
-<xsl:template name="createAppendix">
<xsl:apply-templates select="//siha:appendix" mode="appendix"/>
</xsl:template>
-<!--
  ************************************************************
  ** matching siha:appendix
  ************************************************************
  
-->
-<xsl:template mode="appendix" match="siha:appendix">
-<fo:block xsl:use-attribute-sets="div1.style">
-<fo:block xsl:use-attribute-sets="h1.style">
-<xsl:call-template name="setAnchorAppendix">
<xsl:with-param name="anchor.name" select="'CHAPTER '"/>
<xsl:with-param name="anchor.ordinal"/>
</xsl:call-template>
</fo:block>
<xsl:apply-templates mode="content" select="node()"/>
</fo:block>
</xsl:template>
-<!--
 
  ************************************************************
  ** set anchor(s)
  ************************************************************
   
-->
-<!--
  set anchor appendixs  
-->
-<xsl:template name="setAnchorAppendix">
<xsl:param name="anchor.name"/>
<xsl:param name="anchor.ordinal"/>
-<fo:inline keep-with-next.within-line="always">
<xsl:text>Anhang </xsl:text>
<xsl:value-of select="$anchor.ordinal"/>
<xsl:call-template name="setOrdinal"/>
<xsl:text> </xsl:text>
<xsl:call-template name="setTitle"/>
</fo:inline>
</xsl:template>
</xsl:stylesheet>