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

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

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

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

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

  <xsl:strip-space elements="*"/>

  <xsl:template match="/">
    <html>
      <head>
        <title><xsl:value-of select="/simple-quiz-node/title"/></title>
        <style TYPE="text/css"> 
         BODYX {line-height: 110%; }
         P {margin-top: 0;
            margin-bottom: 0;
            padding-top: 0;
            padding-bottom: 0;
            border-width: 0}
          .mindremargintopp {margin-top: -5px;}  
          .breadcrumb-xsl {font-size:80%;}  
        </style>
      </head>
      <body>
        <xsl:call-template name="prefixed-breadcrumb"/>
        <br/>
        <xsl:apply-templates /> 
        <br/>
        <div style="text-align:right;"><a href="{$ADMIN-URL}">Administrer dette dokumentet</a></div>
      </body>
    </html> 
  </xsl:template>

  <!-- Structuredtext needs label in this case. -->
  <xsl:template match="feedback|followup|description">
    <div>
      <b><xsl:value-of select="name()" />:</b>&#160;<div style="padding-left: 1em;"><xsl:apply-templates /></div>
    </div>
  </xsl:template>

  <xsl:template match="title|author|number-of-questions|instruction|response|validity">
    <div>
      <b><xsl:value-of select="name()" />:</b>&#160;<xsl:value-of select="." />  
    </div>
  </xsl:template>

  <xsl:template match="quiz-mode|ordering|type">
    <div>
      <b><xsl:value-of select="name()" />:</b>&#160;<xsl:value-of select="." />  
    </div>
  </xsl:template>

  <xsl:template match="question-choice|question-open">
    <hr />
    <b><xsl:value-of select="name()" />:</b>&#160;<br />
    <xsl:apply-templates select="@*" />
    <div style="padding-left: 1em;"><xsl:apply-templates select="*" /></div>
  </xsl:template>

  <xsl:template match="answer">
    <b><xsl:value-of select="name()" />:</b>&#160; <br />
    <xsl:apply-templates select="@*" />
    <div style="padding-left: 1em;"><xsl:apply-templates select="*" /></div>
  </xsl:template>

  <xsl:template match="alternatives">
    <b><xsl:value-of select="name()" />:</b>
    <xsl:apply-templates select="@*" />
    <div style="padding-left: 1em;"><xsl:apply-templates select="*" /></div>
  </xsl:template>

  <xsl:template match="content">
    <b><xsl:value-of select="name()" />:</b><br />
    <xsl:apply-templates select="@*" />
    <div style="padding-left: 1em;"><xsl:apply-templates select="*" /></div>
  </xsl:template>

</xsl:stylesheet>

