-<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">
-<!--
 
  ************************************************************
  ** html/content.xsl
  ************************************************************
  
-->
-<xsl:template name="createContent">
<xsl:apply-templates select="//siha:chapter" mode="content"/>
</xsl:template>
<xsl:template match="siha:chapter[1]" mode="content"/>
-<xsl:template match="siha:chapter" mode="content">
-<xsl:element name="div">
<xsl:attribute name="id">chapter</xsl:attribute>
-<xsl:element name="h1">
-<xsl:call-template name="setAnchor">
<xsl:with-param name="anchor.name" select="'CHAPTER '"/>
-<xsl:with-param name="anchor.ordinal">
<xsl:call-template name="setOrdinal"/>
</xsl:with-param>
</xsl:call-template>
<xsl:call-template name="setOrdinal"/>
<xsl:value-of select="$chapter.prefix"/>
<xsl:call-template name="setTitle"/>
</xsl:element>
<xsl:apply-templates select="node()" mode="content"/>
</xsl:element>
</xsl:template>
-<xsl:template match="siha:section" mode="content">
-<xsl:element name="div">
<xsl:attribute name="id">section</xsl:attribute>
-<xsl:element name="h2">
-<xsl:call-template name="setAnchor">
<xsl:with-param name="anchor.name" select="'SECTION '"/>
-<xsl:with-param name="anchor.ordinal">
<xsl:call-template name="setOrdinalSection"/>
<xsl:call-template name="setOrdinal"/>
</xsl:with-param>
</xsl:call-template>
<xsl:call-template name="setOrdinalSection"/>
<xsl:call-template name="setOrdinal"/>
<xsl:call-template name="setTitle"/>
</xsl:element>
<xsl:apply-templates select="node()" mode="content"/>
</xsl:element>
</xsl:template>
-<xsl:template match="siha:subsection" mode="content">
-<xsl:element name="div">
<xsl:attribute name="id">subsection</xsl:attribute>
-<xsl:element name="h3">
-<xsl:call-template name="setAnchor">
<xsl:with-param name="anchor.name" select="'SUBSECTION '"/>
-<xsl:with-param name="anchor.ordinal">
<xsl:call-template name="setOrdinalSubsection"/>
<xsl:call-template name="setOrdinal"/>
</xsl:with-param>
</xsl:call-template>
<xsl:call-template name="setOrdinalSubsection"/>
<xsl:call-template name="setOrdinal"/>
<xsl:call-template name="setTitle"/>
</xsl:element>
<xsl:apply-templates select="node()" mode="content"/>
</xsl:element>
</xsl:template>
-<xsl:template match="siha:subsubsection" mode="content">
-<xsl:element name="div">
<xsl:attribute name="id">subsubsection</xsl:attribute>
-<xsl:element name="h4">
-<xsl:call-template name="setAnchor">
<xsl:with-param name="anchor.name" select="'SUBSUBSECTION '"/>
-<xsl:with-param name="anchor.ordinal">
<xsl:call-template name="setOrdinalSubsubsection"/>
<xsl:call-template name="setOrdinal"/>
</xsl:with-param>
</xsl:call-template>
<xsl:call-template name="setOrdinalSubsubsection"/>
<xsl:call-template name="setOrdinal"/>
<xsl:call-template name="setTitle"/>
</xsl:element>
<xsl:apply-templates select="node()" mode="content"/>
</xsl:element>
</xsl:template>
-<xsl:template match="siha:topic" mode="content">
-<xsl:element name="div">
<xsl:attribute name="id">topic</xsl:attribute>
-<xsl:element name="h3">
<xsl:call-template name="setAnchorTopic"/>
<xsl:call-template name="setOrdinalTopic"/>
<xsl:text> </xsl:text>
<xsl:value-of select="@name"/>
</xsl:element>
<xsl:apply-templates select="node()" mode="content"/>
</xsl:element>
</xsl:template>
-<xsl:template match="siha:paragraph" mode="content">
-<xsl:element name="div">
<xsl:attribute name="id">paragraph</xsl:attribute>
-<xsl:element name="h4">
<xsl:call-template name="setTitle"/>
</xsl:element>
<xsl:apply-templates select="node()" mode="content"/>
</xsl:element>
</xsl:template>
<xsl:template match="siha:title" mode="content"/>
-<xsl:template match="siha:detailed" mode="content">
-<xsl:element name="div">
<xsl:attribute name="id">detailed</xsl:attribute>
<xsl:call-template name="addNewSection"/>
</xsl:element>
</xsl:template>
-<xsl:template match="siha:abstract" mode="content">
-<xsl:element name="div">
<xsl:attribute name="id">abstract</xsl:attribute>
<xsl:apply-templates select="node()" mode="content"/>
</xsl:element>
</xsl:template>
-<xsl:template match="siha:itemize" mode="content">
-<xsl:element name="ul">
<xsl:attribute name="class">itemize</xsl:attribute>
-<xsl:for-each select="siha:item">
-<xsl:element name="li">
<xsl:call-template name="addNewSection"/>
</xsl:element>
</xsl:for-each>
</xsl:element>
</xsl:template>
-<xsl:template match="siha:enumerate" mode="content">
-<xsl:element name="ol">
<xsl:attribute name="class">enumerate</xsl:attribute>
-<xsl:for-each select="siha:item">
-<xsl:element name="li">
<xsl:apply-templates select="node()" mode="content"/>
</xsl:element>
</xsl:for-each>
</xsl:element>
</xsl:template>
-<xsl:template match="siha:emphasize" mode="content">
-<xsl:choose>
-<xsl:when test="@level='0' ">
-<xsl:element name="em">
<xsl:apply-templates mode="content"/>
</xsl:element>
</xsl:when>
-<xsl:when test="@level='1' ">
-<xsl:element name="strong">
<xsl:apply-templates mode="content"/>
</xsl:element>
</xsl:when>
-<xsl:when test="@level='2' ">
<xsl:apply-templates mode="content"/>
<xsl:element name="br"/>
</xsl:when>
-<!--
 level 3 for new entries 
