<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:fn="http://www.w3.org/2005/xpath-functions">
	<xsl:template match="/">
		<xsl:call-template name="displayTemplate"/>
	</xsl:template>
	<xsl:template name="displayTemplate">
		<!--<p class="Header">
			<xsl:value-of select="$wachCategory"/>
		</p>-->
		<!--Introduction-->
		<xsl:copy-of select="/root/body_text/node()"/>
		<table width="100%" border="0" cellspacing="0" cellpadding="3">
			<xsl:for-each select="/root/anchor_section">
				<xsl:variable name="anchorHeading" select="anchor_heading"/>
				<xsl:variable name="anchorBody" select="anchor_body"/>
				<xsl:if test="position() mod 3 = 1">
					<td>C1<xsl:value-of select="$anchorHeading"/>
					</td>
				</xsl:if>
				<xsl:if test="position () mod 3 = 2">
					<td>C2<xsl:value-of select="$anchorHeading"/>
					</td>
				</xsl:if>
				<xsl:if test="position() mod 3 =0">
					<td>C3<xsl:value-of select="$anchorHeading"/>
					</td>
				</xsl:if>
			</xsl:for-each>
		</table>
	</xsl:template>
</xsl:stylesheet>
