<?xml version='1.0'?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:rs='urn:schemas-microsoft-com:rowset' xmlns:s='uuid:BDC6E3F0-6DA3-11d1-A2A3-00AA00C14882' xmlns:z='#RowsetSchema' xmlns:html='http://www.w3.org/tr/rec-html40' version='1.0'>
<xsl:output method="html"/>

<xsl:template match="/">
	<HTML>
	<HEAD> 
		<TITLE>Generic</TITLE>
		<BASE href="DailyRevolver.xsl"/>
	</HEAD>
	<TABLE BORDER="1">
		 <THEAD>
			<!--
		   	<xsl:apply-templates select="xml/s:Schema/s:ElementType[@name='row']"/>
			-->
			<xsl:call-template name="header"/>
		 </THEAD>
		 <TBODY>
		 	 <xsl:apply-templates select="xml/rs:data"/>
		 </TBODY>
	</TABLE>
	</HTML>
</xsl:template>

<xsl:template match="rs:data">
   <!-- drill through all z:row nodes -->
   <xsl:apply-templates>
    <xsl:sort select="@c0" data-type="text" />
   </xsl:apply-templates>
</xsl:template>

<xsl:template name="header">
	<TH>DEAL_NAME</TH> 
	<TH>DEAL_DEPT</TH> 
	<TH>AGENT</TH> 
	<TH>RELATIONSHIP_MGR</TH> 
	<TH>FAC_NAME</TH> 
	<TH>CURRENCY</TH> 
	<TH>GLOBAL_CURRENT_COMMIT</TH> 
	<TH>GLOBALOUTSTANDING</TH>
	<TH>GLOBAL_OUTS_DIFF</TH> 
	<TH>GLOBAL_FUNDED</TH> 
	<TH>GLOBAL_FUNDED_DIFF</TH> 
	<TH>GLOBAL_SBLC</TH> 
	<TH>GLOBAL_SBLC_DIFF</TH> 
	<TH>LOAN_AS_OF_IND</TH> 
	<TH>SBLC_AS_OF_IND</TH> 
   
</xsl:template>
<!-- Header labels -->
<xsl:template match="s:AttributeType">
	<TH><xsl:value-of select="@rs:name"/></TH>
</xsl:template>

<xsl:template match="z:row">
	<TR>
		<TD><xsl:value-of select="@c0" /></TD>
		<TD><xsl:value-of select="@c1" /></TD>
		<TD><xsl:value-of select="@c2" /></TD>
		<TD><xsl:value-of select="@c3" /></TD>
		<TD><xsl:value-of select="@c4" /></TD>
		<TD><xsl:value-of select="@c5" /></TD>
                <TD><xsl:value-of select="@c6" /></TD>
                <TD><xsl:value-of select="@c9 + @c11" /></TD>	        
                
	        <TD><xsl:value-of select="@c8" /></TD>
	        <TD><xsl:value-of select="@c9" /></TD>
                
	        <TD><xsl:value-of select="@c10" /></TD>
	        <TD><xsl:value-of select="@c11" /></TD>
                
		<TD><xsl:value-of select="@c12" /></TD>
	        <TD><xsl:value-of select="@c13" /></TD>
        <TD><xsl:value-of select="@c14" /></TD>                        

	</TR>
</xsl:template>

</xsl:stylesheet>
<!-- Stylus Studio meta-information - (c) 2004-2009. Progress Software Corporation. All rights reserved.

<metaInformation>
	<scenarios>
		<scenario default="yes" name="Scenario1" userelativepaths="no" externalpreview="no" url="file:///c:/DailyRevolver_01-02-2009.xml" htmlbaseurl="" outputurl="" processortype="saxon8" useresolver="yes" 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="true"/>
			<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></MapperBlockPosition>
		<TemplateContext></TemplateContext>
		<MapperFilter side="source"></MapperFilter>
	</MapperMetaTag>
</metaInformation>
-->