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

  <!-- ================================================================== -->
  <!-- course.xsl (v002) -                                                -->
  <!-- opprettet 11.03.05 - Oddmund Møgedal (oddmund.mogedal@usit.uio.no) -->
  <!-- ================================================================== -->

  <xsl:import href="../../../system/api-v001.xsl" />

  <xsl:import href="../../components/node-list-ref/v001/node-list-ref.xsl" />

  <xsl:include href="../../../felles/ressurser/output-method-html-v001.xsl" />
  <xsl:include href="../../../felles/ressurser/breadcrumb-v001.xsl" />

  <xsl:strip-space elements="*"/>

  <xsl:template match="/">
    <html>
      <head>
        <title><xsl:value-of select="/course/title"/></title>
        <style TYPE="text/css"> 
          .mindremargintopp {margin-top: -5px;}  
          .breadcrumb-xsl {font-size:80%;}  
        </style>
      </head>
      <body>
        <xsl:call-template name="prefixed-breadcrumb"/>
        <xsl:apply-templates /> 
        <div style="text-align:right;"><a href="{$ADMIN-URL}">Administrer dette dokumentet</a></div>
      </body>
    </html>
 
  </xsl:template>

  <xsl:template match="page">
    <b><xsl:value-of select="name()" />:</b> <xsl:value-of select="text()" /><br />
    <xsl:apply-templates select="@*" />
    <div style="padding-left: 1em;"><xsl:apply-templates select="*" /></div>
  </xsl:template>

  <xsl:template match="children">
    <b><xsl:value-of select="name()" />:</b> <xsl:value-of select="text()" />
    <xsl:apply-templates select="@*" />
    <div style="padding-left: 1em;"><xsl:apply-templates select="*" /></div>
  </xsl:template>

  <xsl:template match="title|node-list-ref|author">
    <div><b><xsl:value-of select="name()" />:</b> <xsl:value-of select="." /></div>
  </xsl:template>

</xsl:stylesheet>
