<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

  <!--  xmlns="http://www.w3.org/1999/xhtml" -->

    <!-- =============================================================== -->
    <!-- tema.xsl (v002) -                                               -->
    <!-- opprettet 27.01.05 - i.b.s.lund@usit.uio.no                     -->
    <!-- =============================================================== -->
<xsl:import href="../../../felles/komponenter/fritekst/v002/fritekst.xsl" />
<xsl:import href="../../../system/api-v001.xsl" />
<xsl:include href="../../../felles/ressurser/breadcrumb-v001.xsl" />
 
<xsl:output
      method="xml"
      media-type="text/html"
      omit-xml-declaration="no"
      encoding="utf-8"
      indent="yes"
      doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"
      doctype-public="-//W3C//DTD XHTML 1.0 Strict//EN" />

  <xsl:strip-space elements="*"/>
  
  <xsl:template match="/">
      <xsl:apply-templates/>
  </xsl:template>
    
    <xsl:template match="tema">
       <html lang="no" xml:lang="no">
            <head>
                <title><xsl:value-of select="//tittel"/></title>
                <!-- meta http-equiv="Content-Type" content="application/xhtml+xml; charset=UTF-8" / -->
                 <link rel="stylesheet" type="text/css"
                    href="http://folk.uio.no/chrisjo/apollon/redesign/css/artikkel.css"
                    media="screen, projection"/>
            </head>
            <body>
                <div>Du er her: <xsl:call-template name="breadcrumb" /> </div>
                <p><a href="{$ADMIN-URL}">Administrer dette dokumentet</a></p>

                <div id="artikkel">
                <div id="midten">
                <xsl:apply-templates select="tittel"/>
                
                <xsl:apply-templates select="ingress"/>
                <xsl:apply-templates select="lite-bilde" />
                <xsl:apply-templates select="stort-bilde" />
                </div>
                </div>
            </body>
        </html>
    </xsl:template>
    
    <xsl:template match="tittel">
        <xsl:if test="not(.='')">
            <h2 id="header">
                <xsl:value-of select="."/>
            </h2>
        </xsl:if>
    </xsl:template>
    
    
    <xsl:template match="ingress">
        <p class="ingress">
            <xsl:apply-templates/>
        </p>
    </xsl:template>
    
    <xsl:template match="ingress/avsnitt">
        <xsl:apply-templates/>
    </xsl:template>

    <xsl:template match="lite-bilde">
      <p class="lite-bilde">
        <img src="{webadresse}" alt="{alternativ-tekst}" />
      </p>
    </xsl:template>

    <xsl:template match="stort-bilde">
      <p class="stort-bilde">
        <img src="{webadresse}" alt="{alternativ-tekst}" />
      </p>
    </xsl:template>
    
</xsl:stylesheet>
