-<!--
 
  Copyright 2007-2009 A-SIT

  Edgar Neuherz
  email: edgar.neuherz@a-sit.at
  update: 2009-03-24
 
-->
-<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">
-<!--
 
  ************************************************************
  ** Master Stylesheet fuer die RTF-Transformation
  ************************************************************
   
-->
-<!--
 
  ************************************************************
  ** vom Master-Stylesheet verwendete Stylesheets (imports)
  ************************************************************
   
-->
<xsl:import href="fo/sihaspec.xsl"/>
<xsl:import href="fo/start-pages.xsl"/>
<xsl:import href="fo/common.xsl"/>
<xsl:import href="fo/toc.xsl"/>
<xsl:import href="fo/prolog.xsl"/>
<xsl:import href="fo/content.xsl"/>
<xsl:import href="fo-rtf/list-item.xsl"/>
<xsl:import href="fo/tables.xsl"/>
<xsl:import href="fo/images.xsl"/>
<xsl:import href="fo/appendix.xsl"/>
<xsl:output method="xml" encoding="UTF-8"/>
-<!--
 
  ************************************************************
  ** Parameter
  ************************************************************
   
-->
<xsl:param name="resourcePath" select="''"/>
<xsl:param name="resources" select="'../resources/'"/>
<xsl:param name="debug.mode" select="'off'"/>
<xsl:param name="organisation" select="'INDUSTRY'"/>
<xsl:param name="size" select="'LARGE'"/>
<xsl:param name="role" select="'ALL'"/>
-<!--
 
  ************************************************************
  ** /  (root)  Main Template
  ************************************************************
  
-->
-<xsl:template match="/">
-<fo:root>
-<fo:layout-master-set>
-<fo:simple-page-master master-name="page" page-height="29.7cm" page-width="21cm" margin-top="3cm" margin-bottom="2.5cm" margin-left="2cm" margin-right="2cm">
<fo:region-before extent="3cm"/>
<fo:region-body margin-top="3cm"/>
<fo:region-after extent="1.5cm"/>
</fo:simple-page-master>
-<fo:page-sequence-master master-name="all">
-<fo:repeatable-page-master-alternatives>
<fo:conditional-page-master-reference master-reference="page" page-position="first"/>
</fo:repeatable-page-master-alternatives>
</fo:page-sequence-master>
</fo:layout-master-set>
-<fo:page-sequence master-reference="all">
<xsl:call-template name="doStaticContent"/>
-<fo:flow flow-name="xsl-region-body">
<xsl:call-template name="doContent"/>
</fo:flow>
</fo:page-sequence>
</fo:root>
</xsl:template>
-<!--
 
    ************************************************************
    ** static content
    ************************************************************
   
-->
-<xsl:template name="doStaticContent">
-<fo:static-content flow-name="xsl-region-before">
<xsl:call-template name="createHeader"/>
</fo:static-content>
<fo:static-content flow-name="xsl-region-body"> </fo:static-content>
-<fo:static-content flow-name="xsl-region-after">
<xsl:call-template name="createFooter"/>
</fo:static-content>
<fo:static-content flow-name="xsl-region-start"> </fo:static-content>
<fo:static-content flow-name="xsl-region-end"> </fo:static-content>
</xsl:template>
-<xsl:template name="createHeader">
-<fo:static-content flow-name="Left-header">
-<fo:block xsl:use-attribute-sets="header.style">
<xsl:value-of select="/descendant::siha:meta/siha:booktitle"/>
</fo:block>
-<fo:block xsl:use-attribute-sets="header.style" border-after-width="thin" border-after-style="solid">
<xsl:value-of select="/descendant::siha:meta/siha:booksubtitle"/>
</fo:block>
</fo:static-content>
</xsl:template>
-<xsl:template name="createFooter">
-<fo:static-content flow-name="Left-footer">
-<fo:block xsl:use-attribute-sets="footer.style">
<xsl:text>Seite </xsl:text>
<fo:page-number/>
</fo:block>
</fo:static-content>
<fo:static-content flow-name="Right-footer"> </fo:static-content>
</xsl:template>
-<!--
 
    ************************************************************
    ** content
    ************************************************************
   
-->
-<xsl:template name="doContent">
<xsl:call-template name="createStartPage"/>
<xsl:call-template name="createTOC"/>
<xsl:call-template name="createProlog"/>
<xsl:call-template name="createContent"/>
<xsl:call-template name="createAppendix"/>
</xsl:template>
</xsl:stylesheet>