<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:fo="http://www.w3.org/1999/XSL/Format">
<xsl:template match="/">
		<html>
			<body>
				<h2>
					<center>Matrix</center>
				</h2>
				<table border="1">
					<tbody>
						<tr>
							<th colspan="4">TABLE_A</th>
						</tr>
						<tr>
							<th>RowID</th>
							<th>ID</th>
							<th>ColID</th>
							<th>Data</th>
						</tr>
						<xsl:for-each select="//Table_A">
						<tr>
							<td><xsl:value-of select="RowID"/></td>
							<td><xsl:value-of select="ID"/></td>
							<td><xsl:value-of select="ColID"/></td>
							<td><xsl:value-of select="Data"/></td>
						</tr>
						</xsl:for-each>
					</tbody>
				</table>
				<table border="1">
					<tbody>
						<tr>
							<th colspan="2">TABLE_B</th>
						</tr>
						<tr>
							<th>ID</th>
							<th>Index_B</th>
						</tr>
						<xsl:for-each select="//Table_B">
						<tr>
							<td><xsl:value-of select="ID"/></td>
							<td><xsl:value-of select="Index_B"/></td>
						</tr>
						</xsl:for-each>
					</tbody>
				</table>
				<table border="1">
					<tbody>
						<tr>
							<th colspan="3">TABLE_C</th>
						</tr>
						<tr>
							<th>Name</th>
							<th>ID</th>
							<th>Index_C</th>
						</tr>
						<xsl:for-each select="//Table_C">
						<tr>
							<td><xsl:value-of select="Name"/></td>
							<td><xsl:value-of select="ID"/></td>
							<td><xsl:value-of select="Index_C"/></td>
						</tr>
						</xsl:for-each>
					</tbody>
				</table>
			</body>
		</html>
	</xsl:template>
</xsl:stylesheet>
