<?xml version='1.0' encoding='utf-8'?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xmlns="http://www.w3.org/2000/xmlns/">
<xsl:output method="html" encoding="ASCII" indent="yes"/>
<xsl:template name="Body" match="/ROOT">
	<link href="http://localhost/Styles.css" type="text/css" rel="stylesheet"/>
	<html>
		<table width="100%">
			<tbody>
				<tr>
					<td width="5%"/>
					<td width="90%">
						<h1>
							<div align="center">Project Requirements</div>
						</h1>
						<h2>
						<div align="center">
							<xsl:value-of select="Request/@RequestName"/>
						</div>
						</h2>
						<br/>
						<h3>Overview</h3>
						<blockquote>
							<xsl:value-of select="Request/@RequestDesc"/>
						</blockquote>
						<hr/>
						<div>
							<h3>Assumptions</h3>
							<ul>
								<xsl:for-each select="Request/Assumptions">
									<li value="0">
										<xsl:value-of select="@Assumption"/>
									</li>
								</xsl:for-each>
							</ul>
						</div>
						<div>
							<h3>Requirements</h3>
							<ul>
								<xsl:for-each select="Request/Requirements">
									<li value="0">						
									   	<xsl:call-template name="break">
									   		<xsl:with-param name="text"><xsl:value-of select="@Requirement"/></xsl:with-param>
										</xsl:call-template>	
									</li>
								</xsl:for-each>
							</ul>
						</div>
						<div>
							<h3>Application Impact</h3>
							<ul>
								<xsl:for-each select="Request/ApplicationImpact">
									<li value="0">
										<xsl:value-of select="@AppImpactDesc"/>
									</li>
								</xsl:for-each>
							</ul>
						</div>
						<div>
							<h3>Data Impact</h3>
							<ul>
								<xsl:for-each select="Request/DataImpact">
									<li value="0">
										<xsl:value-of select="@DataImpactDesc"/>
									</li>
								</xsl:for-each>
							</ul>
						</div>
						<hr/>
						<cite>
						 By signing this document you acknowledge that the above requirements and scope are correct and appropriate for the requested project. Changes to the requirements after signing may impact the scheduling and/or delivery date of the project.
						</cite>
						<br/>
						<br/>
						<br/>
						<br/>
						<table width="100%">
							<tbody>
								<tr>
									<td width="40%">
										<hr class="sigblock"/>
									</td>
									<td width="20%"/>
									<td width="40%">
										<hr class="sigblock"/>
									</td>
								</tr>
								<tr>
									<td width="40%">
										<b>
											<xsl:value-of select="Request/@AnalystName"/>
										</b>
									</td>
									<td width="20%"/>
									<td width="40%">
										<b>
											<xsl:value-of select="Request/@RequestorName"/>
										</b>
									</td>
								</tr>
							</tbody>
						</table>
					</td>
					<td width="5%"/>
				</tr>
			</tbody>
		</table>
	</html>
</xsl:template>

<xsl:template name="break">
	<xsl:param name="text" select="."/>
	<xsl:choose>
		<xsl:when test="contains($text,'&#xD;&#xA;')">
			<xsl:value-of select="substring-before($text,'&#xD;&#xA;')"/>
		    <br/>
			<xsl:call-template name="break">
				<xsl:with-param name="text" select="substring-after($text,'&#xD;&#xA;')"/>
			</xsl:call-template>
		</xsl:when>
		<xsl:otherwise>
			<xsl:value-of select="$text"/>
		</xsl:otherwise>
	</xsl:choose>
</xsl:template>

</xsl:stylesheet><!-- Stylus Studio meta-information - (c) 2004-2005. Progress Software Corporation. All rights reserved.
<metaInformation>
<scenarios ><scenario default="yes" name="Requirements" userelativepaths="yes" externalpreview="no" url="http://localhost/sqlxml/RequirementsRaw?ReqID=40123" htmlbaseurl="" outputurl="Test.html" processortype="internal" profilemode="1" profiledepth="" profilelength="" urlprofilexml="" commandline="" additionalpath="" additionalclasspath="" postprocessortype="none" postprocesscommandline="" postprocessadditionalpath="" postprocessgeneratedext=""/></scenarios><MapperMetaTag><MapperInfo srcSchemaPathIsRelative="yes" srcSchemaInterpretAsXML="no" destSchemaPath="" destSchemaRoot="" destSchemaPathIsRelative="yes" destSchemaInterpretAsXML="no"/><MapperBlockPosition><template match="/"><block path="ul/xsl:for&#x2D;each" x="211" y="90"/><block path="ul/xsl:for&#x2D;each/li/xsl:value&#x2D;of" x="171" y="90"/></template><template match="ROOT"></template><template name="PDF"></template><template match="/ROOT"><block path="html/table/tbody/tr/td[1]/h2/div/xsl:value&#x2D;of" x="211" y="110"/><block path="html/table/tbody/tr/td[1]/blockquote/xsl:value&#x2D;of" x="171" y="110"/><block path="html/table/tbody/tr/td[1]/div/ul/xsl:for&#x2D;each" x="131" y="110"/><block path="html/table/tbody/tr/td[1]/div/ul/xsl:for&#x2D;each/li/textarea/xsl:value&#x2D;of" x="171" y="70"/><block path="html/table/tbody/tr/td[1]/div[1]/ul/xsl:for&#x2D;each" x="91" y="110"/><block path="html/table/tbody/tr/td[1]/div[1]/ul/xsl:for&#x2D;each/li/textarea/xsl:value&#x2D;of" x="211" y="70"/><block path="html/table/tbody/tr/td[1]/div[2]/ul/xsl:for&#x2D;each" x="51" y="110"/><block path="html/table/tbody/tr/td[1]/div[2]/ul/xsl:for&#x2D;each/li/textarea/xsl:value&#x2D;of" x="131" y="70"/><block path="html/table/tbody/tr/td[1]/div[3]/ul/xsl:for&#x2D;each" x="11" y="110"/><block path="html/table/tbody/tr/td[1]/div[3]/ul/xsl:for&#x2D;each/li/textarea/xsl:value&#x2D;of" x="91" y="70"/><block path="html/table/tbody/tr/td[1]/table/tbody/tr[1]/td/b/xsl:value&#x2D;of" x="51" y="70"/><block path="html/table/tbody/tr/td[1]/table/tbody/tr[1]/td[2]/b/xsl:value&#x2D;of" x="11" y="70"/></template></MapperBlockPosition></MapperMetaTag>
</metaInformation>
-->