-<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">
-<!--
 
    ************************************************************
    ** Prolog (prolog.xsl)
    ************************************************************
   
-->
-<xsl:template name="createProlog">
-<!--
  wenn 1.Kapitel keine nummerierung dann wahrscheinlich ein vorwort ...  
-->
-<xsl:if test="not(//siha:chapter[1]/siha:title/siha:ordinal)">
<xsl:apply-templates select="//siha:chapter[1]" mode="prolog"/>
</xsl:if>
</xsl:template>
-<!--
 
    ************************************************************
    ** prolog (chapter >1)
    ************************************************************
   
-->
-<xsl:template mode="prolog" match="siha:chapter[1]">
-<fo:block xsl:use-attribute-sets="div1.style">
-<fo:block xsl:use-attribute-sets="h1.style">
-<xsl:call-template name="setAnchorProlog">
<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 prolog  
-->
-<xsl:template name="setAnchorProlog">
<xsl:param name="anchor.name"/>
<xsl:param name="anchor.ordinal"/>
-<fo:inline keep-with-next.within-line="always">
<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>