-->
-<xsl:when test="@level='3' ">
<xsl:apply-templates mode="content"/>
<xsl:element name="br"/>
</xsl:when>
</xsl:choose>
</xsl:template>
-<xsl:template match="siha:image" mode="content">
-<xsl:element name="div">
<xsl:attribute name="id">image</xsl:attribute>
-<xsl:element name="img">
-<xsl:attribute name="src">
<xsl:value-of select="$resources"/>
<xsl:value-of select="@source"/>
</xsl:attribute>
</xsl:element>
-<xsl:element name="p">
<xsl:attribute name="class">image</xsl:attribute>
<xsl:text>Abbildung </xsl:text>
<xsl:call-template name="setOrdinalSection"/>
<xsl:value-of select=" count(ancestor::siha:chapter/descendant::siha:image)-count(following::siha:image) + count(following::siha:chapter[1]/descendant::siha:image | following::siha:chapter[1]/following::siha:image)"/>
<xsl:text>: </xsl:text>
<xsl:value-of select="@title"/>
</xsl:element>
</xsl:element>
</xsl:template>
-<xsl:template match="siha:link" mode="content">
-<xsl:element name="a">
-<xsl:choose>
-<!--
 IKT-Board 
-->
-<xsl:when test="child::siha:iktboard">
-<xsl:attribute name="href">
<xsl:value-of select="$targetdoc"/>
<xsl:value-of select="child::*/siha:source"/>
</xsl:attribute>
[
<xsl:value-of select="child::siha:iktboard/siha:gegenstand"/>
]
</xsl:when>
-<!--
 LAW 
-->
-<xsl:when test="child::siha:law">
-<xsl:attribute name="href">
<xsl:value-of select="$targetdoc"/>
<xsl:value-of select="child::*/siha:source"/>
</xsl:attribute>
<xsl:value-of select="child::siha:law/siha:name"/>
-<xsl:if test="boolean(child::siha:law/siha:shortname)">
<xsl:text> (</xsl:text>
<xsl:value-of select="child::siha:law/siha:shortname"/>
<xsl:text>)</xsl:text>
</xsl:if>
-<xsl:if test="boolean(child::siha:law/siha:index)">
<xsl:text>, </xsl:text>
<xsl:value-of select="child::siha:law/siha:index"/>
<xsl:text> idgF,</xsl:text>
</xsl:if>
</xsl:when>
-<!--
 href 
