<?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="contentobject">
	<xsl:param name="contentpage" select="document(concat('sit_xml.php?id=', $childsite))/site/*/page/@id"/>
		<div id="header" xmlns="http://www.w3.org/1999/xhtml">
			<ul class="options-tp">
				<xsl:apply-templates select="document(concat('sit_xml.php?id=', $parentsite ))/site/course/navigation/utilitynav"/>
			</ul>	
			<div id="titlebar">					
				<div>
					<h1><xsl:value-of select="document(concat('sit_xml.php?id=', $parentsite ))/site/name"/></h1>
					<h2><xsl:value-of select="document(concat('sit_xml.php?id=', $childsite ))/site/contentobject/@type"/></h2>
					<h3><a href="page.php?id={$currentpage}">&lt; Back to Activity Page</a></h3>
				</div>			
			</div>	
		</div>

		<div xmlns="http://www.w3.org/1999/xhtml" class="component">
			<h3><xsl:value-of select="document(concat('sit_xml.php?id=', $childsite))/site/name"/></h3>
		</div>

		<div xmlns="http://www.w3.org/1999/xhtml" id="lo-details">
		
		<xsl:for-each select="document(concat('pag_xml.php?id=', $contentpage))/page/item/component">
			<xsl:call-template name="componentshell"><xsl:with-param name="contentpage"><xsl:value-of select="$contentpage"/></xsl:with-param></xsl:call-template>
		</xsl:for-each>	
		
		</div>

	</xsl:template>

</xsl:stylesheet>
