View stylesheet

XML schemas http://www.eionet.europa.eu/schemas/dir200442ec/schema200442.xsd
Output type HTML
Description HTML page
XSL file dir200442_html.xsl (Last modified: 14 Jun 2011 08:10 )
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0" xmlns:office='http://openoffice.org/2000/office' xmlns:table='http://openoffice.org/2000/table' xmlns:text='http://openoffice.org/2000/text'>
	<!-- quizás sobre esto -->
	<xsl:output method="xml" indent="yes"/>
	<xsl:param name="envelopeurl"/>
	<!-- quizás sobre esto -->
	<xsl:param name="xml_folder_uri"/>
	<xsl:variable name="language">en</xsl:variable>
	<!--PRODUCCION -->
	<xsl:variable name="labels_doc" select="document(concat($xml_folder_uri,'dir200442_labels.xml'))/labels"/>
	<!-- LOCAL 
	<xsl:variable name="labels_doc" select="document('dir200442_labels.xml')/labels"/>
	-->
	<xsl:variable name="labels" select="$labels_doc/itemset[@id='200442' and @xml:lang=$language]"/>
	<xsl:template match="response">
		<html>
			<head>
				<style type="text/css">
				.data-table {border: 1px solid black; border-collapse: collapse; width: 100%; }
				.data-table th {border: 1px solid black;	}
				.data-table td {border: 1px solid black;	}
				#metadata-table {border: 1px solid black; border-collapse: collapse;  }
				#metadata-table th {border: 1px solid black; text-align:right;padding:4px;	}
				#metadata-table td {border: 1px solid black;padding:4px;}
				label{font-weight:bold; }
				.answer{color:#0000ff; }
				.noanswer{color:#808080; font-style:italic; }
			</style>
			</head>
			<body>
				<h1>
					<xsl:value-of select="$labels/item[@id='h1']"/>
				</h1>
				<xsl:call-template name="metadata"/>
				<xsl:call-template name="emptyRow"/>
				<xsl:call-template name="buildHeading2">
					<xsl:with-param name="heading">
						<xsl:value-of select="translate($labels/item[@id='q-1'],'abcdefghijklmnopqrstuvwxyz', 'ABCDEFGHIJKLMNOPQRSTUVWXYZ')"/>
					</xsl:with-param>
				</xsl:call-template>
				<xsl:call-template name="emptyRow"/>
				<xsl:call-template name="buildHeading3">
					<xsl:with-param name="heading">
						<xsl:value-of select="$labels/item[@id='q-1-1']"/>
					</xsl:with-param>
				</xsl:call-template>
				<xsl:apply-templates select="q-1/q-1-1"/>
				<xsl:call-template name="emptyRow"/>
				<xsl:call-template name="buildHeading3">
					<xsl:with-param name="heading">
						<xsl:value-of select="$labels/item[@id='q-1-2']"/>
					</xsl:with-param>
				</xsl:call-template>
				<xsl:apply-templates select="q-1/q-1-2/q-1-2-a | q-1/q-1-2/q-1-2-b | q-1/q-1-2/q-1-2-c"/>
				<xsl:call-template name="emptyRow"/>
				<xsl:apply-templates select="q-1/q-1-3"/>
				<xsl:call-template name="emptyRow"/>
				<xsl:call-template name="emptyRow"/>
				<xsl:call-template name="buildHeading2">
					<xsl:with-param name="heading">
						<xsl:value-of select="translate($labels/item[@id='q-2'],'abcdefghijklmnopqrstuvwxyz', 'ABCDEFGHIJKLMNOPQRSTUVWXYZ')"/>
					</xsl:with-param>
				</xsl:call-template>
				<xsl:call-template name="emptyRow"/>
				<xsl:apply-templates select="q-2/q-2-1/q-2-1-a | q-2/q-2-1/q-2-1-b | q-2/q-2-1/q-2-1-c"/>
				<xsl:call-template name="emptyRow"/>
				<xsl:call-template name="buildHeading3">
					<xsl:with-param name="heading">
						<xsl:value-of select="$labels/item[@id='q-2-2']"/>
					</xsl:with-param>
				</xsl:call-template>
				<xsl:apply-templates select="q-2/q-2-2/q-2-2-a | q-2/q-2-2/q-2-2-b | q-2/q-2-2/q-2-2-c | q-2/q-2-2/q-2-2-d"/>
				<xsl:call-template name="emptyRow"/>
				<xsl:call-template name="buildHeading3">
					<xsl:with-param name="heading">
						<xsl:value-of select="$labels/item[@id='q-2-3']"/>
					</xsl:with-param>
				</xsl:call-template>
				<xsl:apply-templates select="q-2/q-2-3"/>
				<xsl:call-template name="emptyRow"/>
				<xsl:call-template name="buildHeading3">
					<xsl:with-param name="heading">
						<xsl:value-of select="$labels/item[@id='q-2-4']"/>
					</xsl:with-param>
				</xsl:call-template>
				<xsl:call-template name="emptyRow"/>
				<xsl:apply-templates select="q-2/q-2-4"/>
				<xsl:call-template name="emptyRow"/>
				<xsl:apply-templates select="q-2/q-2-5"/>
				<xsl:call-template name="emptyRow"/>
				<xsl:apply-templates select="q-2/q-2-6"/>
				<xsl:call-template name="emptyRow"/>
				<xsl:call-template name="buildHeading3">
					<xsl:with-param name="heading">
						<xsl:value-of select="$labels/item[@id='q-2-7']"/>
					</xsl:with-param>
				</xsl:call-template>
				<xsl:call-template name="emptyRow"/>
				<xsl:apply-templates select="q-2/q-2-7"/>
				<xsl:call-template name="emptyRow"/>
				<xsl:call-template name="buildHeading3">
					<xsl:with-param name="heading">
						<xsl:value-of select="$labels/item[@id='q-2-8']"/>
					</xsl:with-param>
				</xsl:call-template>
				<xsl:call-template name="emptyRow"/>
				<xsl:apply-templates select="q-2/q-2-8"/>
				<xsl:call-template name="emptyRow"/>
				<xsl:call-template name="buildHeading3">
					<xsl:with-param name="heading">
						<xsl:value-of select="$labels/item[@id='q-2-9']"/>
					</xsl:with-param>
				</xsl:call-template>
				<xsl:call-template name="emptyRow"/>
				<xsl:apply-templates select="q-2/q-2-9"/>
				<xsl:call-template name="emptyRow"/>
				<xsl:call-template name="buildHeading3">
					<xsl:with-param name="heading">
						<xsl:value-of select="$labels/item[@id='q-2-10']"/>
					</xsl:with-param>
				</xsl:call-template>
				<xsl:call-template name="emptyRow"/>
				<xsl:apply-templates select="q-2/q-2-10"/>
				<xsl:call-template name="emptyRow"/>
				<xsl:apply-templates select="q-2/q-2-11"/>
				<xsl:call-template name="emptyRow"/>
				<xsl:call-template name="emptyRow"/>
				<xsl:call-template name="buildHeading2">
					<xsl:with-param name="heading">
						<xsl:value-of select="translate($labels/item[@id='q-3'],'abcdefghijklmnopqrstuvwxyz', 'ABCDEFGHIJKLMNOPQRSTUVWXYZ')"/>
					</xsl:with-param>
				</xsl:call-template>
				<xsl:call-template name="emptyRow"/>
				<xsl:apply-templates select="q-3/q-3-1"/>
				<xsl:call-template name="emptyRow"/>
				<xsl:call-template name="buildHeading3">
					<xsl:with-param name="heading">
						<xsl:value-of select="$labels/item[@id='q-3-1-1']"/>
					</xsl:with-param>
				</xsl:call-template>
				<xsl:call-template name="buildHeading3">
					<xsl:with-param name="heading">
						<xsl:value-of select="$labels/item[@id='q-3-1-1-p1']"/>
					</xsl:with-param>
				</xsl:call-template>
				<xsl:apply-templates select="q-3/q-3-1-table1"/>
				<xsl:call-template name="emptyRow"/>
				<xsl:call-template name="buildHeading3">
					<xsl:with-param name="heading">
						<xsl:value-of select="$labels/item[@id='q-3-1-2']"/>
					</xsl:with-param>
				</xsl:call-template>
				<xsl:call-template name="buildHeading3">
					<xsl:with-param name="heading">
						<xsl:value-of select="$labels/item[@id='q-3-1-2-p1']"/>
					</xsl:with-param>
				</xsl:call-template>
				<xsl:apply-templates select="q-3/q-3-1-table2"/>
				<xsl:call-template name="emptyRow"/>
				<xsl:call-template name="buildHeading3">
					<xsl:with-param name="heading">
						<xsl:value-of select="$labels/item[@id='q-3-1-3']"/>
					</xsl:with-param>
				</xsl:call-template>
				<xsl:call-template name="buildHeading3">
					<xsl:with-param name="heading">
						<xsl:value-of select="$labels/item[@id='q-3-1-3-p1']"/>
					</xsl:with-param>
				</xsl:call-template>
				<xsl:apply-templates select="q-3/q-3-1-table3"/>
				<xsl:call-template name="emptyRow"/>
				<xsl:call-template name="buildHeading3">
					<xsl:with-param name="heading">
						<xsl:value-of select="$labels/item[@id='q-3-2']"/>
					</xsl:with-param>
				</xsl:call-template>
				<xsl:call-template name="buildHeading3">
					<xsl:with-param name="heading">
						<xsl:value-of select="$labels/item[@id='q-3-2-p1']"/>
					</xsl:with-param>
				</xsl:call-template>
				<xsl:call-template name="buildHeading3">
					<xsl:with-param name="heading">
						<xsl:value-of select="$labels/item[@id='q-3-2-p2']"/>
					</xsl:with-param>
				</xsl:call-template>
				<xsl:apply-templates select="q-3/q-3-2-table"/>
				<xsl:call-template name="emptyRow"/>
				<xsl:apply-templates select="q-3/q-3-3"/>
				<xsl:call-template name="emptyRow"/>
				<xsl:call-template name="emptyRow"/>
				<xsl:call-template name="buildHeading2">
					<xsl:with-param name="heading">
						<xsl:value-of select="translate($labels/item[@id='q-4'],'abcdefghijklmnopqrstuvwxyz', 'ABCDEFGHIJKLMNOPQRSTUVWXYZ')"/>
					</xsl:with-param>
				</xsl:call-template>
				<xsl:call-template name="emptyRow"/>
				<xsl:apply-templates select="q-4/q-4-1"/>
				<xsl:call-template name="emptyRow"/>
				<xsl:apply-templates select="q-4/q-4-2"/>
				<xsl:call-template name="emptyRow"/>
				<xsl:call-template name="buildHeading3">
					<xsl:with-param name="heading">
						<xsl:value-of select="$labels/item[@id='q-4-3']"/>
					</xsl:with-param>
				</xsl:call-template>
				<xsl:apply-templates select="q-4/q-4-3-table"/>
				<xsl:call-template name="emptyRow"/>
				<xsl:call-template name="emptyRow"/>
				<xsl:call-template name="buildHeading2">
					<xsl:with-param name="heading">
						<xsl:value-of select="translate($labels/item[@id='q-5'],'abcdefghijklmnopqrstuvwxyz', 'ABCDEFGHIJKLMNOPQRSTUVWXYZ')"/>
					</xsl:with-param>
				</xsl:call-template>
				<xsl:call-template name="emptyRow"/>
				<xsl:apply-templates select="q-5/q-5-1"/>
				<xsl:call-template name="emptyRow"/>
				<xsl:call-template name="buildHeading3">
					<xsl:with-param name="heading">
						<xsl:value-of select="$labels/item[@id='q-5-2']"/>
					</xsl:with-param>
				</xsl:call-template>
				<xsl:apply-templates select="q-5/q-5-2/q-5-2-a | q-5/q-5-2/q-5-2-b | q-5/q-5-2/q-5-2-c"/>
				<xsl:call-template name="buildHeading3">
					<xsl:with-param name="heading">
						<xsl:value-of select="$labels/item[@id='q-5-2-d']"/>
					</xsl:with-param>
				</xsl:call-template>
				<xsl:apply-templates select="q-5/q-5-2/q-5-2-d/q-5-2-d-a | q-5/q-5-2/q-5-2-d/q-5-2-d-b"/>
				<xsl:call-template name="buildHeading3">
					<xsl:with-param name="heading">
						<xsl:value-of select="$labels/item[@id='q-5-2-e']"/>
					</xsl:with-param>
				</xsl:call-template>
				<xsl:call-template name="emptyRow"/>
				<xsl:apply-templates select="q-5/q-5-2/q-5-2-e/q-5-2-e-a | q-5/q-5-2/q-5-2-e/q-5-2-e-b"/>
				<xsl:call-template name="buildHeading3">
					<xsl:with-param name="heading">
						<xsl:value-of select="$labels/item[@id='q-5-2-f']"/>
					</xsl:with-param>
				</xsl:call-template>
				<xsl:apply-templates select="q-5/q-5-2/q-5-2-f-table"/>
				<xsl:call-template name="emptyRow"/>
				<xsl:call-template name="emptyRow"/>
				<xsl:call-template name="buildHeading2">
					<xsl:with-param name="heading">
						<xsl:value-of select="translate($labels/item[@id='q-6'],'abcdefghijklmnopqrstuvwxyz', 'ABCDEFGHIJKLMNOPQRSTUVWXYZ')"/>
					</xsl:with-param>
				</xsl:call-template>
				<xsl:call-template name="emptyRow"/>
				<xsl:apply-templates select="q-6/q-6-1/q-6-1-a | q-6/q-6-1/q-6-1-b"/>
				<xsl:call-template name="emptyRow"/>
				<xsl:apply-templates select="q-6/q-6-2"/>
			</body>
		</html>
	</xsl:template>
	<xsl:template match="*">
		<xsl:variable name="elem-name" select="local-name(.)"/>
		<xsl:call-template name="buildQuestion">
			<xsl:with-param name="q">
				<xsl:value-of select="$labels/item[@id=$elem-name]"/>
			</xsl:with-param>
		</xsl:call-template>
		<xsl:call-template name="buildAnswer">
			<xsl:with-param name="answer">
				<xsl:value-of select="."/>
			</xsl:with-param>
			<xsl:with-param name="yesno">
				<xsl:value-of select="$elem-name='q-2-1-a' or $elem-name='q-2-1-b' or $elem-name='q-5-1'"/>
			</xsl:with-param>
			<xsl:with-param name="checkbox">
				<xsl:value-of select="$elem-name='q-2-4-a' or $elem-name='q-2-4-b' or $elem-name='q-2-4-c' or $elem-name='q-2-4-d' or $elem-name='q-2-7-a' or $elem-name='q-2-7-b' or $elem-name='q-2-8-a' or $elem-name='q-2-8-b' or $elem-name='q-2-9-a' or $elem-name='q-2-9-b' or $elem-name='q-2-10-a' or $elem-name='q-2-10-b' or $elem-name='q-2-10-c' or $elem-name='q-2-10-d'"/>
			</xsl:with-param>
		</xsl:call-template>
	</xsl:template>
	<xsl:template match="q-1-1">
		<table id="metadata-table">
			<tr>
				<th>
					<xsl:value-of select="$labels/item[@id='q-1-1-a']"/>
				</th>
				<td class="answer">
					<xsl:call-template name="buildTDAnswer">
						<xsl:with-param name="answer">
							<xsl:value-of select="q-1-1-a"/>
						</xsl:with-param>
					</xsl:call-template>
				</td>
			</tr>
			<tr>
				<th>
					<xsl:value-of select="$labels/item[@id='q-1-1-b']"/>
				</th>
				<td class="answer">
					<xsl:call-template name="buildTDAnswer">
						<xsl:with-param name="answer">
							<xsl:value-of select="q-1-1-b"/>
						</xsl:with-param>
					</xsl:call-template>
				</td>
			</tr>
			<tr>
				<th>
					<xsl:value-of select="$labels/item[@id='q-1-1-c']"/>
				</th>
				<td class="answer">
					<xsl:call-template name="buildTDAnswer">
						<xsl:with-param name="answer">
							<xsl:value-of select="q-1-1-c"/>
						</xsl:with-param>
					</xsl:call-template>
				</td>
			</tr>
			<tr>
				<th>
					<xsl:value-of select="$labels/item[@id='q-1-1-d']"/>
				</th>
				<td class="answer">
					<xsl:call-template name="buildTDAnswer">
						<xsl:with-param name="answer">
							<xsl:value-of select="q-1-1-d"/>
						</xsl:with-param>
					</xsl:call-template>
				</td>
			</tr>
			<tr>
				<th>
					<xsl:value-of select="$labels/item[@id='q-1-1-e']"/>
				</th>
				<td class="answer">
					<xsl:call-template name="buildTDAnswer">
						<xsl:with-param name="answer">
							<xsl:value-of select="q-1-1-e"/>
						</xsl:with-param>
					</xsl:call-template>
				</td>
			</tr>
		</table>
	</xsl:template>
	<xsl:template match="q-2-3">
		<table id="metadata-table">
			<tr>
				<th>
					<xsl:value-of select="$labels/item[@id='q-2-3-a']"/>
				</th>
				<td class="answer">
					<xsl:call-template name="buildTDAnswer">
						<xsl:with-param name="answer">
							<xsl:value-of select="q-2-3-a"/>
						</xsl:with-param>
					</xsl:call-template>
				</td>
			</tr>
			<tr>
				<th>
					<xsl:value-of select="$labels/item[@id='q-2-3-b']"/>
				</th>
				<td class="answer">
					<xsl:call-template name="buildTDAnswer">
						<xsl:with-param name="answer">
							<xsl:value-of select="q-2-3-b"/>
						</xsl:with-param>
					</xsl:call-template>
				</td>
			</tr>
			<tr>
				<th>
					<xsl:value-of select="$labels/item[@id='q-2-3-c']"/>
				</th>
				<td class="answer">
					<xsl:call-template name="buildTDAnswer">
						<xsl:with-param name="answer">
							<xsl:value-of select="q-2-3-c"/>
						</xsl:with-param>
					</xsl:call-template>
				</td>
			</tr>
			<tr>
				<th>
					<xsl:value-of select="$labels/item[@id='q-2-3-d']"/>
				</th>
				<td class="answer">
					<xsl:call-template name="buildTDAnswer">
						<xsl:with-param name="answer">
							<xsl:value-of select="q-2-3-d"/>
						</xsl:with-param>
					</xsl:call-template>
				</td>
			</tr>
			<tr>
				<th>
					<xsl:value-of select="$labels/item[@id='q-2-3-e']"/>
				</th>
				<td class="answer">
					<xsl:call-template name="buildTDAnswer">
						<xsl:with-param name="answer">
							<xsl:value-of select="q-2-3-e"/>
						</xsl:with-param>
					</xsl:call-template>
				</td>
			</tr>
		</table>
	</xsl:template>
	<xsl:template match="q-2-4">
		<xsl:apply-templates select="q-2-4-a | q-2-4-b | q-2-4-c | q-2-4-d"/>
		<xsl:call-template name="buildQuestion">
			<xsl:with-param name="q">
				<xsl:value-of select="$labels/item[@id='q-2-4-e']"/>
			</xsl:with-param>
		</xsl:call-template>
		<xsl:call-template name="buildLiteralAnswer">
			<xsl:with-param name="answer">
				<xsl:value-of select="q-2-4-e-comments"/>
			</xsl:with-param>
		</xsl:call-template>
	</xsl:template>
	<xsl:template match="q-2-5">
		<xsl:call-template name="buildQuestion">
			<xsl:with-param name="q">
				<xsl:value-of select="$labels/item[@id='q-2-5']"/>
			</xsl:with-param>
		</xsl:call-template>
		<xsl:call-template name="buildLiteralAnswer">
			<xsl:with-param name="answer">
				<xsl:value-of select="concat(q-2-5-quantity,' ',q-2-5-units)"/>
			</xsl:with-param>
		</xsl:call-template>
	</xsl:template>
	<xsl:template match="q-2-7">
		<xsl:apply-templates select="q-2-7-a | q-2-7-b"/>
		<xsl:call-template name="buildQuestion">
			<xsl:with-param name="q">
				<xsl:value-of select="$labels/item[@id='q-2-7-c']"/>
			</xsl:with-param>
		</xsl:call-template>
		<xsl:call-template name="buildLiteralAnswer">
			<xsl:with-param name="answer">
				<xsl:value-of select="q-2-7-c-comments"/>
			</xsl:with-param>
		</xsl:call-template>
	</xsl:template>
	<xsl:template match="q-2-8">
		<xsl:apply-templates select="q-2-8-a | q-2-8-b"/>
		<xsl:call-template name="buildQuestion">
			<xsl:with-param name="q">
				<xsl:value-of select="$labels/item[@id='q-2-8-c']"/>
			</xsl:with-param>
		</xsl:call-template>
		<xsl:call-template name="buildLiteralAnswer">
			<xsl:with-param name="answer">
				<xsl:value-of select="q-2-8-c-comments"/>
			</xsl:with-param>
		</xsl:call-template>
	</xsl:template>
	<xsl:template match="q-2-9">
		<xsl:apply-templates select="q-2-9-a | q-2-9-b"/>
		<xsl:call-template name="buildQuestion">
			<xsl:with-param name="q">
				<xsl:value-of select="$labels/item[@id='q-2-9-c']"/>
			</xsl:with-param>
		</xsl:call-template>
		<xsl:call-template name="buildLiteralAnswer">
			<xsl:with-param name="answer">
				<xsl:value-of select="q-2-9-c-comments"/>
			</xsl:with-param>
		</xsl:call-template>
	</xsl:template>
	<xsl:template match="q-2-10">
		<xsl:apply-templates select="q-2-10-a | q-2-10-b | q-2-10-c | q-2-10-d"/>
		<xsl:call-template name="buildQuestion">
			<xsl:with-param name="q">
				<xsl:value-of select="$labels/item[@id='q-2-10-e']"/>
			</xsl:with-param>
		</xsl:call-template>
		<xsl:call-template name="buildLiteralAnswer">
			<xsl:with-param name="answer">
				<xsl:value-of select="q-2-10-e-comments"/>
			</xsl:with-param>
		</xsl:call-template>
	</xsl:template>
	<xsl:template match="q-3-1">
		<xsl:call-template name="buildHeading3">
			<xsl:with-param name="heading">
				<xsl:value-of select="$labels/item[@id='q-3-1']"/>
			</xsl:with-param>
		</xsl:call-template>
		<xsl:call-template name="buildHeading3">
			<xsl:with-param name="heading">
				<xsl:value-of select="$labels/item[@id='q-3-1-p1']"/>
			</xsl:with-param>
		</xsl:call-template>
		<xsl:call-template name="buildHeading3">
			<xsl:with-param name="heading">
				<xsl:value-of select="$labels/item[@id='q-3-1-p2']"/>
			</xsl:with-param>
		</xsl:call-template>
		<xsl:call-template name="buildQuestion">
			<xsl:with-param name="q">
				<xsl:value-of select="$labels/item[@id='q-3-1-p3']"/>
			</xsl:with-param>
		</xsl:call-template>
		<xsl:call-template name="buildAnswer">
			<xsl:with-param name="answer">
				<xsl:value-of select="."/>
			</xsl:with-param>
		</xsl:call-template>
	</xsl:template>
	<xsl:template match="q-3-1-table1">
		<table class="data-table">
			<thead>
				<tr>
					<th>
						<xsl:value-of select="$labels/item[@id='q-3-1-1-head1']"/>
					</th>
					<th>
						<xsl:value-of select="$labels/item[@id='q-3-1-1-head2']"/>
					</th>
					<th>
						<xsl:value-of select="$labels/item[@id='q-3-1-1-head3']"/>
					</th>
					<th>
						<xsl:value-of select="$labels/item[@id='q-3-1-1-head4']"/>
					</th>
					<th>
						<xsl:value-of select="$labels/item[@id='q-3-1-1-head5']"/>
					</th>
					<th>
						<xsl:value-of select="$labels/item[@id='q-3-1-1-head6']"/>
					</th>
				</tr>
			</thead>
			<tbody>
				<xsl:apply-templates select="q-3-1-table1-row1 | q-3-1-table1-row2 | q-3-1-table1-row3"/>
			</tbody>
		</table>
	</xsl:template>
	<xsl:template match="q-3-1-table1-row1">
		<tr>
			<td>
				<xsl:value-of select="$labels/item[@id='q-3-1-1-row1']"/>
			</td>
			<td class="answer">
				<xsl:call-template name="buildTDAnswer">
					<xsl:with-param name="answer">
						<xsl:value-of select="q-3-1-table1-row1-Manufacturers"/>
					</xsl:with-param>
				</xsl:call-template>
			</td>
			<td class="answer">
				<xsl:call-template name="buildTDAnswer">
					<xsl:with-param name="answer">
						<xsl:value-of select="q-3-1-table1-row1-Importers"/>
					</xsl:with-param>
				</xsl:call-template>
			</td>
			<td class="answer">
				<xsl:call-template name="buildTDAnswer">
					<xsl:with-param name="answer">
						<xsl:value-of select="q-3-1-table1-row1-Wholesalers"/>
					</xsl:with-param>
				</xsl:call-template>
			</td>
			<td class="answer">
				<xsl:call-template name="buildTDAnswer">
					<xsl:with-param name="answer">
						<xsl:value-of select="q-3-1-table1-row1-Retailers"/>
					</xsl:with-param>
				</xsl:call-template>
			</td>
			<td class="answer">
				<xsl:call-template name="buildTDAnswer">
					<xsl:with-param name="answer">
						<xsl:value-of select="q-3-1-table1-row1-Others"/>
					</xsl:with-param>
				</xsl:call-template>
			</td>
		</tr>
	</xsl:template>
	<xsl:template match="q-3-1-table1-row2">
		<tr>
			<td>
				<xsl:value-of select="$labels/item[@id='q-3-1-1-row2']"/>
			</td>
			<td class="answer">
				<xsl:call-template name="buildTDAnswer">
					<xsl:with-param name="answer">
						<xsl:value-of select="q-3-1-table1-row2-Manufacturers"/>
					</xsl:with-param>
				</xsl:call-template>
			</td>
			<td class="answer">
				<xsl:call-template name="buildTDAnswer">
					<xsl:with-param name="answer">
						<xsl:value-of select="q-3-1-table1-row2-Importers"/>
					</xsl:with-param>
				</xsl:call-template>
			</td>
			<td class="answer">
				<xsl:call-template name="buildTDAnswer">
					<xsl:with-param name="answer">
						<xsl:value-of select="q-3-1-table1-row2-Wholesalers"/>
					</xsl:with-param>
				</xsl:call-template>
			</td>
			<td class="answer">
				<xsl:call-template name="buildTDAnswer">
					<xsl:with-param name="answer">
						<xsl:value-of select="q-3-1-table1-row2-Retailers"/>
					</xsl:with-param>
				</xsl:call-template>
			</td>
			<td class="answer">
				<xsl:call-template name="buildTDAnswer">
					<xsl:with-param name="answer">
						<xsl:value-of select="q-3-1-table1-row2-Others"/>
					</xsl:with-param>
				</xsl:call-template>
			</td>
		</tr>
	</xsl:template>
	<xsl:template match="q-3-1-table1-row3">
		<tr>
			<td>
				<xsl:value-of select="$labels/item[@id='q-3-1-1-row3']"/>
			</td>
			<td class="answer">
				<xsl:call-template name="buildTDAnswer">
					<xsl:with-param name="answer">
						<xsl:value-of select="q-3-1-table1-row3-Manufacturers"/>
					</xsl:with-param>
				</xsl:call-template>
			</td>
			<td class="answer">
				<xsl:call-template name="buildTDAnswer">
					<xsl:with-param name="answer">
						<xsl:value-of select="q-3-1-table1-row3-Importers"/>
					</xsl:with-param>
				</xsl:call-template>
			</td>
			<td class="answer">
				<xsl:call-template name="buildTDAnswer">
					<xsl:with-param name="answer">
						<xsl:value-of select="q-3-1-table1-row3-Wholesalers"/>
					</xsl:with-param>
				</xsl:call-template>
			</td>
			<td class="answer">
				<xsl:call-template name="buildTDAnswer">
					<xsl:with-param name="answer">
						<xsl:value-of select="q-3-1-table1-row3-Retailers"/>
					</xsl:with-param>
				</xsl:call-template>
			</td>
			<td class="answer">
				<xsl:call-template name="buildTDAnswer">
					<xsl:with-param name="answer">
						<xsl:value-of select="q-3-1-table1-row3-Others"/>
					</xsl:with-param>
				</xsl:call-template>
			</td>
		</tr>
	</xsl:template>
	<xsl:template match="q-3-1-table2">
		<table class="data-table">
			<thead>
				<tr>
					<th>
						<xsl:value-of select="$labels/item[@id='q-3-1-2-head1']"/>
					</th>
					<th>
						<xsl:value-of select="$labels/item[@id='q-3-1-2-head2']"/>
					</th>
					<th>
						<xsl:value-of select="$labels/item[@id='q-3-1-2-head3']"/>
					</th>
					<th>
						<xsl:value-of select="$labels/item[@id='q-3-1-2-head4']"/>
					</th>
					<th>
						<xsl:value-of select="$labels/item[@id='q-3-1-2-head5']"/>
					</th>
					<th>
						<xsl:value-of select="$labels/item[@id='q-3-1-2-head6']"/>
					</th>
				</tr>
			</thead>
			<tbody>
				<xsl:apply-templates select="q-3-1-table2-row1 | q-3-1-table2-row2 | q-3-1-table2-row3 | q-3-1-table2-row4"/>
				<tr>
					<th colspan="6">
						<xsl:value-of select="$labels/item[@id='q-3-1-2-row5']"/>
					</th>
				</tr>
			</tbody>
		</table>
	</xsl:template>
	<xsl:template match="q-3-1-table2-row1">
		<tr>
			<td>
				<xsl:value-of select="$labels/item[@id='q-3-1-2-row1']"/>
			</td>
			<td class="answer">
				<xsl:call-template name="buildTDAnswer">
					<xsl:with-param name="answer">
						<xsl:value-of select="q-3-1-table2-row1-Manufacturers"/>
					</xsl:with-param>
				</xsl:call-template>
			</td>
			<td class="answer">
				<xsl:call-template name="buildTDAnswer">
					<xsl:with-param name="answer">
						<xsl:value-of select="q-3-1-table2-row1-Importers"/>
					</xsl:with-param>
				</xsl:call-template>
			</td>
			<td class="answer">
				<xsl:call-template name="buildTDAnswer">
					<xsl:with-param name="answer">
						<xsl:value-of select="q-3-1-table2-row1-Wholesalers"/>
					</xsl:with-param>
				</xsl:call-template>
			</td>
			<td class="answer">
				<xsl:call-template name="buildTDAnswer">
					<xsl:with-param name="answer">
						<xsl:value-of select="q-3-1-table2-row1-Retailers"/>
					</xsl:with-param>
				</xsl:call-template>
			</td>
			<td class="answer">
				<xsl:call-template name="buildTDAnswer">
					<xsl:with-param name="answer">
						<xsl:value-of select="q-3-1-table2-row1-Others"/>
					</xsl:with-param>
				</xsl:call-template>
			</td>
		</tr>
	</xsl:template>
	<xsl:template match="q-3-1-table2-row2">
		<tr>
			<td>
				<xsl:value-of select="$labels/item[@id='q-3-1-2-row2']"/>
			</td>
			<td class="answer">
				<xsl:call-template name="buildTDAnswer">
					<xsl:with-param name="answer">
						<xsl:value-of select="q-3-1-table2-row2-Manufacturers"/>
					</xsl:with-param>
				</xsl:call-template>
			</td>
			<td class="answer">
				<xsl:call-template name="buildTDAnswer">
					<xsl:with-param name="answer">
						<xsl:value-of select="q-3-1-table2-row2-Importers"/>
					</xsl:with-param>
				</xsl:call-template>
			</td>
			<td class="answer">
				<xsl:call-template name="buildTDAnswer">
					<xsl:with-param name="answer">
						<xsl:value-of select="q-3-1-table2-row2-Wholesalers"/>
					</xsl:with-param>
				</xsl:call-template>
			</td>
			<td class="answer">
				<xsl:call-template name="buildTDAnswer">
					<xsl:with-param name="answer">
						<xsl:value-of select="q-3-1-table2-row2-Retailers"/>
					</xsl:with-param>
				</xsl:call-template>
			</td>
			<td class="answer">
				<xsl:call-template name="buildTDAnswer">
					<xsl:with-param name="answer">
						<xsl:value-of select="q-3-1-table2-row2-Others"/>
					</xsl:with-param>
				</xsl:call-template>
			</td>
		</tr>
	</xsl:template>
	<xsl:template match="q-3-1-table2-row3">
		<tr>
			<td>
				<xsl:value-of select="$labels/item[@id='q-3-1-2-row3']"/>
			</td>
			<td class="answer">
				<xsl:call-template name="buildTDAnswer">
					<xsl:with-param name="answer">
						<xsl:value-of select="q-3-1-table2-row3-Manufacturers"/>
					</xsl:with-param>
				</xsl:call-template>
			</td>
			<td class="answer">
				<xsl:call-template name="buildTDAnswer">
					<xsl:with-param name="answer">
						<xsl:value-of select="q-3-1-table2-row3-Importers"/>
					</xsl:with-param>
				</xsl:call-template>
			</td>
			<td class="answer">
				<xsl:call-template name="buildTDAnswer">
					<xsl:with-param name="answer">
						<xsl:value-of select="q-3-1-table2-row3-Wholesalers"/>
					</xsl:with-param>
				</xsl:call-template>
			</td>
			<td class="answer">
				<xsl:call-template name="buildTDAnswer">
					<xsl:with-param name="answer">
						<xsl:value-of select="q-3-1-table2-row3-Retailers"/>
					</xsl:with-param>
				</xsl:call-template>
			</td>
			<td class="answer">
				<xsl:call-template name="buildTDAnswer">
					<xsl:with-param name="answer">
						<xsl:value-of select="q-3-1-table2-row3-Others"/>
					</xsl:with-param>
				</xsl:call-template>
			</td>
		</tr>
	</xsl:template>
	<xsl:template match="q-3-1-table2-row4">
		<tr>
			<td>
				<xsl:value-of select="$labels/item[@id='q-3-1-2-row4']"/>
			</td>
			<td class="answer">
				<xsl:call-template name="buildTDAnswer">
					<xsl:with-param name="answer">
						<xsl:value-of select="q-3-1-table2-row4-Manufacturers"/>
					</xsl:with-param>
				</xsl:call-template>
			</td>
			<td class="answer">
				<xsl:call-template name="buildTDAnswer">
					<xsl:with-param name="answer">
						<xsl:value-of select="q-3-1-table2-row4-Importers"/>
					</xsl:with-param>
				</xsl:call-template>
			</td>
			<td class="answer">
				<xsl:call-template name="buildTDAnswer">
					<xsl:with-param name="answer">
						<xsl:value-of select="q-3-1-table2-row4-Wholesalers"/>
					</xsl:with-param>
				</xsl:call-template>
			</td>
			<td class="answer">
				<xsl:call-template name="buildTDAnswer">
					<xsl:with-param name="answer">
						<xsl:value-of select="q-3-1-table2-row4-Retailers"/>
					</xsl:with-param>
				</xsl:call-template>
			</td>
			<td class="answer">
				<xsl:call-template name="buildTDAnswer">
					<xsl:with-param name="answer">
						<xsl:value-of select="q-3-1-table2-row4-Others"/>
					</xsl:with-param>
				</xsl:call-template>
			</td>
		</tr>
	</xsl:template>
	<xsl:template match="q-3-1-table3">
		<table class="data-table">
			<thead>
				<tr>
					<th>
						<xsl:value-of select="$labels/item[@id='q-3-1-3-head1']"/>
					</th>
					<th>
						<xsl:value-of select="$labels/item[@id='q-3-1-3-head2']"/>
					</th>
					<th>
						<xsl:value-of select="$labels/item[@id='q-3-1-3-head3']"/>
					</th>
					<th>
						<xsl:value-of select="$labels/item[@id='q-3-1-3-head4']"/>
					</th>
					<th>
						<xsl:value-of select="$labels/item[@id='q-3-1-3-head5']"/>
					</th>
					<th>
						<xsl:value-of select="$labels/item[@id='q-3-1-3-head6']"/>
					</th>
				</tr>
			</thead>
			<tbody>
				<xsl:apply-templates select="q-3-1-table3-row1 | q-3-1-table3-row2 | q-3-1-table3-row3"/>
			</tbody>
		</table>
	</xsl:template>
	<xsl:template match="q-3-1-table3-row1">
		<tr>
			<td>
				<xsl:value-of select="$labels/item[@id='q-3-1-3-row1']"/>
			</td>
			<td class="answer">
				<xsl:call-template name="buildTDAnswer">
					<xsl:with-param name="answer">
						<xsl:value-of select="q-3-1-table3-row1-Manufacturers"/>
					</xsl:with-param>
				</xsl:call-template>
			</td>
			<td class="answer">
				<xsl:call-template name="buildTDAnswer">
					<xsl:with-param name="answer">
						<xsl:value-of select="q-3-1-table3-row1-Importers"/>
					</xsl:with-param>
				</xsl:call-template>
			</td>
			<td class="answer">
				<xsl:call-template name="buildTDAnswer">
					<xsl:with-param name="answer">
						<xsl:value-of select="q-3-1-table3-row1-Wholesalers"/>
					</xsl:with-param>
				</xsl:call-template>
			</td>
			<td class="answer">
				<xsl:call-template name="buildTDAnswer">
					<xsl:with-param name="answer">
						<xsl:value-of select="q-3-1-table3-row1-Retailers"/>
					</xsl:with-param>
				</xsl:call-template>
			</td>
			<td class="answer">
				<xsl:call-template name="buildTDAnswer">
					<xsl:with-param name="answer">
						<xsl:value-of select="q-3-1-table3-row1-Others"/>
					</xsl:with-param>
				</xsl:call-template>
			</td>
		</tr>
	</xsl:template>
	<xsl:template match="q-3-1-table3-row2">
		<tr>
			<td>
				<xsl:value-of select="$labels/item[@id='q-3-1-3-row2']"/>
			</td>
			<td class="answer">
				<xsl:call-template name="buildTDAnswer">
					<xsl:with-param name="answer">
						<xsl:value-of select="q-3-1-table3-row2-Manufacturers"/>
					</xsl:with-param>
				</xsl:call-template>
			</td>
			<td class="answer">
				<xsl:call-template name="buildTDAnswer">
					<xsl:with-param name="answer">
						<xsl:value-of select="q-3-1-table3-row2-Importers"/>
					</xsl:with-param>
				</xsl:call-template>
			</td>
			<td class="answer">
				<xsl:call-template name="buildTDAnswer">
					<xsl:with-param name="answer">
						<xsl:value-of select="q-3-1-table3-row2-Wholesalers"/>
					</xsl:with-param>
				</xsl:call-template>
			</td>
			<td class="answer">
				<xsl:call-template name="buildTDAnswer">
					<xsl:with-param name="answer">
						<xsl:value-of select="q-3-1-table3-row2-Retailers"/>
					</xsl:with-param>
				</xsl:call-template>
			</td>
			<td class="answer">
				<xsl:call-template name="buildTDAnswer">
					<xsl:with-param name="answer">
						<xsl:value-of select="q-3-1-table3-row2-Others"/>
					</xsl:with-param>
				</xsl:call-template>
			</td>
		</tr>
	</xsl:template>
	<xsl:template match="q-3-1-table3-row3">
		<tr>
			<td>
				<xsl:value-of select="$labels/item[@id='q-3-1-3-row3']"/>
			</td>
			<td class="answer">
				<xsl:call-template name="buildTDAnswer">
					<xsl:with-param name="answer">
						<xsl:value-of select="q-3-1-table3-row3-Manufacturers"/>
					</xsl:with-param>
				</xsl:call-template>
			</td>
			<td class="answer">
				<xsl:call-template name="buildTDAnswer">
					<xsl:with-param name="answer">
						<xsl:value-of select="q-3-1-table3-row3-Importers"/>
					</xsl:with-param>
				</xsl:call-template>
			</td>
			<td class="answer">
				<xsl:call-template name="buildTDAnswer">
					<xsl:with-param name="answer">
						<xsl:value-of select="q-3-1-table3-row3-Wholesalers"/>
					</xsl:with-param>
				</xsl:call-template>
			</td>
			<td class="answer">
				<xsl:call-template name="buildTDAnswer">
					<xsl:with-param name="answer">
						<xsl:value-of select="q-3-1-table3-row3-Retailers"/>
					</xsl:with-param>
				</xsl:call-template>
			</td>
			<td class="answer">
				<xsl:call-template name="buildTDAnswer">
					<xsl:with-param name="answer">
						<xsl:value-of select="q-3-1-table3-row3-Others"/>
					</xsl:with-param>
				</xsl:call-template>
			</td>
		</tr>
	</xsl:template>
	<xsl:template match="q-3-2-table">
		<table class="data-table">
			<thead>
				<tr>
					<th/>
					<th>
						<xsl:value-of select="$labels/item[@id='q-3-2-head1']"/>
					</th>
					<th>
						<xsl:value-of select="$labels/item[@id='q-3-2-head2']"/>
					</th>
				</tr>
			</thead>
			<tbody>
				<xsl:apply-templates select="q-3-2-table-row1 | q-3-2-table-row2 | q-3-2-table-row3 | q-3-2-table-row4 | q-3-2-table-row5"/>
			</tbody>
		</table>
	</xsl:template>
	<xsl:template match="q-3-2-table-row1">
		<tr>
			<th>
				<xsl:text>1</xsl:text>
			</th>
			<td class="answer">
				<xsl:call-template name="buildTDAnswer">
					<xsl:with-param name="answer">
						<xsl:value-of select="q-3-2-table-row1-col1"/>
					</xsl:with-param>
				</xsl:call-template>
			</td>
			<td class="answer">
				<xsl:call-template name="buildTDAnswer">
					<xsl:with-param name="answer">
						<xsl:value-of select="q-3-2-table-row1-col2"/>
					</xsl:with-param>
				</xsl:call-template>
			</td>
		</tr>
	</xsl:template>
	<xsl:template match="q-3-2-table-row2">
		<tr>
			<th>
				<xsl:text>2</xsl:text>
			</th>
			<td class="answer">
				<xsl:call-template name="buildTDAnswer">
					<xsl:with-param name="answer">
						<xsl:value-of select="q-3-2-table-row2-col1"/>
					</xsl:with-param>
				</xsl:call-template>
			</td>
			<td class="answer">
				<xsl:call-template name="buildTDAnswer">
					<xsl:with-param name="answer">
						<xsl:value-of select="q-3-2-table-row2-col2"/>
					</xsl:with-param>
				</xsl:call-template>
			</td>
		</tr>
	</xsl:template>
	<xsl:template match="q-3-2-table-row3">
		<tr>
			<th>
				<xsl:text>3</xsl:text>
			</th>
			<td class="answer">
				<xsl:call-template name="buildTDAnswer">
					<xsl:with-param name="answer">
						<xsl:value-of select="q-3-2-table-row3-col1"/>
					</xsl:with-param>
				</xsl:call-template>
			</td>
			<td class="answer">
				<xsl:call-template name="buildTDAnswer">
					<xsl:with-param name="answer">
						<xsl:value-of select="q-3-2-table-row3-col2"/>
					</xsl:with-param>
				</xsl:call-template>
			</td>
		</tr>
	</xsl:template>
	<xsl:template match="q-3-2-table-row4">
		<tr>
			<th>
				<xsl:text>4</xsl:text>
			</th>
			<td class="answer">
				<xsl:call-template name="buildTDAnswer">
					<xsl:with-param name="answer">
						<xsl:value-of select="q-3-2-table-row4-col1"/>
					</xsl:with-param>
				</xsl:call-template>
			</td>
			<td class="answer">
				<xsl:call-template name="buildTDAnswer">
					<xsl:with-param name="answer">
						<xsl:value-of select="q-3-2-table-row4-col2"/>
					</xsl:with-param>
				</xsl:call-template>
			</td>
		</tr>
	</xsl:template>
	<xsl:template match="q-3-2-table-row5">
		<tr>
			<th>
				<xsl:text>5</xsl:text>
			</th>
			<td class="answer">
				<xsl:call-template name="buildTDAnswer">
					<xsl:with-param name="answer">
						<xsl:value-of select="q-3-2-table-row5-col1"/>
					</xsl:with-param>
				</xsl:call-template>
			</td>
			<td class="answer">
				<xsl:call-template name="buildTDAnswer">
					<xsl:with-param name="answer">
						<xsl:value-of select="q-3-2-table-row5-col2"/>
					</xsl:with-param>
				</xsl:call-template>
			</td>
		</tr>
	</xsl:template>
	<xsl:template match="q-4-3-table">
		<table class="data-table">
			<thead>
				<tr>
					<th>
						<xsl:value-of select="$labels/item[@id='q-4-3-head1']"/>
					</th>
					<th>
						<xsl:value-of select="$labels/item[@id='q-4-3-head2']"/>
					</th>
					<th>
						<xsl:value-of select="$labels/item[@id='q-4-3-head3']"/>
					</th>
				</tr>
			</thead>
			<tbody>
				<xsl:apply-templates/>
			</tbody>
		</table>
	</xsl:template>
	<xsl:template match="q-4-3-table-row">
		<tr>
			<td class="answer">
				<xsl:call-template name="buildTDAnswer">
					<xsl:with-param name="answer">
						<xsl:value-of select="q-4-3-table-row-categ"/>
					</xsl:with-param>
				</xsl:call-template>
			</td>
			<td class="answer">
				<xsl:call-template name="buildTDAnswer">
					<xsl:with-param name="answer">
						<xsl:value-of select="q-4-3-table-row-quant"/>
					</xsl:with-param>
				</xsl:call-template>
			</td>
			<td class="answer">
				<xsl:call-template name="buildTDAnswer">
					<xsl:with-param name="answer">
						<xsl:value-of select="q-4-3-table-row-units"/>
					</xsl:with-param>
				</xsl:call-template>
			</td>
		</tr>
	</xsl:template>
	<xsl:template match="q-5-2-f-table">
		<table class="data-table">
			<thead>
				<tr>
					<th>
						<xsl:value-of select="$labels/item[@id='q-5-2-f-head1']"/>
					</th>
					<th>
						<xsl:value-of select="$labels/item[@id='q-5-2-f-head2']"/>
					</th>
					<th>
						<xsl:value-of select="$labels/item[@id='q-5-2-f-head3']"/>
					</th>
					<th>
						<xsl:value-of select="$labels/item[@id='q-5-2-f-head4']"/>
					</th>
				</tr>
			</thead>
			<tbody>
				<xsl:apply-templates/>
			</tbody>
		</table>
	</xsl:template>
	<xsl:template match="q-5-2-f-table-row">
		<tr>
			<td class="answer">
				<xsl:call-template name="buildTDAnswer">
					<xsl:with-param name="answer">
						<xsl:value-of select="q-5-2-f-table-row-prod"/>
					</xsl:with-param>
				</xsl:call-template>
			</td>
			<td class="answer">
				<xsl:call-template name="buildTDAnswer">
					<xsl:with-param name="answer">
						<xsl:value-of select="q-5-2-f-table-row-categ"/>
					</xsl:with-param>
				</xsl:call-template>
			</td>
			<td class="answer">
				<xsl:call-template name="buildTDAnswer">
					<xsl:with-param name="answer">
						<xsl:value-of select="q-5-2-f-table-row-quant"/>
					</xsl:with-param>
				</xsl:call-template>
			</td>
			<td class="answer">
				<xsl:call-template name="buildTDAnswer">
					<xsl:with-param name="answer">
						<xsl:value-of select="q-5-2-f-table-row-units"/>
					</xsl:with-param>
				</xsl:call-template>
			</td>
		</tr>
	</xsl:template>
	<xsl:template name="buildHeading2">
		<xsl:param name="heading" select="''"/>
		<h2>
			<xsl:value-of select="$heading"/>
		</h2>
	</xsl:template>
	<xsl:template name="buildHeading3">
		<xsl:param name="heading" select="''"/>
		<label>
			<xsl:value-of select="$heading"/>
		</label>
	</xsl:template>
	<xsl:template name="buildQuestion">
		<xsl:param name="q" select="''"/>
		<label>
			<xsl:value-of select="$q"/>
		</label>
	</xsl:template>
	<xsl:template name="buildLiteralAnswer">
		<xsl:param name="answer" select="''"/>
		<div class="answer">
			<xsl:choose>
				<xsl:when test="string-length($answer)=0">
						[Not Answered]
					</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="$answer"/>
				</xsl:otherwise>
			</xsl:choose>
		</div>
	</xsl:template>
	<xsl:template name="buildTDAnswer">
		<xsl:param name="answer" select="''"/>
		<div class="answer">
			<xsl:choose>
				<xsl:when test="string-length($answer)=0">
				-
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="$answer"/>
				</xsl:otherwise>
			</xsl:choose>
		</div>
	</xsl:template>
	<xsl:template name="buildAnswer">
		<xsl:param name="answer" select="''"/>
		<xsl:param name="yesno" select="'false'"/>
		<xsl:param name="checkbox" select="'false'"/>
		<div class="answer">
			<xsl:choose>
				<xsl:when test="$yesno='true'">
					<xsl:call-template name="YesNoUnknown">
						<xsl:with-param name="Param" select="$answer"/>
					</xsl:call-template>
				</xsl:when>
				<xsl:when test="$checkbox='true'">
					<xsl:call-template name="Checkbox">
						<xsl:with-param name="Param" select="$answer"/>
					</xsl:call-template>
				</xsl:when>
				<xsl:otherwise>
					<xsl:choose>
						<xsl:when test="string-length($answer)=0">
									[Not Answered]
								</xsl:when>
						<xsl:otherwise>
							<xsl:value-of select="$answer"/>
						</xsl:otherwise>
					</xsl:choose>
				</xsl:otherwise>
			</xsl:choose>
		</div>
	</xsl:template>
	<!-- YesNoUnknown implementation -->
	<xsl:template name="YesNoUnknown">
		<xsl:param name="Param"/>
		<xsl:choose>
			<xsl:when test="$Param = '1' or $Param = 'true'">Yes</xsl:when>
			<xsl:when test="$Param = '0' or $Param = 'false'">No</xsl:when>
			<xsl:otherwise>
				[Not answered]
			</xsl:otherwise>
		</xsl:choose>
	</xsl:template>
	<xsl:template name="Checkbox">
		<xsl:param name="Param"/>
		<xsl:choose>
			<xsl:when test="$Param = '1' or $Param = 'true'">Yes</xsl:when>
			<xsl:when test="$Param = '0' or $Param = 'false'">-</xsl:when>
			<xsl:otherwise>
				-
			</xsl:otherwise>
		</xsl:choose>
	</xsl:template>
	<xsl:template name="metadata">
		<table id="metadata-table">
			<tr>
				<th>Reporting language</th>
				<td class="answer">
					<xsl:call-template name="buildTDAnswer">
						<xsl:with-param name="answer">
							<xsl:value-of select="@xml:lang"/>
						</xsl:with-param>
					</xsl:call-template>
				</td>
			</tr>
		</table>
	</xsl:template>
	<xsl:template name="emptyRow">
		<br/>
		<br/>
	</xsl:template>
</xsl:stylesheet>