<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
	<xsl:output method="html"/>

	<xsl:template match="Heading">
	<h3>
		<xsl:choose>
			<xsl:when test="contains(Product,'LTD')">
				Long Term
			</xsl:when>
			<xsl:when test="contains(Product,'STD')">
				Short Term
			</xsl:when>
			<xsl:otherwise>
				Unknown</xsl:otherwise>
		</xsl:choose>Disability - Outline of Benefits - Group Name
		</h3>
		<br/>
		<br/>
		<table width="100%" align="center" border="1">
			<tbody>
				<tr>
					<th class="leftheader">Coverage Effective Date:</th>
					<td>
						<xsl:value-of select="CoverageEffectiveDate"/>
					</td>
					<th class="leftheader">Situs:</th>
					<td>
						<xsl:value-of select="Situs"/>
					</td>
				</tr>
				<tr>
					<th class="leftheader">Industry Classification:</th>
					<td>
						<xsl:choose>
							<xsl:when test="IndustryClass = 'S'">Standard</xsl:when>
							<xsl:when test="IndustryClass = 'R'">Restricted</xsl:when>
							<xsl:when test="IndustryClass = 'H'">Home Office/DRMS</xsl:when>
							<xsl:otherwise>
								<xsl:value-of select="IndustryClass"/>
							</xsl:otherwise>
						</xsl:choose>
					</td>
					<th class="leftheader">SIC
						<xsl:if test="contains(Product,'LTD')">
							<br/>Pers/Strs
							<xsl:choose>
								<xsl:when test="substring(Pers_Strs,1,1) = 'Y'">
									<input type="checkbox" name="PersStrs" disabled="yes" checked="true"/>
								</xsl:when>
								<xsl:otherwise>
									<input disabled="yes" type="checkbox" name="PersStrs"/>
								</xsl:otherwise>
							</xsl:choose>
						</xsl:if>
					</th>
					<td>
						<xsl:value-of select="SIC"/>&#xA0;-&#xA0;
						<xsl:value-of select="SICDescription"/>
					</td>
				</tr>
				<tr>
					<th class="leftheader">Commissions:</th>
					<td>
						<xsl:value-of select="Commisions"/>
						<xsl:if test="CommisionsOverride">
							<br/>Override: <xsl:value-of select="CommisionsOverride"/></xsl:if>
					</td>
					<th class="leftheader">First Time Buyer:</th>
					<td>
						<xsl:value-of select="FirstTimeBuyer"/>
					</td>
				</tr>
				<!-- LTD Section -->
				<xsl:if test="contains(Product,'LTD')">
					<tr>
						<th class="leftheader">Workers Comp:</th>
						<td>
							<xsl:value-of select="WorkersComp"/>
						</td>
						<th class="leftheader">Rate Guarantee:</th>
						<td>
							<xsl:value-of select="RateGuarantee"/>
							<xsl:if test="contains(RateGuarantee, 'MONTHS') = false">Months</xsl:if>
						</td>
					</tr>
				</xsl:if>
				<!-- STD Section -->
				<xsl:if test="contains(Product,'STD')">
					<tr>
						<th class="leftheader">Rate Version</th>
						<td>
							<xsl:value-of select="RateVersion"/>
						</td>
						<th class="leftheader">Rate Guarantee:</th>
						<td>
							<xsl:value-of select="RateGuarantee"/>
							<xsl:if test="contains(RateGuarantee, 'MONTHS') = false">Months</xsl:if>
						</td>
					</tr>
				</xsl:if>
			</tbody>
		</table>
	</xsl:template>
