View stylesheet

XML schemas http://acm.eionet.europa.eu/schemas/dir199913ec/schema199913.xsd
Output type HTML
Description HTML page
XSL file dir199913_2011_html.xsl (Last modified: 30 Aug 2011 17:41 )
<?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,'dir199913_2011_labels.xml'))/labels"/>
	<!-- LOCAL 
	<xsl:variable name="labels_doc" select="document('dir200442_labels.xml')/labels"/>
	-->
	<xsl:variable name="labels" select="$labels_doc/itemset[@id='199913' 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="buildQuestion">
					<xsl:with-param name="q">
						<xsl:value-of select="$labels/item[@id='q-1-1']"/>
					</xsl:with-param>
				</xsl:call-template>

				<xsl:call-template name="buildLiteralAnswer">
					<xsl:with-param name="answer">
						<xsl:value-of select="q-1"/>
					</xsl:with-param>
				</xsl:call-template>
				
				<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="buildQuestion">
					<xsl:with-param name="q">
						<xsl:value-of select="$labels/item[@id='q-2-1']"/>
					</xsl:with-param>
				</xsl:call-template>				

				<xsl:call-template name="emptyRow"/>											

				<xsl:call-template name="buildQuestion">
					<xsl:with-param name="q">
						<xsl:value-of select="$labels/item[@id='q-2-1-a']"/>
					</xsl:with-param>
				</xsl:call-template>				

				<br></br>
				
				<xsl:call-template name="buildQuestion">
					<xsl:with-param name="q">
						<xsl:value-of select="$labels/item[@id='q-2-1-b']"/>
					</xsl:with-param>
				</xsl:call-template>				
				
				<br></br>
				
				<xsl:call-template name="buildQuestion">
					<xsl:with-param name="q">
						<xsl:value-of select="$labels/item[@id='q-2-1-c']"/>
					</xsl:with-param>
				</xsl:call-template>				
				
				<br></br>
				
				<xsl:call-template name="buildQuestion">
					<xsl:with-param name="q">
						<xsl:value-of select="$labels/item[@id='q-2-1-d']"/>
					</xsl:with-param>
				</xsl:call-template>																				
				
				<xsl:call-template name="emptyRow"/>											
			
				<xsl:apply-templates select="q-2/q-2-1/q-2-1-t1"/>

				<xsl:call-template name="emptyRow"/>
		

				<xsl:call-template name="buildQuestion">
					<xsl:with-param name="q">
						<xsl:value-of select="$labels/item[@id='q-2-1-a']"/>
					</xsl:with-param>
				</xsl:call-template>				

				<br></br>
				
				<xsl:call-template name="buildQuestion">
					<xsl:with-param name="q">
						<xsl:value-of select="$labels/item[@id='q-2-1-b']"/>
					</xsl:with-param>
				</xsl:call-template>				
				
				<br></br>
				
				<xsl:call-template name="buildQuestion">
					<xsl:with-param name="q">
						<xsl:value-of select="$labels/item[@id='q-2-1-c']"/>
					</xsl:with-param>
				</xsl:call-template>				
				
				<br></br>
				
				<xsl:call-template name="buildQuestion">
					<xsl:with-param name="q">
						<xsl:value-of select="$labels/item[@id='q-2-1-d']"/>
					</xsl:with-param>
				</xsl:call-template>						

				<xsl:call-template name="emptyRow"/>											

				<xsl:apply-templates select="q-2/q-2-1/q-2-1-t2"/>				

				<xsl:call-template name="emptyRow"/>

				<xsl:call-template name="buildQuestion">
					<xsl:with-param name="q">
						<xsl:value-of select="$labels/item[@id='q-2-1-1']"/>
					</xsl:with-param>
				</xsl:call-template>						
				
				<xsl:call-template name="emptyRow"/>											

				<xsl:apply-templates select="q-2/q-2-1/q-2-1-1/q-2-1-1-t"/>								

				<xsl:call-template name="emptyRow"/>				
				
				<xsl:call-template name="buildQuestion">
					<xsl:with-param name="q">
						<xsl:value-of select="$labels/item[@id='q-2-1-1-mid']"/>
					</xsl:with-param>
				</xsl:call-template>						
				
				<xsl:call-template name="emptyRow"/>												
				
				<xsl:call-template name="buildQuestion">
					<xsl:with-param name="q">
						<xsl:value-of select="$labels/item[@id='q-2-1-1-a']"/>
					</xsl:with-param>
				</xsl:call-template>						
				
				<xsl:call-template name="emptyRow"/>					
				
				<xsl:apply-templates select="q-2/q-2-1/q-2-1-1/q-2-1-1-a-t"/>												
				
				<xsl:call-template name="emptyRow"/>									
				
				<xsl:call-template name="buildQuestion">
					<xsl:with-param name="q">
						<xsl:value-of select="$labels/item[@id='q-2-1-1-b']"/>
					</xsl:with-param>
				</xsl:call-template>						
				
				<xsl:call-template name="emptyRow"/>		
				
				<xsl:call-template name="buildLiteralAnswer">
					<xsl:with-param name="answer">
						<xsl:value-of select="q-2/q-2-1/q-2-1-1/q-2-1-1-b"/>
					</xsl:with-param>
				</xsl:call-template>			
									
				<xsl:call-template name="emptyRow"/>

				<xsl:call-template name="buildQuestion">
					<xsl:with-param name="q">
						<xsl:value-of select="$labels/item[@id='q-2-1-2']"/>
					</xsl:with-param>
				</xsl:call-template>						
				
				<xsl:call-template name="emptyRow"/>											

				<xsl:apply-templates select="q-2/q-2-1/q-2-1-2/q-2-1-2-t"/>								

				<xsl:call-template name="emptyRow"/>				
				
				<xsl:call-template name="buildQuestion">
					<xsl:with-param name="q">
						<xsl:value-of select="$labels/item[@id='q-2-1-2-mid']"/>
					</xsl:with-param>
				</xsl:call-template>						
				
				<xsl:call-template name="emptyRow"/>												
				
				<xsl:call-template name="buildQuestion">
					<xsl:with-param name="q">
						<xsl:value-of select="$labels/item[@id='q-2-1-2-a']"/>
					</xsl:with-param>
				</xsl:call-template>						
				
				<xsl:call-template name="emptyRow"/>					
				
				<xsl:apply-templates select="q-2/q-2-1/q-2-1-2/q-2-1-2-a-t"/>												
				
				<xsl:call-template name="emptyRow"/>									
				
				<xsl:call-template name="buildQuestion">
					<xsl:with-param name="q">
						<xsl:value-of select="$labels/item[@id='q-2-1-2-b']"/>
					</xsl:with-param>
				</xsl:call-template>						
				
				<xsl:call-template name="emptyRow"/>		
				
				<xsl:call-template name="buildLiteralAnswer">
					<xsl:with-param name="answer">
						<xsl:value-of select="q-2/q-2-1/q-2-1-1/q-2-1-2-b"/>
					</xsl:with-param>
				</xsl:call-template>							

				<xsl:call-template name="emptyRow"/>		
				
				<xsl:call-template name="buildQuestion">
					<xsl:with-param name="q">
						<xsl:value-of select="$labels/item[@id='q-2-2']"/>
					</xsl:with-param>
				</xsl:call-template>			
				
				<xsl:call-template name="emptyRow"/>						
				
				<xsl:apply-templates select="q-2/q-2-2"/>																							

				<xsl:call-template name="emptyRow"/>		
				
				<xsl:call-template name="buildQuestion">
					<xsl:with-param name="q">
						<xsl:value-of select="$labels/item[@id='q-3']"/>
					</xsl:with-param>
				</xsl:call-template>			
				
				<br></br>
				
				<xsl:call-template name="buildQuestion">
					<xsl:with-param name="q">
						<xsl:value-of select="$labels/item[@id='q-3-a']"/>
					</xsl:with-param>
				</xsl:call-template>							
				
				<xsl:call-template name="emptyRow"/>						
				
				<xsl:apply-templates select="q-3"/>	
				
				<xsl:call-template name="emptyRow"/>		
				
				<xsl:call-template name="buildQuestion">
					<xsl:with-param name="q">
						<xsl:value-of select="$labels/item[@id='q-4']"/>
					</xsl:with-param>
				</xsl:call-template>			
				
				<br></br>
				
				<xsl:call-template name="buildQuestion">
					<xsl:with-param name="q">
						<xsl:value-of select="$labels/item[@id='q-4-a']"/>
					</xsl:with-param>
				</xsl:call-template>							
				
				<xsl:call-template name="emptyRow"/>						
				
				<xsl:apply-templates select="q-4"/>					

				<xsl:call-template name="emptyRow"/>	
				
				<xsl:call-template name="buildQuestion">
					<xsl:with-param name="q">
						<xsl:value-of select="$labels/item[@id='q-5']"/>
					</xsl:with-param>
				</xsl:call-template>			
				
				<br></br>																	

				<xsl:call-template name="buildQuestion">
					<xsl:with-param name="q">
						<xsl:value-of select="$labels/item[@id='q-5-a']"/>
					</xsl:with-param>
				</xsl:call-template>			
				
				<xsl:call-template name="emptyRow"/>	
				
				<xsl:call-template name="buildQuestion">
					<xsl:with-param name="q">
						<xsl:value-of select="$labels/item[@id='q-5-b']"/>
					</xsl:with-param>
				</xsl:call-template>			
				
				<xsl:call-template name="emptyRow"/>					
				
				<xsl:apply-templates select="q-5/q-5-t1"/>					
				
				<xsl:call-template name="emptyRow"/>									
				
				<xsl:call-template name="buildQuestion">
					<xsl:with-param name="q">
						<xsl:value-of select="$labels/item[@id='q-5-c']"/>
					</xsl:with-param>
				</xsl:call-template>							
				
				<xsl:call-template name="emptyRow"/>																		
				
				<xsl:apply-templates select="q-5/q-5-t2"/>								
				
				<xsl:call-template name="emptyRow"/>														

				<xsl:call-template name="buildQuestion">
					<xsl:with-param name="q">
						<xsl:value-of select="$labels/item[@id='q-6']"/>
					</xsl:with-param>
				</xsl:call-template>							

				<xsl:call-template name="emptyRow"/>														

				<xsl:call-template name="buildQuestion">
					<xsl:with-param name="q">
						<xsl:value-of select="$labels/item[@id='q-6-1']"/>
					</xsl:with-param>
				</xsl:call-template>

				<xsl:call-template name="emptyRow"/>																		
																
				<table border="0">
				<tr>
				<td>
					<xsl:call-template name="buildLiteralAnswer">
						<xsl:with-param name="answer">
							<xsl:value-of select="q-6/q-6-1/q-6-1-a"/>
						</xsl:with-param>
					</xsl:call-template>
				</td>
				<td>
					<xsl:value-of select="$labels/item[@id='q-6-1-a']"/>
				</td>
				</tr>
				<tr>
				<td>
					<xsl:call-template name="buildLiteralAnswer">
						<xsl:with-param name="answer">
							<xsl:value-of select="q-6/q-6-1/q-6-1-b"/>
						</xsl:with-param>
					</xsl:call-template>
				</td>
				<td>
					<xsl:value-of select="$labels/item[@id='q-6-1-b']"/>
				</td>
				</tr>				
				</table>
				
				<xsl:call-template name="emptyRow"/>									
				
				<xsl:call-template name="buildQuestion">
					<xsl:with-param name="q">
						<xsl:value-of select="$labels/item[@id='q-6-2']"/>
					</xsl:with-param>
				</xsl:call-template>							
				
				<xsl:call-template name="emptyRow"/>																		
				
				<xsl:apply-templates select="q-6/q-6-2"/>										
				
				<xsl:call-template name="emptyRow"/>																						
				
				<xsl:call-template name="buildQuestion">
					<xsl:with-param name="q">
						<xsl:value-of select="$labels/item[@id='q-7']"/>
					</xsl:with-param>
				</xsl:call-template>											
				
				<xsl:call-template name="emptyRow"/>	
				
				<xsl:call-template name="buildQuestion">
					<xsl:with-param name="q">
						<xsl:value-of select="$labels/item[@id='q-7-1']"/>
					</xsl:with-param>
				</xsl:call-template>																																					

				<xsl:call-template name="emptyRow"/>	

				<table border="0">
				<tr>
				<td align="right">
					<xsl:value-of select="$labels/item[@id='q-7-1-a']"/>:
				</td>
				<td align="left">
					<xsl:call-template name="buildLiteralAnswer">
						<xsl:with-param name="answer">
							<xsl:value-of select="q-7/q-7-1/q-7-1-a"/>
						</xsl:with-param>
					</xsl:call-template>
				</td>				
				</tr>
				<tr>
				<td align="right">
					<xsl:value-of select="$labels/item[@id='q-7-1-b']"/>:
				</td>
				<td align="left">
					<xsl:call-template name="buildLiteralAnswer">
						<xsl:with-param name="answer">
							<xsl:value-of select="q-7/q-7-1/q-7-1-b"/>
						</xsl:with-param>
					</xsl:call-template>
				</td>				
				</tr>				
				</table>
				
				<xsl:call-template name="emptyRow"/>	
				
				<xsl:call-template name="buildQuestion">
					<xsl:with-param name="q">
						<xsl:value-of select="$labels/item[@id='q-7-2']"/>
					</xsl:with-param>
				</xsl:call-template>																																					

				<xsl:call-template name="emptyRow"/>	

				<table border="0">
				<tr>
				<td align="right">
					<xsl:call-template name="buildLiteralAnswer">
						<xsl:with-param name="answer">
							<xsl:value-of select="q-7/q-7-2/q-7-2-a"/>
						</xsl:with-param>
					</xsl:call-template>
				</td>
				<td align="left">
					<xsl:value-of select="$labels/item[@id='q-7-2-a']"/>
				</td>				
				</tr>
				<tr>
				<td align="right">
					<xsl:call-template name="buildLiteralAnswer">
						<xsl:with-param name="answer">
							<xsl:value-of select="q-7/q-7-2/q-7-2-b"/>
						</xsl:with-param>
					</xsl:call-template>
				</td>
				<td align="left">
					<xsl:value-of select="$labels/item[@id='q-7-2-b']"/>
				</td>				
				</tr>				
				</table>		
				
				<xsl:call-template name="emptyRow"/>	
				
				<xsl:call-template name="buildQuestion">
					<xsl:with-param name="q">
						<xsl:value-of select="$labels/item[@id='q-8']"/>
					</xsl:with-param>
				</xsl:call-template>								
				
				<xsl:call-template name="emptyRow"/>	

				<xsl:call-template name="buildQuestion">
					<xsl:with-param name="q">
						<xsl:value-of select="$labels/item[@id='q-8-a']"/>
					</xsl:with-param>
				</xsl:call-template>	
				
				<xsl:call-template name="emptyRow"/>	
				
				<xsl:call-template name="buildLiteralAnswer">
					<xsl:with-param name="answer">
						<xsl:value-of select="q-8"/>
					</xsl:with-param>
				</xsl:call-template>																					
				
				<xsl:call-template name="emptyRow"/>	
				
				<xsl:call-template name="buildQuestion">
					<xsl:with-param name="q">
						<xsl:value-of select="$labels/item[@id='q-9']"/>
					</xsl:with-param>
				</xsl:call-template>								
				
				<xsl:call-template name="emptyRow"/>	

				<xsl:call-template name="buildQuestion">
					<xsl:with-param name="q">
						<xsl:value-of select="$labels/item[@id='q-9-a']"/>
					</xsl:with-param>
				</xsl:call-template>	
				
				<xsl:call-template name="emptyRow"/>	
				
				<xsl:call-template name="buildLiteralAnswer">
					<xsl:with-param name="answer">
						<xsl:value-of select="q-9/q-9-a"/>
					</xsl:with-param>
				</xsl:call-template>												
				
				<xsl:call-template name="emptyRow"/>	

				<xsl:call-template name="buildQuestion">
					<xsl:with-param name="q">
						<xsl:value-of select="$labels/item[@id='q-9-b']"/>
					</xsl:with-param>
				</xsl:call-template>	
				
				<xsl:call-template name="emptyRow"/>	
				
				<xsl:call-template name="buildLiteralAnswer">
					<xsl:with-param name="answer">
						<xsl:value-of select="q-9/q-9-b"/>
					</xsl:with-param>
				</xsl:call-template>												
				
				<xsl:call-template name="emptyRow"/>	

				<xsl:call-template name="buildQuestion">
					<xsl:with-param name="q">
						<xsl:value-of select="$labels/item[@id='q-10']"/>
					</xsl:with-param>
				</xsl:call-template>	
				
				<xsl:call-template name="emptyRow"/>	
				
				<xsl:call-template name="buildLiteralAnswer">
					<xsl:with-param name="answer">
						<xsl:value-of select="q-10"/>
					</xsl:with-param>
				</xsl:call-template>												

			</body>
		</html>
	</xsl:template>

	<xsl:template match="*">
		<xsl:call-template name="buildTDAnswer">
			<xsl:with-param name="answer">
				<xsl:value-of select="."/>
			</xsl:with-param>
		</xsl:call-template>
	</xsl:template>
	
	<!--
	<xsl:template match="*[starts-with(local-name(.),'q-2-1-t1-row-')]">
		<xsl:variable name="elem-name" select="local-name(.)"/>
		<xsl:choose>
			<xsl:when test="">
				<xsl:call-template name="buildTDAnswer">
					<xsl:with-param name="answer">
						<xsl:value-of select="."/>
					</xsl:with-param>
				</xsl:call-template>
			</xsl:when>
			<xsl:otherwise>
				<xsl:apply-templates select="*"/>												
			</xsl:otherwise>
		</xsl:choose>
	</xsl:template>	
