<?xml version='1.0' ?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
	<xsl:template match="/">
		<html>
			<head>
				<meta http-equiv="Content-Type" content="text/html"/>
				<title>
					<xsl:value-of select="UseCase/@id"/> - <xsl:value-of select="UseCase/Title"/>
				</title>
				<link href="usecase.css" rel="stylesheet" type="text/css"/>
			</head>
			<body>
				<xsl:apply-templates select="UseCase/Title"/>
				<xsl:apply-templates select="UseCase/Description"/>
				<xsl:apply-templates select="UseCase/UseCaseDiagram"/>
				<xsl:apply-templates select="UseCase[@level]"/>
				<xsl:apply-templates select="UseCase/Actors"/>
				<xsl:apply-templates select="UseCase/PreConditions"/>
				<xsl:apply-templates select="UseCase/SuccessGuarantee"/>
				<xsl:apply-templates select="UseCase/MainSuccessScenario"/>
				<xsl:apply-templates select="UseCase/Extensions"/>
			</body>
		</html>
	</xsl:template>
	<xsl:template match="Title">
		<h1>
			<xsl:value-of select="../@id"/> - 
			<xsl:value-of select="."/>
		</h1>
	</xsl:template>
	<xsl:template match="Description">
		<h2>Brief Description:</h2>
		<p>
			{Url}
		</p>
	</xsl:template>

	<xsl:template match="Actors">
		<h2>Actors:</h2>
		<ul>
			<xsl:for-each select="Actor">
				<li>
					<h3>
						<xsl:value-of select="Name"/>
					</h3>
					<p class="inline">
						<xsl:value-of select="Description"/>
					</p>
				</li>
			</xsl:for-each>
		</ul>
	</xsl:template>
	<xsl:template match="UseCase[@level]">
		<h3>Level:</h3>
		<p class="inline">
			<xsl:value-of select="@level"/>
		</p>
	</xsl:template>

<xsl:template match="UseCaseDiagram">
	<p class="diagram"><xsl:value-of select="Url"/></p>
</xsl:template>

<xsl:template match="Url">
	
</xsl:template>

<xsl:template match="PreConditions">
	<h2>Preconditions:</h2>
	<ul>
	<xsl:for-each select="Condition">
		<li><xsl:value-of select="."/></li>
	</xsl:for-each>
	</ul>
</xsl:template>



<xsl:template match="SuccessGuarantee">
	<h3>Success Guarantee:</h3>
	<p class="inline">
		<xsl:value-of select="."/>
	</p>
</xsl:template>



<xsl:template match="MainSuccessScenario">
	<h2>Main Sucess Scenario:</h2>
	<ol>
	<xsl:for-each select="Step">
		<li><xsl:value-of select="."/></li>
	</xsl:for-each>
	</ol>
</xsl:template>



<xsl:template match="Extensions">		
	<h2>Extensions:</h2>
	<ul>

	<xsl:for-each select="Extension">
		<li><xsl:value-of select="Description"/>
			<ul>
				<xsl:for-each select="Step">
					<li><xsl:value-of select="."/></li>
				</xsl:for-each>
			</ul>
		</li>
		
	</xsl:for-each>
	</ul>
</xsl:template>
</xsl:stylesheet><!-- Stylus Studio meta-information - (c) 2004-2005. Progress Software Corporation. All rights reserved.
<metaInformation>
<scenarios ><scenario default="yes" name="usecase.xml" userelativepaths="yes" externalpreview="no" url="usecase.xml" htmlbaseurl="" outputurl="" processortype="internal" useresolver="yes" profilemode="0" profiledepth="" profilelength="" urlprofilexml="" commandline="" additionalpath="" additionalclasspath="" postprocessortype="none" postprocesscommandline="" postprocessadditionalpath="" postprocessgeneratedext="" validateoutput="no" validator="internal" customvalidator=""/></scenarios><MapperMetaTag><MapperInfo srcSchemaPathIsRelative="yes" srcSchemaInterpretAsXML="no" destSchemaPath="" destSchemaRoot="" destSchemaPathIsRelative="yes" destSchemaInterpretAsXML="no" ><SourceSchema srcSchemaPath="usecase.xml" srcSchemaRoot="UseCase" AssociatedInstance="" loaderFunction="document" loaderFunctionUsesURI="no"/></MapperInfo><MapperBlockPosition><template match="/"><block path="html/body/xsl:apply&#x2D;templates" x="173" y="176"/><block path="html/body/xsl:apply&#x2D;templates[1]" x="213" y="176"/><block path="html/body/xsl:apply&#x2D;templates[2]" x="133" y="176"/><block path="html/body/xsl:apply&#x2D;templates[3]" x="93" y="176"/><block path="html/body/xsl:apply&#x2D;templates[4]" x="53" y="176"/><block path="html/body/xsl:apply&#x2D;templates[5]" x="13" y="176"/><block path="html/body/xsl:apply&#x2D;templates[6]" x="173" y="136"/><block path="html/body/xsl:apply&#x2D;templates[7]" x="213" y="136"/><block path="html/body/xsl:apply&#x2D;templates[8]" x="133" y="136"/></template><template match="Extensions"><block path="ul/xsl:for&#x2D;each" x="173" y="120"/></template></MapperBlockPosition><TemplateContext></TemplateContext><MapperFilter side="source"></MapperFilter></MapperMetaTag>
</metaInformation>
-->