</xsl:stylesheet><!-- Stylus Studio meta-information - (c) 2004-2007. Progress Software Corporation. All rights reserved.
<metaInformation>
<scenarios ><scenario default="yes" name="Scenario1" userelativepaths="yes" externalpreview="no" url="..\..\..\..\Temp\StarMount\rateresults_LTD.xml" htmlbaseurl="..\xml" outputurl="" processortype="internal" useresolver="no" profilemode="5" profiledepth="" profilelength="" urlprofilexml="" commandline="" additionalpath="" additionalclasspath="" postprocessortype="none" postprocesscommandline="" postprocessadditionalpath="" postprocessgeneratedext="" validateoutput="no" validator="internal" customvalidator="" ><advancedProp name="sInitialMode" value=""/><advancedProp name="bXsltOneIsOkay" value="true"/><advancedProp name="bSchemaAware" value="false"/><advancedProp name="bXml11" value="false"/><advancedProp name="iValidation" value="0"/><advancedProp name="bExtensions" value="true"/><advancedProp name="iWhitespace" value="0"/><advancedProp name="sInitialTemplate" value=""/><advancedProp name="bTinyTree" value="true"/><advancedProp name="bWarnings" value="true"/><advancedProp name="bUseDTD" value="false"/><advancedProp name="iErrorHandling" value="fatal"/></scenario><scenario default="no" name="Scenario2" userelativepaths="yes" externalpreview="no" url="rateresults.xml" htmlbaseurl="..\xml" outputurl="" processortype="internal" useresolver="no" profilemode="0" profiledepth="" profilelength="" urlprofilexml="" commandline="" additionalpath="" additionalclasspath="" postprocessortype="none" postprocesscommandline="" postprocessadditionalpath="" postprocessgeneratedext="" validateoutput="no" validator="internal" customvalidator="" ><advancedProp name="sInitialMode" value=""/><advancedProp name="bXsltOneIsOkay" value="true"/><advancedProp name="bSchemaAware" value="false"/><advancedProp name="bXml11" value="false"/><advancedProp name="iValidation" value="0"/><advancedProp name="bExtensions" value="true"/><advancedProp name="iWhitespace" value="0"/><advancedProp name="sInitialTemplate" value=""/><advancedProp name="bTinyTree" value="true"/><advancedProp name="bWarnings" value="true"/><advancedProp name="bUseDTD" value="false"/><advancedProp name="iErrorHandling" value="fatal"/></scenario></scenarios><MapperMetaTag><MapperInfo srcSchemaPathIsRelative="yes" srcSchemaInterpretAsXML="no" destSchemaPath="" destSchemaRoot="" destSchemaPathIsRelative="yes" destSchemaInterpretAsXML="no"/><MapperBlockPosition><template match="Heading"><block path="table[1]/tbody/tr/td/xsl:value-of" x="197" y="87"/><block path="table[1]/tbody/tr[1]/td/xsl:value-of" x="157" y="87"/><block path="table[1]/tbody/tr[2]/th[1]/xsl:if/contains[0]" x="81" y="129"/><block path="table[1]/tbody/tr[2]/th[1]/xsl:if" x="127" y="131"/><block path="" x="37" y="161"/><block path="table[1]/tbody/tr[2]/th[1]/xsl:if/xsl:choose" x="77" y="121"/><block path="table[1]/tbody/tr[2]/th[1]/xsl:if/xsl:choose/=[0]" x="31" y="115"/><block path="table[1]/tbody/tr[2]/th[1]/xsl:if/xsl:choose/=[0]/substring[0]" x="145" y="75"/><block path="table[1]/tbody/tr[3]/td/xsl:value-of" x="237" y="47"/><block path="table[1]/tbody/tr[3]/td[1]/xsl:choose" x="167" y="17"/><block path="table[1]/tbody/tr[3]/td[1]/xsl:choose/=[0]" x="121" y="11"/><block path="table[1]/tbody/tr[3]/td[1]/xsl:choose/=[1]" x="121" y="19"/><block path="table[1]/tbody/tr[3]/td[1]/xsl:choose/=[2]" x="121" y="27"/><block path="table[1]/tbody/xsl:if/contains[0]" x="191" y="159"/><block path="table[1]/tbody/xsl:if" x="237" y="161"/><block path="table[1]/tbody/xsl:if/tr/td[1]/xsl:if/=[0]" x="161" y="89"/><block path="table[1]/tbody/xsl:if/tr/td[1]/xsl:if/=[0]/contains[0]" x="115" y="83"/><block path="table[1]/tbody/xsl:if/tr/td[1]/xsl:if" x="207" y="91"/><block path="table[1]/tbody/xsl:if/tr[1]/td/xsl:value-of[2]" x="157" y="127"/><block path="table[1]/tbody/xsl:if[1]/contains[0]" x="231" y="159"/><block path="table[1]/tbody/xsl:if[1]" x="277" y="161"/><block path="table[1]/tbody/xsl:if[1]/tr/td[1]/xsl:if/=[0]" x="201" y="89"/><block path="table[1]/tbody/xsl:if[1]/tr/td[1]/xsl:if/=[0]/contains[0]" x="155" y="83"/><block path="table[1]/tbody/xsl:if[1]/tr/td[1]/xsl:if" x="247" y="91"/></template></MapperBlockPosition><TemplateContext></TemplateContext><MapperFilter side="source"></MapperFilter></MapperMetaTag>
</metaInformation>
-->