-->

	<xsl:template match="*[contains(local-name(.),'-row-')]">
		<xsl:variable name="elem-name" select="local-name(.)"/>
		<xsl:choose>
			<xsl:when test="substring-after($elem-name,'Heatset')!='' or substring-after($elem-name,'Rotogravure')!='' or substring-after($elem-name,'Flexography')!='' or substring-after($elem-name,'Surface')!='' or substring-after($elem-name,'OtherSurface')!='' or substring-after($elem-name,'Vehicle')!='' or substring-after($elem-name,'CoilCoating')!='' or substring-after($elem-name,'OtherCoating')!='' or substring-after($elem-name,'Winding')!='' or substring-after($elem-name,'Wooden')!='' or substring-after($elem-name,'DryCleaning')!='' or substring-after($elem-name,'Impregnation')!='' or substring-after($elem-name,'Leather')!='' or substring-after($elem-name,'Footwear')!='' or substring-after($elem-name,'Lamination')!='' or substring-after($elem-name,'Adhesive')!='' or substring-after($elem-name,'Manufacture')!='' or substring-after($elem-name,'Rubber')!='' or substring-after($elem-name,'Oil')!='' or substring-after($elem-name,'Pharmaceutical')!='' or substring-after($elem-name,'NewCars')!='' or substring-after($elem-name,'NewTruck')!='' or substring-after($elem-name,'NewVans')!='' or substring-after($elem-name,'NewBuses')!=''">
				<xsl:call-template name="buildTDAnswer">
					<xsl:with-param name="answer">
						<xsl:value-of select="."/>
					</xsl:with-param>
				</xsl:call-template>
			</xsl:when>
			<xsl:otherwise>
				<xsl:apply-templates select="*"/>												
			</xsl:otherwise>
		</xsl:choose>
	</xsl:template>	
	
	<xsl:template match="q-2-1-t1">
		<table class="data-table"  style="width:950px">
			<tr>			
				<th colspan="6">1.1.2008</th>
			</tr>
			<tr>
				<th></th>
				<th><xsl:value-of select="$labels/item[@id='q-2-1-t-h1']"/></th>
				<th width="65px">A</th>
				<th width="65px">B</th>
				<th width="65px">C</th>
				<th width="65px">D</th>																
			</tr>
			<tr>
				<th>1</th>
				<td><xsl:value-of select="$labels/item[@id='list-activity-1']"/></td>
				<xsl:apply-templates select="q-2-1-t1-row-Heatset"/>
			</tr>
			<tr>
				<th>2</th>
				<td><xsl:value-of select="$labels/item[@id='list-activity-2']"/></td>
				<xsl:apply-templates select="q-2-1-t1-row-Rotogravure"/>
			</tr>
			<tr>
				<th>3</th>
				<td><xsl:value-of select="$labels/item[@id='list-activity-3']"/></td>
				<xsl:apply-templates select="q-2-1-t1-row-Flexography"/>
			</tr>
			<tr>
				<th>4</th>
				<td><xsl:value-of select="$labels/item[@id='list-activity-4']"/></td>
				<xsl:apply-templates select="q-2-1-t1-row-Surface"/>
			</tr>
			<tr>
				<th>5</th>
				<td><xsl:value-of select="$labels/item[@id='list-activity-5']"/></td>
				<xsl:apply-templates select="q-2-1-t1-row-OtherSurface"/>
			</tr>
			<tr>
				<th>6</th>
				<td><xsl:value-of select="$labels/item[@id='list-activity-6']"/></td>
				<xsl:apply-templates select="q-2-1-t1-row-Vehicle"/>
			</tr>
			<tr>
				<th>7</th>
				<td><xsl:value-of select="$labels/item[@id='list-activity-7']"/></td>
				<xsl:apply-templates select="q-2-1-t1-row-CoilCoating"/>
			</tr>
			<tr>
				<th>8</th>
				<td><xsl:value-of select="$labels/item[@id='list-activity-8']"/></td>
				<xsl:apply-templates select="q-2-1-t1-row-OtherCoating"/>
			</tr>
			<tr>
				<th>9</th>
				<td><xsl:value-of select="$labels/item[@id='list-activity-9']"/></td>
				<xsl:apply-templates select="q-2-1-t1-row-Winding"/>
			</tr>
			<tr>
				<th>10</th>
				<td><xsl:value-of select="$labels/item[@id='list-activity-10']"/></td>
				<xsl:apply-templates select="q-2-1-t1-row-Wooden"/>
			</tr>
			<tr>
				<th>11</th>
				<td><xsl:value-of select="$labels/item[@id='list-activity-11']"/></td>
				<xsl:apply-templates select="q-2-1-t1-row-DryCleaning"/>
			</tr>
			<tr>
				<th>12</th>
				<td><xsl:value-of select="$labels/item[@id='list-activity-12']"/></td>
				<xsl:apply-templates select="q-2-1-t1-row-Impregnation"/>
			</tr>
			<tr>
				<th>13</th>
				<td><xsl:value-of select="$labels/item[@id='list-activity-13']"/></td>
				<xsl:apply-templates select="q-2-1-t1-row-Leather"/>
			</tr>
			<tr>
				<th>14</th>
				<td><xsl:value-of select="$labels/item[@id='list-activity-14']"/></td>
				<xsl:apply-templates select="q-2-1-t1-row-Footwear"/>
			</tr>
			<tr>
				<th>15</th>
				<td><xsl:value-of select="$labels/item[@id='list-activity-15']"/></td>
				<xsl:apply-templates select="q-2-1-t1-row-Lamination"/>
			</tr>
			<tr>
				<th>16</th>
				<td><xsl:value-of select="$labels/item[@id='list-activity-16']"/></td>
				<xsl:apply-templates select="q-2-1-t1-row-Adhesive"/>
			</tr>
			<tr>
				<th>17</th>
				<td><xsl:value-of select="$labels/item[@id='list-activity-17']"/></td>
				<xsl:apply-templates select="q-2-1-t1-row-Manufacture"/>
			</tr>
			<tr>
				<th>18</th>
				<td><xsl:value-of select="$labels/item[@id='list-activity-18']"/></td>
				<xsl:apply-templates select="q-2-1-t1-row-Rubber"/>
			</tr>
			<tr>
				<th>19</th>
				<td><xsl:value-of select="$labels/item[@id='list-activity-19']"/></td>
				<xsl:apply-templates select="q-2-1-t1-row-Oil"/>
			</tr>																																																			
			<tr>
				<th>20</th>
				<td><xsl:value-of select="$labels/item[@id='list-activity-20']"/></td>
				<xsl:apply-templates select="q-2-1-t1-row-Pharmaceutical"/>
			</tr>
			<tr>
				<th>21</th>
				<td><xsl:value-of select="$labels/item[@id='list-activity-21']"/></td>
				<xsl:apply-templates select="q-2-1-t1-row-NewCars"/>
			</tr>
			<tr>
				<th>22</th>
				<td><xsl:value-of select="$labels/item[@id='list-activity-22']"/></td>
				<xsl:apply-templates select="q-2-1-t1-row-NewTruck"/>
			</tr>
			<tr>
				<th>23</th>
				<td><xsl:value-of select="$labels/item[@id='list-activity-23']"/></td>
				<xsl:apply-templates select="q-2-1-t1-row-NewVans"/>
			</tr>
			<tr>
				<th>24</th>
				<td><xsl:value-of select="$labels/item[@id='list-activity-24']"/></td>
				<xsl:apply-templates select="q-2-1-t1-row-NewBuses"/>
			</tr>					
			<tr>			
				<td colspan="6"><xsl:value-of select="$labels/item[@id='q-table-footer']"/></td>
			</tr>													
		</table>
	</xsl:template>
	
	<xsl:template match="q-2-1-t2">
		<table class="data-table"  style="width:950px">
			<tr>			
				<th colspan="6">31.12.2010</th>
			</tr>
			<tr>
				<th></th>
				<th><xsl:value-of select="$labels/item[@id='q-2-1-t-h1']"/></th>
				<th width="65px">A</th>
				<th width="65px">B</th>
				<th width="65px">C</th>
				<th width="65px">D</th>																
			</tr>
			<tr>
				<th>1</th>
				<td><xsl:value-of select="$labels/item[@id='list-activity-1']"/></td>
				<xsl:apply-templates select="q-2-1-t2-row-Heatset"/>
			</tr>
			<tr>
				<th>2</th>
				<td><xsl:value-of select="$labels/item[@id='list-activity-2']"/></td>
				<xsl:apply-templates select="q-2-1-t2-row-Rotogravure"/>
			</tr>
			<tr>
				<th>3</th>
				<td><xsl:value-of select="$labels/item[@id='list-activity-3']"/></td>
				<xsl:apply-templates select="q-2-1-t2-row-Flexography"/>
			</tr>
			<tr>
				<th>4</th>
				<td><xsl:value-of select="$labels/item[@id='list-activity-4']"/></td>
				<xsl:apply-templates select="q-2-1-t2-row-Surface"/>
			</tr>
			<tr>
				<th>5</th>
				<td><xsl:value-of select="$labels/item[@id='list-activity-5']"/></td>
				<xsl:apply-templates select="q-2-1-t2-row-OtherSurface"/>
			</tr>
			<tr>
				<th>6</th>
				<td><xsl:value-of select="$labels/item[@id='list-activity-6']"/></td>
				<xsl:apply-templates select="q-2-1-t2-row-Vehicle"/>
			</tr>
			<tr>
				<th>7</th>
				<td><xsl:value-of select="$labels/item[@id='list-activity-7']"/></td>
				<xsl:apply-templates select="q-2-1-t2-row-CoilCoating"/>
			</tr>
			<tr>
				<th>8</th>
				<td><xsl:value-of select="$labels/item[@id='list-activity-8']"/></td>
				<xsl:apply-templates select="q-2-1-t2-row-OtherCoating"/>
			</tr>
			<tr>
				<th>9</th>
				<td><xsl:value-of select="$labels/item[@id='list-activity-9']"/></td>
				<xsl:apply-templates select="q-2-1-t2-row-Winding"/>
			</tr>
			<tr>
				<th>10</th>
				<td><xsl:value-of select="$labels/item[@id='list-activity-10']"/></td>
				<xsl:apply-templates select="q-2-1-t2-row-Wooden"/>
			</tr>
			<tr>
				<th>11</th>
				<td><xsl:value-of select="$labels/item[@id='list-activity-11']"/></td>
				<xsl:apply-templates select="q-2-1-t2-row-DryCleaning"/>
			</tr>
			<tr>
				<th>12</th>
				<td><xsl:value-of select="$labels/item[@id='list-activity-12']"/></td>
				<xsl:apply-templates select="q-2-1-t2-row-Impregnation"/>
			</tr>
			<tr>
				<th>13</th>
				<td><xsl:value-of select="$labels/item[@id='list-activity-13']"/></td>
				<xsl:apply-templates select="q-2-1-t2-row-Leather"/>
			</tr>
			<tr>
				<th>14</th>
				<td><xsl:value-of select="$labels/item[@id='list-activity-14']"/></td>
				<xsl:apply-templates select="q-2-1-t2-row-Footwear"/>
			</tr>
			<tr>
				<th>15</th>
				<td><xsl:value-of select="$labels/item[@id='list-activity-15']"/></td>
				<xsl:apply-templates select="q-2-1-t2-row-Lamination"/>
			</tr>
			<tr>
				<th>16</th>
				<td><xsl:value-of select="$labels/item[@id='list-activity-16']"/></td>
				<xsl:apply-templates select="q-2-1-t2-row-Adhesive"/>
			</tr>
			<tr>
				<th>17</th>
				<td><xsl:value-of select="$labels/item[@id='list-activity-17']"/></td>
				<xsl:apply-templates select="q-2-1-t2-row-Manufacture"/>
			</tr>
			<tr>
				<th>18</th>
				<td><xsl:value-of select="$labels/item[@id='list-activity-18']"/></td>
				<xsl:apply-templates select="q-2-1-t2-row-Rubber"/>
			</tr>
			<tr>
				<th>19</th>
				<td><xsl:value-of select="$labels/item[@id='list-activity-19']"/></td>
				<xsl:apply-templates select="q-2-1-t2-row-Oil"/>
			</tr>																																																			
			<tr>
				<th>20</th>
				<td><xsl:value-of select="$labels/item[@id='list-activity-20']"/></td>
				<xsl:apply-templates select="q-2-1-t2-row-Pharmaceutical"/>
			</tr>
			<tr>
				<th>21</th>
				<td><xsl:value-of select="$labels/item[@id='list-activity-21']"/></td>
				<xsl:apply-templates select="q-2-1-t2-row-NewCars"/>
			</tr>
			<tr>
				<th>22</th>
				<td><xsl:value-of select="$labels/item[@id='list-activity-22']"/></td>
				<xsl:apply-templates select="q-2-1-t2-row-NewTruck"/>
			</tr>
			<tr>
				<th>23</th>
				<td><xsl:value-of select="$labels/item[@id='list-activity-23']"/></td>
				<xsl:apply-templates select="q-2-1-t2-row-NewVans"/>
			</tr>
			<tr>
				<th>24</th>
				<td><xsl:value-of select="$labels/item[@id='list-activity-24']"/></td>
				<xsl:apply-templates select="q-2-1-t2-row-NewBuses"/>
			</tr>			
			<tr>			
				<td colspan="6"><xsl:value-of select="$labels/item[@id='q-table-footer']"/></td>
			</tr>																												
		</table>
	</xsl:template>
	
	<xsl:template match="q-2-1-1-t">
		<table class="data-table"  style="width:950px">
			<tr>
				<th></th>
				<th><xsl:value-of select="$labels/item[@id='q-2-1-t-h1']"/></th>
				<th width="65px">1.1.2008</th>
				<th width="65px">31.12.2010</th>																
			</tr>
			<tr>
				<th>1</th>
				<td><xsl:value-of select="$labels/item[@id='list-activity-1']"/></td>
				<xsl:apply-templates select="q-2-1-1-t-row-Heatset"/>
			</tr>
			<tr>
				<th>2</th>
				<td><xsl:value-of select="$labels/item[@id='list-activity-2']"/></td>
				<xsl:apply-templates select="q-2-1-1-t-row-Rotogravure"/>
			</tr>
			<tr>
				<th>3</th>
				<td><xsl:value-of select="$labels/item[@id='list-activity-3']"/></td>
				<xsl:apply-templates select="q-2-1-1-t-row-Flexography"/>
			</tr>
			<tr>
				<th>4</th>
				<td><xsl:value-of select="$labels/item[@id='list-activity-4']"/></td>
				<xsl:apply-templates select="q-2-1-1-t-row-Surface"/>
			</tr>
			<tr>
				<th>5</th>
				<td><xsl:value-of select="$labels/item[@id='list-activity-5']"/></td>
				<xsl:apply-templates select="q-2-1-1-t-row-OtherSurface"/>
			</tr>
			<tr>
				<th>6</th>
				<td><xsl:value-of select="$labels/item[@id='list-activity-6']"/></td>
				<xsl:apply-templates select="q-2-1-1-t-row-Vehicle"/>
			</tr>
			<tr>
				<th>7</th>
				<td><xsl:value-of select="$labels/item[@id='list-activity-7']"/></td>
				<xsl:apply-templates select="q-2-1-1-t-row-CoilCoating"/>
			</tr>
			<tr>
				<th>8</th>
				<td><xsl:value-of select="$labels/item[@id='list-activity-8']"/></td>
				<xsl:apply-templates select="q-2-1-1-t-row-OtherCoating"/>
			</tr>
			<tr>
				<th>9</th>
				<td><xsl:value-of select="$labels/item[@id='list-activity-9']"/></td>
				<xsl:apply-templates select="q-2-1-1-t-row-Winding"/>
			</tr>
			<tr>
				<th>10</th>
				<td><xsl:value-of select="$labels/item[@id='list-activity-10']"/></td>
				<xsl:apply-templates select="q-2-1-1-t-row-Wooden"/>
			</tr>
			<tr>
				<th>11</th>
				<td><xsl:value-of select="$labels/item[@id='list-activity-11']"/></td>
				<xsl:apply-templates select="q-2-1-1-t-row-DryCleaning"/>
			</tr>
			<tr>
				<th>12</th>
				<td><xsl:value-of select="$labels/item[@id='list-activity-12']"/></td>
				<xsl:apply-templates select="q-2-1-1-t-row-Impregnation"/>
			</tr>
			<tr>
				<th>13</th>
				<td><xsl:value-of select="$labels/item[@id='list-activity-13']"/></td>
				<xsl:apply-templates select="q-2-1-1-t-row-Leather"/>
			</tr>
			<tr>
				<th>14</th>
				<td><xsl:value-of select="$labels/item[@id='list-activity-14']"/></td>
				<xsl:apply-templates select="q-2-1-1-t-row-Footwear"/>
			</tr>
			<tr>
				<th>15</th>
				<td><xsl:value-of select="$labels/item[@id='list-activity-15']"/></td>
				<xsl:apply-templates select="q-2-1-1-t-row-Lamination"/>
			</tr>
			<tr>
				<th>16</th>
				<td><xsl:value-of select="$labels/item[@id='list-activity-16']"/></td>
				<xsl:apply-templates select="q-2-1-1-t-row-Adhesive"/>
			</tr>
			<tr>
				<th>17</th>
				<td><xsl:value-of select="$labels/item[@id='list-activity-17']"/></td>
				<xsl:apply-templates select="q-2-1-1-t-row-Manufacture"/>
			</tr>
			<tr>
				<th>18</th>
				<td><xsl:value-of select="$labels/item[@id='list-activity-18']"/></td>
				<xsl:apply-templates select="q-2-1-1-t-row-Rubber"/>
			</tr>
			<tr>
				<th>19</th>
				<td><xsl:value-of select="$labels/item[@id='list-activity-19']"/></td>
				<xsl:apply-templates select="q-2-1-1-t-row-Oil"/>
			</tr>																																																			
			<tr>
				<th>20</th>
				<td><xsl:value-of select="$labels/item[@id='list-activity-20']"/></td>
				<xsl:apply-templates select="q-2-1-1-t-row-Pharmaceutical"/>
			</tr>
			<tr>
				<th>21</th>
				<td><xsl:value-of select="$labels/item[@id='list-activity-21']"/></td>
				<xsl:apply-templates select="q-2-1-1-t-row-NewCars"/>
			</tr>
			<tr>
				<th>22</th>
				<td><xsl:value-of select="$labels/item[@id='list-activity-22']"/></td>
				<xsl:apply-templates select="q-2-1-1-t-row-NewTruck"/>
			</tr>
			<tr>
				<th>23</th>
				<td><xsl:value-of select="$labels/item[@id='list-activity-23']"/></td>
				<xsl:apply-templates select="q-2-1-1-t-row-NewVans"/>
			</tr>
			<tr>
				<th>24</th>
				<td><xsl:value-of select="$labels/item[@id='list-activity-24']"/></td>
				<xsl:apply-templates select="q-2-1-1-t-row-NewBuses"/>
			</tr>			
			<tr>			
				<td colspan="4"><xsl:value-of select="$labels/item[@id='q-table-footer']"/></td>
			</tr>																		
		</table>
	</xsl:template>	
	
	<xsl:template match="q-2-1-1-a-t-row">
		<tr>
				<xsl:call-template name="buildTDAnswer">
					<xsl:with-param name="answer">
						<xsl:value-of select="q-2-1-1-a-t-row-name"/>
					</xsl:with-param>
				</xsl:call-template>

				<xsl:call-template name="buildTDAnswerActivity">
					<xsl:with-param name="answer">
						<xsl:value-of select="q-2-1-1-a-t-row-activity"/>
					</xsl:with-param>
				</xsl:call-template>
				
				<xsl:call-template name="buildTDAnswer">
					<xsl:with-param name="answer">
						<xsl:value-of select="q-2-1-1-a-t-row-reasons"/>
					</xsl:with-param>
				</xsl:call-template>

		</tr>
	</xsl:template>
	
	<xsl:template match="q-2-1-1-a-t">
		<table class="data-table"  style="width:950px">
			<tr>
				<th><xsl:value-of select="$labels/item[@id='q-2-1-1-a-t-h1']"/></th>
				<th><xsl:value-of select="$labels/item[@id='q-2-1-1-a-t-h2']"/></th>
				<th ><xsl:value-of select="$labels/item[@id='q-2-1-1-a-t-h3']"/></th>																
			</tr>
			<xsl:apply-templates/>												
		</table>
	</xsl:template>
	
	
	<xsl:template match="q-2-1-2-t">
		<table class="data-table"  style="width:950px">
			<tr>
				<th></th>
				<th><xsl:value-of select="$labels/item[@id='q-2-1-t-h1']"/></th>
				<th width="65px">1.1.2008</th>
				<th width="65px">31.12.2010</th>																
			</tr>
			<tr>
				<th>1</th>
				<td><xsl:value-of select="$labels/item[@id='list-activity-1']"/></td>
				<xsl:apply-templates select="q-2-1-2-t-row-Heatset"/>
			</tr>
			<tr>
				<th>2</th>
				<td><xsl:value-of select="$labels/item[@id='list-activity-2']"/></td>
				<xsl:apply-templates select="q-2-1-2-t-row-Rotogravure"/>
			</tr>
			<tr>
				<th>3</th>
				<td><xsl:value-of select="$labels/item[@id='list-activity-3']"/></td>
				<xsl:apply-templates select="q-2-1-2-t-row-Flexography"/>
			</tr>
			<tr>
				<th>4</th>
				<td><xsl:value-of select="$labels/item[@id='list-activity-4']"/></td>
				<xsl:apply-templates select="q-2-1-2-t-row-Surface"/>
			</tr>
			<tr>
				<th>5</th>
				<td><xsl:value-of select="$labels/item[@id='list-activity-5']"/></td>
				<xsl:apply-templates select="q-2-1-2-t-row-OtherSurface"/>
			</tr>
			<tr>
				<th>6</th>
				<td><xsl:value-of select="$labels/item[@id='list-activity-6']"/></td>
				<xsl:apply-templates select="q-2-1-2-t-row-Vehicle"/>
			</tr>
			<tr>
				<th>7</th>
				<td><xsl:value-of select="$labels/item[@id='list-activity-7']"/></td>
				<xsl:apply-templates select="q-2-1-2-t-row-CoilCoating"/>
			</tr>
			<tr>
				<th>8</th>
				<td><xsl:value-of select="$labels/item[@id='list-activity-8']"/></td>
				<xsl:apply-templates select="q-2-1-2-t-row-OtherCoating"/>
			</tr>
			<tr>
				<th>9</th>
				<td><xsl:value-of select="$labels/item[@id='list-activity-9']"/></td>
				<xsl:apply-templates select="q-2-1-2-t-row-Winding"/>
			</tr>
			<tr>
				<th>10</th>
				<td><xsl:value-of select="$labels/item[@id='list-activity-10']"/></td>
				<xsl:apply-templates select="q-2-1-2-t-row-Wooden"/>
			</tr>
			<tr>
				<th>11</th>
				<td><xsl:value-of select="$labels/item[@id='list-activity-11']"/></td>
				<xsl:apply-templates select="q-2-1-2-t-row-DryCleaning"/>
			</tr>
			<tr>
				<th>12</th>
				<td><xsl:value-of select="$labels/item[@id='list-activity-12']"/></td>
				<xsl:apply-templates select="q-2-1-2-t-row-Impregnation"/>
			</tr>
			<tr>
				<th>13</th>
				<td><xsl:value-of select="$labels/item[@id='list-activity-13']"/></td>
				<xsl:apply-templates select="q-2-1-2-t-row-Leather"/>
			</tr>
			<tr>
				<th>14</th>
				<td><xsl:value-of select="$labels/item[@id='list-activity-14']"/></td>
				<xsl:apply-templates select="q-2-1-2-t-row-Footwear"/>
			</tr>
			<tr>
				<th>15</th>
				<td><xsl:value-of select="$labels/item[@id='list-activity-15']"/></td>
				<xsl:apply-templates select="q-2-1-2-t-row-Lamination"/>
			</tr>
			<tr>
				<th>16</th>
				<td><xsl:value-of select="$labels/item[@id='list-activity-16']"/></td>
				<xsl:apply-templates select="q-2-1-2-t-row-Adhesive"/>
			</tr>
			<tr>
				<th>17</th>
				<td><xsl:value-of select="$labels/item[@id='list-activity-17']"/></td>
				<xsl:apply-templates select="q-2-1-2-t-row-Manufacture"/>
			</tr>
			<tr>
				<th>18</th>
				<td><xsl:value-of select="$labels/item[@id='list-activity-18']"/></td>
				<xsl:apply-templates select="q-2-1-2-t-row-Rubber"/>
			</tr>
			<tr>
				<th>19</th>
				<td><xsl:value-of select="$labels/item[@id='list-activity-19']"/></td>
				<xsl:apply-templates select="q-2-1-2-t-row-Oil"/>
			</tr>																																																			
			<tr>
				<th>20</th>
				<td><xsl:value-of select="$labels/item[@id='list-activity-20']"/></td>
				<xsl:apply-templates select="q-2-1-2-t-row-Pharmaceutical"/>
			</tr>
			<tr>
				<th>21</th>
				<td><xsl:value-of select="$labels/item[@id='list-activity-21']"/></td>
				<xsl:apply-templates select="q-2-1-2-t-row-NewCars"/>
			</tr>
			<tr>
				<th>22</th>
				<td><xsl:value-of select="$labels/item[@id='list-activity-22']"/></td>
				<xsl:apply-templates select="q-2-1-2-t-row-NewTruck"/>
			</tr>
			<tr>
				<th>23</th>
				<td><xsl:value-of select="$labels/item[@id='list-activity-23']"/></td>
				<xsl:apply-templates select="q-2-1-2-t-row-NewVans"/>
			</tr>
			<tr>
				<th>24</th>
				<td><xsl:value-of select="$labels/item[@id='list-activity-24']"/></td>
				<xsl:apply-templates select="q-2-1-2-t-row-NewBuses"/>
			</tr>			
			<tr>			
				<td colspan="4"><xsl:value-of select="$labels/item[@id='q-table-footer']"/></td>
			</tr>																		
		</table>
	</xsl:template>	
	
	<xsl:template match="q-2-1-2-a-t-row">
		<tr>
				<xsl:call-template name="buildTDAnswer">
					<xsl:with-param name="answer">
						<xsl:value-of select="q-2-1-2-a-t-row-name"/>
					</xsl:with-param>
				</xsl:call-template>

				<xsl:call-template name="buildTDAnswerActivity">
					<xsl:with-param name="answer">
						<xsl:value-of select="q-2-1-2-a-t-row-activity"/>
					</xsl:with-param>
				</xsl:call-template>
				
				<xsl:call-template name="buildTDAnswer">
					<xsl:with-param name="answer">
						<xsl:value-of select="q-2-1-2-a-t-row-reasons"/>
					</xsl:with-param>
				</xsl:call-template>

		</tr>
	</xsl:template>
	
	<xsl:template match="q-2-1-2-a-t">
		<table class="data-table"  style="width:950px">
			<tr>
				<th><xsl:value-of select="$labels/item[@id='q-2-1-2-a-t-h1']"/></th>
				<th><xsl:value-of select="$labels/item[@id='q-2-1-2-a-t-h2']"/></th>
				<th ><xsl:value-of select="$labels/item[@id='q-2-1-2-a-t-h3']"/></th>																
			</tr>
			<xsl:apply-templates/>												
		</table>
	</xsl:template>	
	
	<xsl:template match="q-2-2">
		<table class="data-table"  style="width:950px">
			<tr>
				<th></th>
				<th><xsl:value-of select="$labels/item[@id='q-2-2-t-h1']"/></th>
				<th width="125px"><xsl:value-of select="$labels/item[@id='q-2-2-t-h2']"/></th>
			</tr>
			<tr>
				<th>1</th>
				<td><xsl:value-of select="$labels/item[@id='list-activity-1']"/></td>
				<xsl:call-template name="buildTDAnswer">
					<xsl:with-param name="answer">
						<xsl:value-of select="q-2-2-Heatset"/>
					</xsl:with-param>
				</xsl:call-template>
			</tr>			
			<tr>
				<th>2</th>
				<td><xsl:value-of select="$labels/item[@id='list-activity-2']"/></td>
				<xsl:call-template name="buildTDAnswer">
					<xsl:with-param name="answer">
						<xsl:value-of select="q-2-2-Rotogravure"/>
					</xsl:with-param>
				</xsl:call-template>
			</tr>
			<tr>
				<th>3</th>
				<td><xsl:value-of select="$labels/item[@id='list-activity-3']"/></td>
				<xsl:call-template name="buildTDAnswer">
					<xsl:with-param name="answer">
						<xsl:value-of select="q-2-2-Flexography"/>
					</xsl:with-param>
				</xsl:call-template>
			</tr>
			<tr>
				<th>4</th>
				<td><xsl:value-of select="$labels/item[@id='list-activity-4']"/></td>
				<xsl:call-template name="buildTDAnswer">
					<xsl:with-param name="answer">
						<xsl:value-of select="q-2-2-Surface"/>
					</xsl:with-param>
				</xsl:call-template>
			</tr>
			<tr>
				<th>5</th>
				<td><xsl:value-of select="$labels/item[@id='list-activity-5']"/></td>
				<xsl:call-template name="buildTDAnswer">
					<xsl:with-param name="answer">
						<xsl:value-of select="q-2-2-OtherSurface"/>
					</xsl:with-param>
				</xsl:call-template>
			</tr>
			<tr>
				<th>6</th>
				<td><xsl:value-of select="$labels/item[@id='list-activity-6']"/></td>
				<xsl:call-template name="buildTDAnswer">
					<xsl:with-param name="answer">
						<xsl:value-of select="q-2-2-Vehicle"/>
					</xsl:with-param>
				</xsl:call-template>
			</tr>
			<tr>
				<th>7</th>
				<td><xsl:value-of select="$labels/item[@id='list-activity-7']"/></td>
				<xsl:call-template name="buildTDAnswer">
					<xsl:with-param name="answer">
						<xsl:value-of select="q-2-2-CoilCoating"/>
					</xsl:with-param>
				</xsl:call-template>
			</tr>
			<tr>
				<th>8</th>
				<td><xsl:value-of select="$labels/item[@id='list-activity-8']"/></td>
				<xsl:call-template name="buildTDAnswer">
					<xsl:with-param name="answer">
						<xsl:value-of select="q-2-2-OtherCoating"/>
					</xsl:with-param>
				</xsl:call-template>
			</tr>
			<tr>
				<th>9</th>
				<td><xsl:value-of select="$labels/item[@id='list-activity-9']"/></td>
				<xsl:call-template name="buildTDAnswer">
					<xsl:with-param name="answer">
						<xsl:value-of select="q-2-2-Winding"/>
					</xsl:with-param>
				</xsl:call-template>
			</tr>
			<tr>
				<th>10</th>
				<td><xsl:value-of select="$labels/item[@id='list-activity-10']"/></td>
				<xsl:call-template name="buildTDAnswer">
					<xsl:with-param name="answer">
						<xsl:value-of select="q-2-2-Wooden"/>
					</xsl:with-param>
				</xsl:call-template>
			</tr>																											
			<tr>
				<th>11</th>
				<td><xsl:value-of select="$labels/item[@id='list-activity-11']"/></td>
				<xsl:call-template name="buildTDAnswer">
					<xsl:with-param name="answer">
						<xsl:value-of select="q-2-2-DryCleaning"/>
					</xsl:with-param>
				</xsl:call-template>
			</tr>			
			<tr>
				<th>12</th>
				<td><xsl:value-of select="$labels/item[@id='list-activity-12']"/></td>
				<xsl:call-template name="buildTDAnswer">
					<xsl:with-param name="answer">
						<xsl:value-of select="q-2-2-Impregnation"/>
					</xsl:with-param>
				</xsl:call-template>
			</tr>
			<tr>
				<th>13</th>
				<td><xsl:value-of select="$labels/item[@id='list-activity-13']"/></td>
				<xsl:call-template name="buildTDAnswer">
					<xsl:with-param name="answer">
						<xsl:value-of select="q-2-2-Leather"/>
					</xsl:with-param>
				</xsl:call-template>
			</tr>
			<tr>
				<th>14</th>
				<td><xsl:value-of select="$labels/item[@id='list-activity-14']"/></td>
				<xsl:call-template name="buildTDAnswer">
					<xsl:with-param name="answer">
						<xsl:value-of select="q-2-2-Footwear"/>
					</xsl:with-param>
				</xsl:call-template>
			</tr>
			<tr>
				<th>15</th>
				<td><xsl:value-of select="$labels/item[@id='list-activity-15']"/></td>
				<xsl:call-template name="buildTDAnswer">
					<xsl:with-param name="answer">
						<xsl:value-of select="q-2-2-Lamination"/>
					</xsl:with-param>
				</xsl:call-template>
			</tr>
			<tr>
				<th>16</th>
				<td><xsl:value-of select="$labels/item[@id='list-activity-16']"/></td>
				<xsl:call-template name="buildTDAnswer">
					<xsl:with-param name="answer">
						<xsl:value-of select="q-2-2-Adhesive"/>
					</xsl:with-param>
				</xsl:call-template>
			</tr>
			<tr>
				<th>17</th>
				<td><xsl:value-of select="$labels/item[@id='list-activity-17']"/></td>
				<xsl:call-template name="buildTDAnswer">
					<xsl:with-param name="answer">
						<xsl:value-of select="q-2-2-Manufacture"/>
					</xsl:with-param>
				</xsl:call-template>
			</tr>
			<tr>
				<th>18</th>
				<td><xsl:value-of select="$labels/item[@id='list-activity-18']"/></td>
				<xsl:call-template name="buildTDAnswer">
					<xsl:with-param name="answer">
						<xsl:value-of select="q-2-2-Rubber"/>
					</xsl:with-param>
				</xsl:call-template>
			</tr>
			<tr>
				<th>19</th>
				<td><xsl:value-of select="$labels/item[@id='list-activity-19']"/></td>
				<xsl:call-template name="buildTDAnswer">
					<xsl:with-param name="answer">
						<xsl:value-of select="q-2-2-Oil"/>
					</xsl:with-param>
				</xsl:call-template>
			</tr>
			<tr>
				<th>20</th>
				<td><xsl:value-of select="$labels/item[@id='list-activity-20']"/></td>
				<xsl:call-template name="buildTDAnswer">
					<xsl:with-param name="answer">
						<xsl:value-of select="q-2-2-Pharmaceutical"/>
					</xsl:with-param>
				</xsl:call-template>
			</tr>
			<tr>
				<th>21</th>
				<td><xsl:value-of select="$labels/item[@id='list-activity-21']"/></td>
				<xsl:call-template name="buildTDAnswer">
					<xsl:with-param name="answer">
						<xsl:value-of select="q-2-2-NewCars"/>
					</xsl:with-param>
				</xsl:call-template>
			</tr>
			<tr>
				<th>22</th>
				<td><xsl:value-of select="$labels/item[@id='list-activity-22']"/></td>
				<xsl:call-template name="buildTDAnswer">
					<xsl:with-param name="answer">
						<xsl:value-of select="q-2-2-NewTruck"/>
					</xsl:with-param>
				</xsl:call-template>
			</tr>
			<tr>
				<th>23</th>
				<td><xsl:value-of select="$labels/item[@id='list-activity-23']"/></td>
				<xsl:call-template name="buildTDAnswer">
					<xsl:with-param name="answer">
						<xsl:value-of select="q-2-2-NewVans"/>
					</xsl:with-param>
				</xsl:call-template>
			</tr>
			<tr>
				<th>24</th>
				<td><xsl:value-of select="$labels/item[@id='list-activity-24']"/></td>
				<xsl:call-template name="buildTDAnswer">
					<xsl:with-param name="answer">
						<xsl:value-of select="q-2-2-NewBuses"/>
					</xsl:with-param>
				</xsl:call-template>
			</tr>												
			<tr>			
				<td colspan="3"><xsl:value-of select="$labels/item[@id='q-table-footer']"/></td>
			</tr>																		
		</table>
	</xsl:template>	
	
	<xsl:template match="q-3-row">
		<tr>
				<xsl:call-template name="buildTDAnswerActivity">
					<xsl:with-param name="answer">
						<xsl:value-of select="q-3-row-activity"/>
					</xsl:with-param>
				</xsl:call-template>

				<xsl:call-template name="buildTDAnswer">
					<xsl:with-param name="answer">
						<xsl:value-of select="q-3-row-substances"/>
					</xsl:with-param>
				</xsl:call-template>
				
				<xsl:call-template name="buildTDAnswer">
					<xsl:with-param name="answer">
						<xsl:value-of select="q-3-row-tonnes"/>
					</xsl:with-param>
				</xsl:call-template>

		</tr>
	</xsl:template>
	
	<xsl:template match="q-3">
		<table class="data-table"  style="width:950px">
			<tr>
				<th><xsl:value-of select="$labels/item[@id='q-3-t-h1']"/></th>
				<th><xsl:value-of select="$labels/item[@id='q-3-t-h2']"/></th>
				<th ><xsl:value-of select="$labels/item[@id='q-3-t-h3']"/></th>																
			</tr>
			<xsl:apply-templates/>												
		</table>
	</xsl:template>
	
	<xsl:template match="q-4">
		<table class="data-table"  style="width:950px">
			<tr>
				<th></th>
				<th><xsl:value-of select="$labels/item[@id='q-4-t-h1']"/></th>
				<th width="175px"><xsl:value-of select="$labels/item[@id='q-4-t-h2']"/></th>
				<th width="175px"><xsl:value-of select="$labels/item[@id='q-4-t-h3']"/></th>																
			</tr>
			<tr>
				<th>1</th>
				<td><xsl:value-of select="$labels/item[@id='list-activity-1']"/></td>
				<xsl:apply-templates select="q-4-row-Heatset"/>
			</tr>
			<tr>
				<th>2</th>
				<td><xsl:value-of select="$labels/item[@id='list-activity-2']"/></td>
				<xsl:apply-templates select="q-4-row-Rotogravure"/>
			</tr>
			<tr>
				<th>3</th>
				<td><xsl:value-of select="$labels/item[@id='list-activity-3']"/></td>
				<xsl:apply-templates select="q-4-row-Flexography"/>
			</tr>
			<tr>
				<th>4</th>
				<td><xsl:value-of select="$labels/item[@id='list-activity-4']"/></td>
				<xsl:apply-templates select="q-4-row-Surface"/>
			</tr>
			<tr>
				<th>5</th>
				<td><xsl:value-of select="$labels/item[@id='list-activity-5']"/></td>
				<xsl:apply-templates select="q-4-row-OtherSurface"/>
			</tr>
			<tr>
				<th>6</th>
				<td><xsl:value-of select="$labels/item[@id='list-activity-6']"/></td>
				<xsl:apply-templates select="q-4-row-Vehicle"/>
			</tr>
			<tr>
				<th>7</th>
				<td><xsl:value-of select="$labels/item[@id='list-activity-7']"/></td>
				<xsl:apply-templates select="q-4-row-CoilCoating"/>
			</tr>
			<tr>
				<th>8</th>
				<td><xsl:value-of select="$labels/item[@id='list-activity-8']"/></td>
				<xsl:apply-templates select="q-4-row-OtherCoating"/>
			</tr>
			<tr>
				<th>9</th>
				<td><xsl:value-of select="$labels/item[@id='list-activity-9']"/></td>
				<xsl:apply-templates select="q-4-row-Winding"/>
			</tr>
			<tr>
				<th>10</th>
				<td><xsl:value-of select="$labels/item[@id='list-activity-10']"/></td>
				<xsl:apply-templates select="q-4-row-Wooden"/>
			</tr>
			<tr>
				<th>11</th>
				<td><xsl:value-of select="$labels/item[@id='list-activity-11']"/></td>
				<xsl:apply-templates select="q-4-row-DryCleaning"/>
			</tr>
			<tr>
				<th>12</th>
				<td><xsl:value-of select="$labels/item[@id='list-activity-12']"/></td>
				<xsl:apply-templates select="q-4-row-Impregnation"/>
			</tr>
			<tr>
				<th>13</th>
				<td><xsl:value-of select="$labels/item[@id='list-activity-13']"/></td>
				<xsl:apply-templates select="q-4-row-Leather"/>
			</tr>
			<tr>
				<th>14</th>
				<td><xsl:value-of select="$labels/item[@id='list-activity-14']"/></td>
				<xsl:apply-templates select="q-4-row-Footwear"/>
			</tr>
			<tr>
				<th>15</th>
				<td><xsl:value-of select="$labels/item[@id='list-activity-15']"/></td>
				<xsl:apply-templates select="q-4-row-Lamination"/>
			</tr>
			<tr>
				<th>16</th>
				<td><xsl:value-of select="$labels/item[@id='list-activity-16']"/></td>
				<xsl:apply-templates select="q-4-row-Adhesive"/>
			</tr>
			<tr>
				<th>17</th>
				<td><xsl:value-of select="$labels/item[@id='list-activity-17']"/></td>
				<xsl:apply-templates select="q-4-row-Manufacture"/>
			</tr>
			<tr>
				<th>18</th>
				<td><xsl:value-of select="$labels/item[@id='list-activity-18']"/></td>
				<xsl:apply-templates select="q-4-row-Rubber"/>
			</tr>
			<tr>
				<th>19</th>
				<td><xsl:value-of select="$labels/item[@id='list-activity-19']"/></td>
				<xsl:apply-templates select="q-4-row-Oil"/>
			</tr>																																																			
			<tr>
				<th>20</th>
				<td><xsl:value-of select="$labels/item[@id='list-activity-20']"/></td>
				<xsl:apply-templates select="q-4-row-Pharmaceutical"/>
			</tr>
			<tr>
				<th>21</th>
				<td><xsl:value-of select="$labels/item[@id='list-activity-21']"/></td>
				<xsl:apply-templates select="q-4-row-NewCars"/>
			</tr>
			<tr>
				<th>22</th>
				<td><xsl:value-of select="$labels/item[@id='list-activity-22']"/></td>
				<xsl:apply-templates select="q-4-row-NewTruck"/>
			</tr>
			<tr>
				<th>23</th>
				<td><xsl:value-of select="$labels/item[@id='list-activity-23']"/></td>
				<xsl:apply-templates select="q-4-row-NewVans"/>
			</tr>
			<tr>
				<th>24</th>
				<td><xsl:value-of select="$labels/item[@id='list-activity-24']"/></td>
				<xsl:apply-templates select="q-4-row-NewBuses"/>
			</tr>			
			<tr>			
				<td colspan="4"><xsl:value-of select="$labels/item[@id='q-table-footer']"/></td>
			</tr>																		
		</table>
	</xsl:template>	
			
	
	<xsl:template match="q-5-t1">
		<table class="data-table"  style="width:950px">
			<tr>
				<th></th>
				<th><xsl:value-of select="$labels/item[@id='q-5-t1-h1']"/></th>
				<th width="175px"><xsl:value-of select="$labels/item[@id='q-5-t1-h2']"/></th>
				<th width="175px"><xsl:value-of select="$labels/item[@id='q-5-t1-h3']"/></th>																
			</tr>
			<tr>
				<th>1</th>
				<td><xsl:value-of select="$labels/item[@id='list-activity-1']"/></td>
				<xsl:apply-templates select="q-5-t1-row-Heatset"/>
			</tr>
			<tr>
				<th>2</th>
				<td><xsl:value-of select="$labels/item[@id='list-activity-2']"/></td>
				<xsl:apply-templates select="q-5-t1-row-Rotogravure"/>
			</tr>
			<tr>
				<th>3</th>
				<td><xsl:value-of select="$labels/item[@id='list-activity-3']"/></td>
				<xsl:apply-templates select="q-5-t1-row-Flexography"/>
			</tr>
			<tr>
				<th>4</th>
				<td><xsl:value-of select="$labels/item[@id='list-activity-4']"/></td>
				<xsl:apply-templates select="q-5-t1-row-Surface"/>
			</tr>
			<tr>
				<th>5</th>
				<td><xsl:value-of select="$labels/item[@id='list-activity-5']"/></td>
				<xsl:apply-templates select="q-5-t1-row-OtherSurface"/>
			</tr>
			<tr>
				<th>6</th>
				<td><xsl:value-of select="$labels/item[@id='list-activity-6']"/></td>
				<xsl:apply-templates select="q-5-t1-row-Vehicle"/>
			</tr>
			<tr>
				<th>7</th>
				<td><xsl:value-of select="$labels/item[@id='list-activity-7']"/></td>
				<xsl:apply-templates select="q-5-t1-row-CoilCoating"/>
			</tr>
			<tr>
				<th>8</th>
				<td><xsl:value-of select="$labels/item[@id='list-activity-8']"/></td>
				<xsl:apply-templates select="q-5-t1-row-OtherCoating"/>
			</tr>
			<tr>
				<th>9</th>
				<td><xsl:value-of select="$labels/item[@id='list-activity-9']"/></td>
				<xsl:apply-templates select="q-5-t1-row-Winding"/>
			</tr>
			<tr>
				<th>10</th>
				<td><xsl:value-of select="$labels/item[@id='list-activity-10']"/></td>
				<xsl:apply-templates select="q-5-t1-row-Wooden"/>
			</tr>
			<tr>
				<th>11</th>
				<td><xsl:value-of select="$labels/item[@id='list-activity-11']"/></td>
				<xsl:apply-templates select="q-5-t1-row-DryCleaning"/>
			</tr>
			<tr>
				<th>12</th>
				<td><xsl:value-of select="$labels/item[@id='list-activity-12']"/></td>
				<xsl:apply-templates select="q-5-t1-row-Impregnation"/>
			</tr>
			<tr>
				<th>13</th>
				<td><xsl:value-of select="$labels/item[@id='list-activity-13']"/></td>
				<xsl:apply-templates select="q-5-t1-row-Leather"/>
			</tr>
			<tr>
				<th>14</th>
				<td><xsl:value-of select="$labels/item[@id='list-activity-14']"/></td>
				<xsl:apply-templates select="q-5-t1-row-Footwear"/>
			</tr>
			<tr>
				<th>15</th>
				<td><xsl:value-of select="$labels/item[@id='list-activity-15']"/></td>
				<xsl:apply-templates select="q-5-t1-row-Lamination"/>
			</tr>
			<tr>
				<th>16</th>
				<td><xsl:value-of select="$labels/item[@id='list-activity-16']"/></td>
				<xsl:apply-templates select="q-5-t1-row-Adhesive"/>
			</tr>
			<tr>
				<th>17</th>
				<td><xsl:value-of select="$labels/item[@id='list-activity-17']"/></td>
				<xsl:apply-templates select="q-5-t1-row-Manufacture"/>
			</tr>
			<tr>
				<th>18</th>
				<td><xsl:value-of select="$labels/item[@id='list-activity-18']"/></td>
				<xsl:apply-templates select="q-5-t1-row-Rubber"/>
			</tr>
			<tr>
				<th>19</th>
				<td><xsl:value-of select="$labels/item[@id='list-activity-19']"/></td>
				<xsl:apply-templates select="q-5-t1-row-Oil"/>
			</tr>																																																			
			<tr>
				<th>20</th>
				<td><xsl:value-of select="$labels/item[@id='list-activity-20']"/></td>
				<xsl:apply-templates select="q-5-t1-row-Pharmaceutical"/>
			</tr>
			<tr>
				<th>21</th>
				<td><xsl:value-of select="$labels/item[@id='list-activity-21']"/></td>
				<xsl:apply-templates select="q-5-t1-row-NewCars"/>
			</tr>
			<tr>
				<th>22</th>
				<td><xsl:value-of select="$labels/item[@id='list-activity-22']"/></td>
				<xsl:apply-templates select="q-5-t1-row-NewTruck"/>
			</tr>
			<tr>
				<th>23</th>
				<td><xsl:value-of select="$labels/item[@id='list-activity-23']"/></td>
				<xsl:apply-templates select="q-5-t1-row-NewVans"/>
			</tr>
			<tr>
				<th>24</th>
				<td><xsl:value-of select="$labels/item[@id='list-activity-24']"/></td>
				<xsl:apply-templates select="q-5-t1-row-NewBuses"/>
			</tr>			
			<tr>			
				<td colspan="4"><xsl:value-of select="$labels/item[@id='q-table-footer']"/></td>
			</tr>																		
		</table>
	</xsl:template>	
				
				
	<xsl:template match="q-5-t2">
		<table class="data-table"  style="width:950px">
			<tr>
				<th></th>
				<th><xsl:value-of select="$labels/item[@id='q-5-t2-h1']"/></th>
				<th width="125px"><xsl:value-of select="$labels/item[@id='q-5-t2-h2']"/></th>
			</tr>
			<tr>
				<th>1</th>
				<td><xsl:value-of select="$labels/item[@id='list-activity-1']"/></td>
				<xsl:call-template name="buildTDAnswer">
					<xsl:with-param name="answer">
						<xsl:value-of select="q-5-t2-Heatset"/>
					</xsl:with-param>
				</xsl:call-template>
			</tr>			
			<tr>
				<th>2</th>
				<td><xsl:value-of select="$labels/item[@id='list-activity-2']"/></td>
				<xsl:call-template name="buildTDAnswer">
					<xsl:with-param name="answer">
						<xsl:value-of select="q-5-t2-Rotogravure"/>
					</xsl:with-param>
				</xsl:call-template>
			</tr>
			<tr>
				<th>3</th>
				<td><xsl:value-of select="$labels/item[@id='list-activity-3']"/></td>
				<xsl:call-template name="buildTDAnswer">
					<xsl:with-param name="answer">
						<xsl:value-of select="q-5-t2-Flexography"/>
					</xsl:with-param>
				</xsl:call-template>
			</tr>
			<tr>
				<th>4</th>
				<td><xsl:value-of select="$labels/item[@id='list-activity-4']"/></td>
				<xsl:call-template name="buildTDAnswer">
					<xsl:with-param name="answer">
						<xsl:value-of select="q-5-t2-Surface"/>
					</xsl:with-param>
				</xsl:call-template>
			</tr>
			<tr>
				<th>5</th>
				<td><xsl:value-of select="$labels/item[@id='list-activity-5']"/></td>
				<xsl:call-template name="buildTDAnswer">
					<xsl:with-param name="answer">
						<xsl:value-of select="q-5-t2-OtherSurface"/>
					</xsl:with-param>
				</xsl:call-template>
			</tr>
			<tr>
				<th>6</th>
				<td><xsl:value-of select="$labels/item[@id='list-activity-6']"/></td>
				<xsl:call-template name="buildTDAnswer">
					<xsl:with-param name="answer">
						<xsl:value-of select="q-5-t2-Vehicle"/>
					</xsl:with-param>
				</xsl:call-template>
			</tr>
			<tr>
				<th>7</th>
				<td><xsl:value-of select="$labels/item[@id='list-activity-7']"/></td>
				<xsl:call-template name="buildTDAnswer">
					<xsl:with-param name="answer">
						<xsl:value-of select="q-5-t2-CoilCoating"/>
					</xsl:with-param>
				</xsl:call-template>
			</tr>
			<tr>
				<th>8</th>
				<td><xsl:value-of select="$labels/item[@id='list-activity-8']"/></td>
				<xsl:call-template name="buildTDAnswer">
					<xsl:with-param name="answer">
						<xsl:value-of select="q-5-t2-OtherCoating"/>
					</xsl:with-param>
				</xsl:call-template>
			</tr>
			<tr>
				<th>9</th>
				<td><xsl:value-of select="$labels/item[@id='list-activity-9']"/></td>
				<xsl:call-template name="buildTDAnswer">
					<xsl:with-param name="answer">
						<xsl:value-of select="q-5-t2-Winding"/>
					</xsl:with-param>
				</xsl:call-template>
			</tr>
			<tr>
				<th>10</th>
				<td><xsl:value-of select="$labels/item[@id='list-activity-10']"/></td>
				<xsl:call-template name="buildTDAnswer">
					<xsl:with-param name="answer">
						<xsl:value-of select="q-5-t2-Wooden"/>
					</xsl:with-param>
				</xsl:call-template>
			</tr>																											
			<tr>
				<th>11</th>
				<td><xsl:value-of select="$labels/item[@id='list-activity-11']"/></td>
				<xsl:call-template name="buildTDAnswer">
					<xsl:with-param name="answer">
						<xsl:value-of select="q-5-t2-DryCleaning"/>
					</xsl:with-param>
				</xsl:call-template>
			</tr>			
			<tr>
				<th>12</th>
				<td><xsl:value-of select="$labels/item[@id='list-activity-12']"/></td>
				<xsl:call-template name="buildTDAnswer">
					<xsl:with-param name="answer">
						<xsl:value-of select="q-5-t2-Impregnation"/>
					</xsl:with-param>
				</xsl:call-template>
			</tr>
			<tr>
				<th>13</th>
				<td><xsl:value-of select="$labels/item[@id='list-activity-13']"/></td>
				<xsl:call-template name="buildTDAnswer">
					<xsl:with-param name="answer">
						<xsl:value-of select="q-5-t2-Leather"/>
					</xsl:with-param>
				</xsl:call-template>
			</tr>
			<tr>
				<th>14</th>
				<td><xsl:value-of select="$labels/item[@id='list-activity-14']"/></td>
				<xsl:call-template name="buildTDAnswer">
					<xsl:with-param name="answer">
						<xsl:value-of select="q-5-t2-Footwear"/>
					</xsl:with-param>
				</xsl:call-template>
			</tr>
			<tr>
				<th>15</th>
				<td><xsl:value-of select="$labels/item[@id='list-activity-15']"/></td>
				<xsl:call-template name="buildTDAnswer">
					<xsl:with-param name="answer">
						<xsl:value-of select="q-5-t2-Lamination"/>
					</xsl:with-param>
				</xsl:call-template>
			</tr>
			<tr>
				<th>16</th>
				<td><xsl:value-of select="$labels/item[@id='list-activity-16']"/></td>
				<xsl:call-template name="buildTDAnswer">
					<xsl:with-param name="answer">
						<xsl:value-of select="q-5-t2-Adhesive"/>
					</xsl:with-param>
				</xsl:call-template>
			</tr>
			<tr>
				<th>17</th>
				<td><xsl:value-of select="$labels/item[@id='list-activity-17']"/></td>
				<xsl:call-template name="buildTDAnswer">
					<xsl:with-param name="answer">
						<xsl:value-of select="q-5-t2-Manufacture"/>
					</xsl:with-param>
				</xsl:call-template>
			</tr>
			<tr>
				<th>18</th>
				<td><xsl:value-of select="$labels/item[@id='list-activity-18']"/></td>
				<xsl:call-template name="buildTDAnswer">
					<xsl:with-param name="answer">
						<xsl:value-of select="q-5-t2-Rubber"/>
					</xsl:with-param>
				</xsl:call-template>
			</tr>
			<tr>
				<th>19</th>
				<td><xsl:value-of select="$labels/item[@id='list-activity-19']"/></td>
				<xsl:call-template name="buildTDAnswer">
					<xsl:with-param name="answer">
						<xsl:value-of select="q-5-t2-Oil"/>
					</xsl:with-param>
				</xsl:call-template>
			</tr>
			<tr>
				<th>20</th>
				<td><xsl:value-of select="$labels/item[@id='list-activity-20']"/></td>
				<xsl:call-template name="buildTDAnswer">
					<xsl:with-param name="answer">
						<xsl:value-of select="q-5-t2-Pharmaceutical"/>
					</xsl:with-param>
				</xsl:call-template>
			</tr>
			<tr>
				<th>21</th>
				<td><xsl:value-of select="$labels/item[@id='list-activity-21']"/></td>
				<xsl:call-template name="buildTDAnswer">
					<xsl:with-param name="answer">
						<xsl:value-of select="q-5-t2-NewCars"/>
					</xsl:with-param>
				</xsl:call-template>
			</tr>
			<tr>
				<th>22</th>
				<td><xsl:value-of select="$labels/item[@id='list-activity-22']"/></td>
				<xsl:call-template name="buildTDAnswer">
					<xsl:with-param name="answer">
						<xsl:value-of select="q-5-t2-NewTruck"/>
					</xsl:with-param>
				</xsl:call-template>
			</tr>
			<tr>
				<th>23</th>
				<td><xsl:value-of select="$labels/item[@id='list-activity-23']"/></td>
				<xsl:call-template name="buildTDAnswer">
					<xsl:with-param name="answer">
						<xsl:value-of select="q-5-t2-NewVans"/>
					</xsl:with-param>
				</xsl:call-template>
			</tr>
			<tr>
				<th>24</th>
				<td><xsl:value-of select="$labels/item[@id='list-activity-24']"/></td>
				<xsl:call-template name="buildTDAnswer">
					<xsl:with-param name="answer">
						<xsl:value-of select="q-5-t2-NewBuses"/>
					</xsl:with-param>
				</xsl:call-template>
			</tr>												
			<tr>			
				<td colspan="3"><xsl:value-of select="$labels/item[@id='q-table-footer']"/></td>
			</tr>																		
		</table>
	</xsl:template>	
					
					
	<xsl:template match="q-6-2">
		<table class="data-table"  style="width:950px">
			<tr>
				<th></th>
				<th><xsl:value-of select="$labels/item[@id='q-6-2-t-h1']"/></th>
				<th width="105px"><xsl:value-of select="$labels/item[@id='q-6-2-t-h2']"/></th>
				<th width="105px"><xsl:value-of select="$labels/item[@id='q-6-2-t-h3']"/></th>																
			</tr>
			<tr>
				<th>1</th>
				<td><xsl:value-of select="$labels/item[@id='list-activity-1']"/></td>
				<xsl:apply-templates select="q-6-2-row-Heatset"/>
			</tr>
			<tr>
				<th>2</th>
				<td><xsl:value-of select="$labels/item[@id='list-activity-2']"/></td>
				<xsl:apply-templates select="q-6-2-row-Rotogravure"/>
			</tr>
			<tr>
				<th>3</th>
				<td><xsl:value-of select="$labels/item[@id='list-activity-3']"/></td>
				<xsl:apply-templates select="q-6-2-row-Flexography"/>
			</tr>
			<tr>
				<th>4</th>
				<td><xsl:value-of select="$labels/item[@id='list-activity-4']"/></td>
				<xsl:apply-templates select="q-6-2-row-Surface"/>
			</tr>
			<tr>
				<th>5</th>
				<td><xsl:value-of select="$labels/item[@id='list-activity-5']"/></td>
				<xsl:apply-templates select="q-6-2-row-OtherSurface"/>
			</tr>
			<tr>
				<th>6</th>
				<td><xsl:value-of select="$labels/item[@id='list-activity-6']"/></td>
				<xsl:apply-templates select="q-6-2-row-Vehicle"/>
			</tr>
			<tr>
				<th>7</th>
				<td><xsl:value-of select="$labels/item[@id='list-activity-7']"/></td>
				<xsl:apply-templates select="q-6-2-row-CoilCoating"/>
			</tr>
			<tr>
				<th>8</th>
				<td><xsl:value-of select="$labels/item[@id='list-activity-8']"/></td>
				<xsl:apply-templates select="q-6-2-row-OtherCoating"/>
			</tr>
			<tr>
				<th>9</th>
				<td><xsl:value-of select="$labels/item[@id='list-activity-9']"/></td>
				<xsl:apply-templates select="q-6-2-row-Winding"/>
			</tr>
			<tr>
				<th>10</th>
				<td><xsl:value-of select="$labels/item[@id='list-activity-10']"/></td>
				<xsl:apply-templates select="q-6-2-row-Wooden"/>
			</tr>
			<tr>
				<th>11</th>
				<td><xsl:value-of select="$labels/item[@id='list-activity-11']"/></td>
				<xsl:apply-templates select="q-6-2-row-DryCleaning"/>
			</tr>
			<tr>
				<th>12</th>
				<td><xsl:value-of select="$labels/item[@id='list-activity-12']"/></td>
				<xsl:apply-templates select="q-6-2-row-Impregnation"/>
			</tr>
			<tr>
				<th>13</th>
				<td><xsl:value-of select="$labels/item[@id='list-activity-13']"/></td>
				<xsl:apply-templates select="q-6-2-row-Leather"/>
			</tr>
			<tr>
				<th>14</th>
				<td><xsl:value-of select="$labels/item[@id='list-activity-14']"/></td>
				<xsl:apply-templates select="q-6-2-row-Footwear"/>
			</tr>
			<tr>
				<th>15</th>
				<td><xsl:value-of select="$labels/item[@id='list-activity-15']"/></td>
				<xsl:apply-templates select="q-6-2-row-Lamination"/>
			</tr>
			<tr>
				<th>16</th>
				<td><xsl:value-of select="$labels/item[@id='list-activity-16']"/></td>
				<xsl:apply-templates select="q-6-2-row-Adhesive"/>
			</tr>
			<tr>
				<th>17</th>
				<td><xsl:value-of select="$labels/item[@id='list-activity-17']"/></td>
				<xsl:apply-templates select="q-6-2-row-Manufacture"/>
			</tr>
			<tr>
				<th>18</th>
				<td><xsl:value-of select="$labels/item[@id='list-activity-18']"/></td>
				<xsl:apply-templates select="q-6-2-row-Rubber"/>
			</tr>
			<tr>
				<th>19</th>
				<td><xsl:value-of select="$labels/item[@id='list-activity-19']"/></td>
				<xsl:apply-templates select="q-6-2-row-Oil"/>
			</tr>																																																			
			<tr>
				<th>20</th>
				<td><xsl:value-of select="$labels/item[@id='list-activity-20']"/></td>
				<xsl:apply-templates select="q-6-2-row-Pharmaceutical"/>
			</tr>
			<tr>
				<th>21</th>
				<td><xsl:value-of select="$labels/item[@id='list-activity-21']"/></td>
				<xsl:apply-templates select="q-6-2-row-NewCars"/>
			</tr>
			<tr>
				<th>22</th>
				<td><xsl:value-of select="$labels/item[@id='list-activity-22']"/></td>
				<xsl:apply-templates select="q-6-2-row-NewTruck"/>
			</tr>
			<tr>
				<th>23</th>
				<td><xsl:value-of select="$labels/item[@id='list-activity-23']"/></td>
				<xsl:apply-templates select="q-6-2-row-NewVans"/>
			</tr>
			<tr>
				<th>24</th>
				<td><xsl:value-of select="$labels/item[@id='list-activity-24']"/></td>
				<xsl:apply-templates select="q-6-2-row-NewBuses"/>
			</tr>			
			<tr>			
				<td colspan="4"><xsl:value-of select="$labels/item[@id='q-table-footer']"/></td>
			</tr>																		
		</table>
	</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="''"/>
		<td  align="center" class="answer">
			<xsl:choose>
				<xsl:when test="string-length($answer)=0">
				-
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="$answer"/>
				</xsl:otherwise>
			</xsl:choose>
		</td>
	</xsl:template>
	
	<xsl:template name="buildTDAnswerActivity">
		<xsl:param name="answer" select="''"/>
		<td  align="center" class="answer">
			<xsl:choose>
				<xsl:when test="string-length($answer)=0">
				-
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="$labels/item[@value=$answer]"/>
				</xsl:otherwise>
			</xsl:choose>
		</td>
	</xsl:template>	
	
	<!-- YesNoUnknown implementation -->

	<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>