<?xml version="1.0" encoding="UTF-8"?>  
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:msg="ZESR" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
	<xsl:output version="1.0" encoding="utf-8" omit-xml-declaration="no" indent="no" media-type="text/html"/>
	<xsl:template match="/">
		<html>
			<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
			<head/>
			<body>
				<xsl:for-each select="*">
					<table class="noborder918">
						<tr>
							<td class="value">
								<xsl:text disable-output-escaping="yes">&amp;nbsp;</xsl:text>
							</td>
							<td class="value">
								<xsl:text disable-output-escaping="yes">&amp;nbsp;</xsl:text>
							</td>
						</tr>
						<xsl:for-each select="*">
							<tr>
								<td class="segmentheader">
									<xsl:value-of select="name()"/>
								</td>
								<td class="segmentheader">
									<xsl:text disable-output-escaping="yes">&amp;nbsp;</xsl:text>
								</td>
							</tr>
							<xsl:for-each select="*">
							 
								<xsl:if test="position() mod 2 = 0">
									<tr>	
											<td class="darklabel">
											<xsl:value-of select="name()"/>
										</td>
										<td class="darkvalue">
											<xsl:value-of select="."/>
										</td>
									 </tr>
								 </xsl:if>
								 
								<xsl:if test="position() mod 2 = 1">
										<tr>
											<td class="label">
												<xsl:value-of select="name()"/>
											</td>
											<td class="value">
												<xsl:value-of select="."/>
											</td>
										</tr>
								 </xsl:if>
								
							</xsl:for-each>	
							
							<xsl:if test="not(@*)">
								<tr><td class="value"><xsl:text disable-output-escaping="yes">&amp;nbsp;</xsl:text></td><td class="value"/></tr>
							</xsl:if>
							<xsl:for-each select="@*">											
								<xsl:if test="position() mod 2 = 0">
									<tr>
										<td class="darklabel">
											<xsl:value-of select="name()"/>
										</td>
										<td class="darkvalue">
											<xsl:value-of select="."/>
										</td>
									</tr>
								</xsl:if>
								<xsl:if test="position() mod 2 = 1">
									<tr>
										<td class="label">
											<xsl:value-of select="name()"/>
										</td>
										<td class="value">
											<xsl:value-of select="."/>
										</td>
									</tr>
								</xsl:if>
								
							</xsl:for-each>
						</xsl:for-each>
					</table>
				</xsl:for-each>	
			</body>
		</html>
	</xsl:template>
</xsl:stylesheet>