-->
-<xsl:when test="child::siha:href">
-<xsl:attribute name="href">
<xsl:value-of select="child::*/siha:source"/>
</xsl:attribute>
<xsl:value-of select="child::siha:href/siha:name"/>
-<xsl:if test="boolean(child::siha:href/siha:shortname)">
<xsl:text> (</xsl:text>
<xsl:value-of select="child::siha:href/siha:shortname"/>
<xsl:text>)</xsl:text>
</xsl:if>
</xsl:when>
-<!--
 internal references 
-->
-<xsl:when test="child::siha:intern">
-<xsl:attribute name="href">
<xsl:value-of select="child::*/siha:source"/>
</xsl:attribute>
<xsl:value-of select="child::siha:intern/siha:name"/>
</xsl:when>
-<!--
 other links 
-->
-<xsl:when test="child::siha:otherlink">
-<xsl:attribute name="href">
<xsl:value-of select="$resources"/>
<xsl:value-of select="child::*/siha:source"/>
</xsl:attribute>
<xsl:value-of select="child::siha:otherlink/siha:name"/>
-<xsl:if test="boolean(child::siha:otherlink/siha:shortname)">
<xsl:text> [</xsl:text>
<xsl:value-of select="child::siha:otherlink/siha:shortname"/>
<xsl:text>]</xsl:text>
</xsl:if>
-<xsl:if test="boolean(child::siha:otherlink/siha:index)">
<xsl:text>, </xsl:text>
<xsl:value-of select="child::siha:otherlink/siha:index"/>
<xsl:text>,</xsl:text>
</xsl:if>
-<xsl:if test="boolean(child::siha:otherlink/siha:version)">
<xsl:text> (</xsl:text>
<xsl:value-of select="child::siha:otherlink/siha:version"/>
<xsl:text>),</xsl:text>
</xsl:if>
</xsl:when>
-<!--
 literature 
-->
-<xsl:when test="child::siha:literature">
-<xsl:attribute name="href">
<xsl:value-of select="child::*/siha:source"/>
</xsl:attribute>
<xsl:value-of select="child::siha:literature/siha:name"/>
-<xsl:if test="boolean(child::siha:literature/siha:index)">
<xsl:text> [</xsl:text>
<xsl:value-of select="child::siha:literature/siha:index"/>
<xsl:text>]</xsl:text>
</xsl:if>
</xsl:when>
</xsl:choose>
</xsl:element>
</xsl:template>
-<xsl:template match="siha:table" mode="content">
-<xsl:element name="table">
-<xsl:if test="@class">
-<xsl:attribute name="class">
<xsl:value-of select="@class"/>
</xsl:attribute>
</xsl:if>
-<xsl:if test="@border">
-<xsl:attribute name="border">
<xsl:value-of select="@border"/>
</xsl:attribute>
</xsl:if>
-<!--
 
      <xsl:copy-of select="."/>
       
-->
-<xsl:for-each select=".">
<xsl:apply-templates select="node()" mode="content"/>
</xsl:for-each>
</xsl:element>
-<!--
 print a title on the bottom of the table if any title is given 
-->
-<xsl:if test="boolean(@title)">
-<xsl:element name="em">
Tabelle
<xsl:value-of select="ancestor::siha:chapter/siha:title/siha:ordinal | ancestor::siha:appendix/siha:title/siha:ordinal "/>
.
<xsl:value-of select="count(preceding::siha:table)+1"/>
<xsl:text>: </xsl:text>
</xsl:element>
<xsl:value-of select="@title"/>
</xsl:if>
</xsl:template>
-<!--
 tr (Zeile) 
-->
-<xsl:template match="siha:tr" mode="content">
-<xsl:element name="tr">
<xsl:apply-templates select="node()" mode="content"/>
</xsl:element>
</xsl:template>
-<!--
 th (Spalte) 
