<?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"/>
	
<!-- UTILITY PAGE -->
	
	<xsl:template match="utility">
		<div id="header" xmlns="http://www.w3.org/1999/xhtml">
			<ul class="options-tp">
				<xsl:choose>
				<xsl:when test="document(concat('sit_xml.php?id=', /page/@siteid))/site/course/navigation/utilitynav/page">
				<xsl:apply-templates select="document(concat('sit_xml.php?id=', /page/@siteid))/site/course/navigation/utilitynav"/>
				</xsl:when>
				<xsl:otherwise>
				<li>&#160;</li>
				</xsl:otherwise>
				</xsl:choose>
			</ul>	
			<div id="titlebar">					
				<div>
					<h1><xsl:value-of select="document(concat('sit_xml.php?id=', /page/@siteid ))/site/name"/></h1>
					<h2><xsl:value-of select="/page/title"/></h2>
					<h3><xsl:text disable-output-escaping="yes">&amp;nbsp;</xsl:text></h3>
				</div>			
			</div>		
		</div>	
		
		<xsl:for-each select="component">
			<xsl:call-template name="componentshell"/>	
		</xsl:for-each>
								
	</xsl:template>
	
</xsl:stylesheet>
