﻿<?xml version="1.0" encoding="utf-8"?> 
<xsl:stylesheet 
	version="1.0"
    xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:import href="../../xsl/Utils.xsl"/>               

<xsl:output method="html"/>

<xsl:template match="entries">
<div id="NavigationLeft">
	<a class="logo" href="../..">
		<img id="icon" src="../../images/drage6.jpg" alt="Drage-papirfoldning.dk"/>
	</a>
</div>

<div id="Main">
<h1 id="Header">Alle indlæg i papirfoldning.dk</h1>


<div id="Contents">
	<div class="entries">
		<xsl:apply-templates select="entry" >
			<xsl:sort select="@time" order="descending"/>
		</xsl:apply-templates>
	</div>
</div>

<div id="Footer">
<xsl:comment>insert ../Footer.inc</xsl:comment>
(<a href="http://www.w3.org">W3</a> validation: <a class="link" href="http://validator.w3.org/check?uri=referer">XHTML 1.0 Strict</a>
, <a class="link" href="http://jigsaw.w3.org/css-validator/check/referer">Valid CSS</a>)

<!--Creative Commons License-->
<a style="text-decoration: none;" rel="license" href="../Kontakt/Copyright.html">
<img alt="Creative Commons License" style="border-width: 0em; position: relative; top: 0.2em; height: 1em; margin: 0.2em 0em 0em 0em; padding: 0em 0em 0em 0em;" src="../images/CC.gif"/></a>
<!-- <br/>Dette værk er licensieret under en <a rel="license" href="http://creativecommons.org/licenses/by-nc/2.5/dk/">Creative Commons Navngivelse-Ikke-kommerciel 2.5 Danmark Licens</a>. -->
<!--/Creative Commons License-->
<!-- 
	<rdf:RDF xmlns="http://web.resource.org/cc/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#">
		<Work rdf:about="">
			<license rdf:resource="http://creativecommons.org/licenses/by-nc/2.5/dk/" />
		</Work>
		<License rdf:about="http://creativecommons.org/licenses/by-nc/2.5/dk/">
			<permits rdf:resource="http://web.resource.org/cc/Reproduction"/>
			<permits rdf:resource="http://web.resource.org/cc/Distribution"/>
			<requires rdf:resource="http://web.resource.org/cc/Notice"/>
			<requires rdf:resource="http://web.resource.org/cc/Attribution"/>
			<prohibits rdf:resource="http://web.resource.org/cc/CommercialUse"/>
			<permits rdf:resource="http://web.resource.org/cc/DerivativeWorks"/>
		</License>
	</rdf:RDF> 
-->
<xsl:comment>endinsert ../Footer.inc</xsl:comment>
</div>
</div>

<script type="text/javascript">
selectNavigation("Local<xsl:value-of select="@blog" />");
</script>
</xsl:template>

<xsl:template match="entry">
<div class="blogLabel"><xsl:element name="a">
		<xsl:attribute name="name">
			<xsl:value-of select="@time" />
		</xsl:attribute> 
		<xsl:value-of select="@time" />
	</xsl:element>
  <span class="name">
    <xsl:value-of select="@name" />
  </span>
  <span class="location">
    (<xsl:value-of select="translate(@blog, '.', '/')" />)
  </span>
</div>
<div class="blogText">
	<xsl:apply-templates />
</div>
  <div class="blogNotes">
    <xsl:element name="a">
    <xsl:attribute name="href">
    		<xsl:text>Comment.aspx?blog=</xsl:text>
        <xsl:value-of select="@blog" />
        <xsl:text>&amp;back=</xsl:text>
        <xsl:value-of select="@back" />
        <xsl:text>&amp;topic=</xsl:text>
        <xsl:value-of select="@topic" />
      </xsl:attribute>Nyt indlæg
    </xsl:element>
    -
    <xsl:element name="a">
      <xsl:attribute name="href">
        <xsl:value-of select="@back" />
      </xsl:attribute>
      Se side
    </xsl:element>
    -
    <xsl:element name="a">
      <xsl:attribute name="href">
        <xsl:text>Comments.aspx?blog=</xsl:text>
        <xsl:value-of select="@blog" />
        <xsl:text>&amp;back=</xsl:text>
        <xsl:value-of select="@back" />
        <xsl:text>&amp;topic=</xsl:text>
        <xsl:value-of select="@topic" />
      </xsl:attribute>
      Se kommentarer
      </xsl:element>
  </div>
</xsl:template>


<xsl:template match="p">
  <p>
    <xsl:apply-templates />
  </p>
</xsl:template>

<xsl:template match="a">
  <xsl:element name="a">
    <xsl:attribute name="href">
      <xsl:value-of select="@href" />
    </xsl:attribute>
    <xsl:value-of select="." />
</xsl:element>
</xsl:template>


</xsl:stylesheet>

