<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

	<xsl:output method="xml" indent="no"/>
	
<!-- LO PAGE -->
	
	<xsl:template match="course">

		<div xmlns="http://www.w3.org/1999/xhtml" class="block">
			<h2><xsl:value-of select="/site/name"/></h2>		
			<h4><a href="page.php?id={$currentpage}">&lt; Back to <xsl:value-of select="document(concat('pag_xml.php?id=', $currentpage))/page/name"/></a></h4>	
		</div>

		<div xmlns="http://www.w3.org/1999/xhtml" id="lo-details" class="block">
		
			<div class="component">
				<img src="{document(concat('sit_xml.php?id=', $childsite ))/site/course/thumbnail/@filename}" class="galdet" alt="{/site/name}"/>
			</div>
		
			<div class="component">
				<p><xsl:value-of select="/site/description" disable-output-escaping="yes"/></p>
				<p><a href="{url}"><xsl:value-of select="url"/></a></p>
			</div>
						
		</div>

	</xsl:template>
	
</xsl:stylesheet>