-->
-<xsl:template match="siha:header" mode="content">
-<xsl:element name="tr">
<xsl:apply-templates select="node()" mode="header"/>
</xsl:element>
</xsl:template>
-<!--
 td (Spalte) 
-->
-<xsl:template match="siha:td" mode="header">
-<xsl:element name="th">
-<xsl:if test="@width">
-<xsl:attribute name="width">
<xsl:value-of select="@width"/>
</xsl:attribute>
</xsl:if>
-<xsl:if test="@colspan">
-<xsl:attribute name="colspan">
<xsl:value-of select="@colspan"/>
</xsl:attribute>
</xsl:if>
-<xsl:if test="@rowspan">
-<xsl:attribute name="rowspan">
<xsl:value-of select="@rowspan"/>
</xsl:attribute>
</xsl:if>
<xsl:apply-templates select="node()" mode="content"/>
</xsl:element>
</xsl:template>
-<!--
 td (Spalte) 
-->
-<xsl:template match="siha:td" mode="content">
-<xsl:element name="td">
-<xsl:if test="@width">
-<xsl:attribute name="width">
<xsl:value-of select="@width"/>
</xsl:attribute>
</xsl:if>
-<xsl:if test="@colspan">
-<xsl:attribute name="colspan">
<xsl:value-of select="@colspan"/>
</xsl:attribute>
</xsl:if>
-<xsl:if test="@rowspan">
-<xsl:attribute name="rowspan">
<xsl:value-of select="@rowspan"/>
</xsl:attribute>
</xsl:if>
<xsl:apply-templates select="node()" mode="content"/>
</xsl:element>
</xsl:template>
<xsl:template match="@xmlns"/>
-<!--
 cut off role-details inside an item or appendix environment 
-->
<xsl:template match="siha:item/siha:role | siha:appendix/siha:topic/siha:role | siha:appendix/siha:role" mode="content"/>
-<xsl:template match="siha:role" mode="content">
-<xsl:if test="not(count(child::*)=0)">
-<xsl:element name="p">
<xsl:attribute name="class">relevanz</xsl:attribute>
<xsl:element name="b">Relevanz: </xsl:element>
<xsl:apply-templates select="siha:management" mode="content"/>
<xsl:apply-templates select="siha:maintenance" mode="content"/>
<xsl:apply-templates select="siha:user" mode="content"/>
<xsl:apply-templates select="siha:client" mode="content"/>
</xsl:element>
</xsl:if>
</xsl:template>
-<!--
  <xsl:template match="siha:management | siha:maintenance | siha:user | siha:client" mode="content">
    <xsl:if test="@type='INTERN' or @type='EXTERN'"> Management;</xsl:if>
  </xsl:template>
-->
-<xsl:template match="siha:management" mode="content">
<xsl:if test="@type='SET'"> Management;</xsl:if>
</xsl:template>
-<xsl:template match="siha:maintenance" mode="content">
<xsl:if test="@type='SET'"> Umsetzung/Wartung;</xsl:if>
</xsl:template>
-<xsl:template match="siha:user" mode="content">
<xsl:if test="@type='SET'"> Anwender/innen;</xsl:if>
</xsl:template>
-<xsl:template match="siha:client" mode="content">
<xsl:if test="@type='SET'"> Kunde;</xsl:if>
</xsl:template>
-<!--
    ************************************************************
    ** trap-doors mode="toc"
    ************************************************************
  
-->
<xsl:template match="siha:meta" mode="content"/>
-<!--
    ************************************************************
    ** new attribute
    ************************************************************
  
-->
-<xsl:template name="addNewSection">
-<xsl:choose>
-<xsl:when test="@class">
-<xsl:element name="div">
-<xsl:attribute name="id">
<xsl:value-of select="@class"/>
</xsl:attribute>
<xsl:apply-templates select="node()" mode="content"/>
</xsl:element>
</xsl:when>
-<xsl:otherwise>
<xsl:apply-templates select="node()" mode="content"/>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
</xsl:stylesheet>