<?xml version="1.0" encoding="UTF-8"?>
<!-- Stand: 17.03.2012 -->
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"
    xmlns:tei="http://www.tei-c.org/ns/1.0"
    xmlns:xlink="http://www.w3.org/1999/xlink"
    >
    
    <xsl:import href="http://diglib.hab.de/rules/styles/param.xsl"/>
    
    <xsl:output
        method="html"
        encoding="UTF-8"
        indent="yes"
        doctype-public="-//W3C//DTD HTML 4.0 Transitional//EN"
    />
    
    <xsl:strip-space elements="*"/>
    
    <xsl:param name="footerXML"/>
    <xsl:param name="footerXSL"/>
    
    <xsl:template match="/">
        
        <html>
            <head>
                <title>
                   WDB
                </title>
                <link>
                    <xsl:attribute name="rel">stylesheet</xsl:attribute>
                    <xsl:attribute name="type">text/css</xsl:attribute>
                    <xsl:attribute name="href">
                        <xsl:text>http://diglib.hab.de/navigator2.css</xsl:text>
                    </xsl:attribute>
                </link>
                <script type="text/javascript">
                 
                </script>
            </head>
            <!-- Syncronisation mit Parallelfenster -->
            <script type="text/javascript">
                
                function syncro(anker) {
                top.display2.location.hash = anker;
                };</script>
            
            <body>
                <div style="position:relative;margin-top:2em;">
                    <div style="position:relative;left:10%;right:20%;width:70%;padding:1em;text-align:center;border:1px solid gray;">
                        <xsl:apply-templates select="//tei:div"/>
                    </div>
                    <div style="clear:both;margin-top:1em;">
                        <xsl:call-template name="footer">
                            <xsl:with-param name="footerXML">
                                <xsl:value-of select="$footerXML"/>
                            </xsl:with-param>
                            <xsl:with-param name="footerXSL">
                                <xsl:value-of select="$footerXSL"/>
                            </xsl:with-param>
                        </xsl:call-template>
                    </div> 
              </div>
            </body>
        </html>
    </xsl:template>
    
    <xsl:template match="tei:div">
        <div>
            <xsl:choose>
                <xsl:when test="@type = 'series'">
                    <xsl:attribute name="style">font-variant:small-caps;</xsl:attribute>
                </xsl:when>
                <xsl:when test="@type = 'title'"/>
                 <xsl:when test="@type = 'editor'">
                    <xsl:attribute name="style">font-size:0.8em;line-height:1em;</xsl:attribute>
                 </xsl:when>
                  <xsl:when test="@type = 'impressum'"/>
            </xsl:choose>
         <xsl:apply-templates/>
        </div>  
     </xsl:template>
    
    <xsl:template match="tei:head">
        <h1 style="text-align:center;font-size:2em;">
            <xsl:apply-templates/>
        </h1> 
    </xsl:template>
    
    <xsl:template match="tei:p">
                <p style="margin:0.5em;">
                    <xsl:apply-templates/>
                </p> 
     </xsl:template>
    
    <!-- ANK: Änderungen & Ergänzungen -->
    <xsl:template match="tei:figure">
        <div style="text-align:center; margin-top:2em;">
            <img src="{@facs}" alt="{figDesc}"/>
            <hr style="color:silver; height:1px; width:50%;margin-top:2em;"/>
        </div>   
    </xsl:template>
    
    <xsl:template match="tei:lb">
        <br/><xsl:apply-templates/>
    </xsl:template>
    <!-- Ende ANK -->
    
    
</xsl:stylesheet>
