<?xml version='1.0'?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/TR/WD-xsl"> 
  
  
  <xsl:template match="DATASET">
  	
	<xsl:apply-templates />
  </xsl:template>
  
  
  <xsl:template match="RECORD[FIELD]">
	
	<TR><TD bgcolor="#20406e" colspan="100%">
		<font color="white" face="verdana" size="2"/><b/><![CDATA[   ]]><xsl:value-of select="../@NAME"/>
	</TD></TR>
  
	<TR>
		<xsl:for-each select="../RECORD[0]/FIELD">
			<xsl:choose>
				<xsl:when test="@DISPLAYNAME">
					<TD BGCOLOR="#6A83B2">
					<font color="white" face="verdana" size="2"/><![CDATA[   ]]><xsl:value-of select="@DISPLAYNAME"/><![CDATA[   ]]></TD>
					<TD bgcolor="#20406e"></TD>
				</xsl:when>
				<xsl:otherwise>
					<TD BGCOLOR="#6A83B2">
					<font color="white" face="verdana" size="2"/><![CDATA[   ]]><xsl:value-of select="@NAME"/><![CDATA[   ]]></TD>
					<TD bgcolor="#20406e"></TD>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:for-each>
	</TR>
  
  	<TR>
		<xsl:for-each select="FIELD">
			<xsl:choose>
				<xsl:when test="HYPERLINK">
					<TD bgcolor="#c7d4eb"><font color="black" size="1"/>
					<a>
					<xsl:attribute name="HREF"><xsl:value-of select="HYPERLINK/URL" /></xsl:attribute>
					<xsl:value-of select="HYPERLINK/VALUE" />
					</a>
					</TD>
				</xsl:when>
				<xsl:when test="@I18NVALUE">
					<TD bgcolor="#c7d4eb"><font color="black" size="1"/><xsl:value-of select="@I18NVALUE"/></TD>
				</xsl:when>
				<xsl:otherwise>
					<TD bgcolor="#c7d4eb"><font color="black" size="1"/><xsl:value-of select="."/></TD>
				</xsl:otherwise>
			</xsl:choose>
			<TD bgcolor="#c7d4eb"></TD>
		</xsl:for-each>
	</TR>
	<xsl:apply-templates />
	
	<xsl:if test="../../../BACKENDDATA">
		<TR><TD colspan="100%"><hr/></TD></TR>
	</xsl:if>
	
	
  </xsl:template>
  
  
  <xsl:template match="BACKENDDATA">
	<TABLE BORDER="0" width="80%" ALIGN="CENTER"  cellspacing="0">
	<TR><TD>
		<B/><font color="white" face="verdana"/><xsl:value-of select="@NAME"/>
	</TD></TR>
	
	<xsl:apply-templates />
	</TABLE>
  </xsl:template>
  
  
  <xsl:template match="/">
	<P/>
	<xsl:apply-templates />
  </xsl:template>
  
</xsl:stylesheet>
