View stylesheet

XML schemas http://dd.eionet.europa.eu/schemas/dir199913ec_2014/schema199913.xsd
Output type HTML
Description HTML report
XSL file dir199913_2014_html.xsl (Last modified: 24 Jul 2014 14: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_2014_labels-en.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="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="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: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:call-template name="buildQuestion">
                    <xsl:with-param name="q">
                        <xsl:value-of select="$labels/item[@id='q-2-1-e']"/>
                    </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-f']"/>
                    </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-g']"/>
                    </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-h']"/>
                    </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-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-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-2-3-url']"/>
                    </xsl:with-param>
                </xsl:call-template>

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

                <br/>

                <xsl:call-template name="buildQuestion">
                    <xsl:with-param name="q">
                        <xsl:value-of select="$labels/item[@id='q-2-3-contact-details']"/>
                    </xsl:with-param>
                </xsl:call-template>
                <br/>
                <xsl:call-template name="buildQuestion">
                    <xsl:with-param name="q">
                        <xsl:value-of select="$labels/item[@id='q-2-3-installations']"/>
                    </xsl:with-param>
                </xsl:call-template>
                <br/>
                <xsl:call-template name="buildLiteralAnswer">
                    <xsl:with-param name="answer">
                        <xsl:value-of select="q-2/q-2-3/q-2-3-installations-contact-details"/>
                    </xsl:with-param>
                </xsl:call-template>
                <br/>

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

                <br/>
                <xsl:call-template name="buildQuestion">
                    <xsl:with-param name="q">
                        <xsl:value-of select="$labels/item[@id='q-5-t1-h2']"/>
                    </xsl:with-param>
                </xsl:call-template>
                <br/>
                <xsl:call-template name="buildQuestion">
                    <xsl:with-param name="q">
                        <xsl:value-of select="$labels/item[@id='q-5-t1-h3']"/>
                    </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-c']"/>
                    </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-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-2']"/>
					</xsl:with-param>
				</xsl:call-template>
                <br/>
                <xsl:call-template name="buildQuestion">
                    <xsl:with-param name="q">
                        <xsl:value-of select="$labels/item[@id='q-6-2-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>
                <br/>
                <xsl:call-template name="buildLiteralAnswer">
                    <xsl:with-param name="answer">
                        <xsl:value-of select="q-7/q-7-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-7-2']"/>
                    </xsl:with-param>
                </xsl:call-template>
                <br/>
                <xsl:call-template name="buildLiteralAnswer">
                    <xsl:with-param name="answer">
                        <xsl:value-of select="q-7/q-7-2"/>
                    </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="10">31.12.2013</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>
                <th width="65px">E</th>
                <th width="65px">F</th>
                <th width="65px">G</th>
                <th width="65px">H</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="10"><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="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-name"/>
					</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-operator-name"/>
                </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-address-street"/>
                </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-address-town"/>
                </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-address-code"/>
                </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-address-country"/>
                </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-authority"/>
                </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" >
			<tr>
                <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-h1']"/></th>
                <th ><xsl:value-of select="$labels/item[@id='q-2-1-1-a-t-h4']"/></th>
                <th ><xsl:value-of select="$labels/item[@id='q-2-1-1-a-t-h5']"/></th>
                <th ><xsl:value-of select="$labels/item[@id='q-2-1-1-a-t-h6']"/></th>
                <th ><xsl:value-of select="$labels/item[@id='q-2-1-1-a-t-h7']"/></th>
                <th ><xsl:value-of select="$labels/item[@id='q-2-1-1-a-t-h8']"/></th>
                <th ><xsl:value-of select="$labels/item[@id='q-2-1-1-a-t-h9']"/></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>


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


            <xsl:call-template name="buildTDAnswer">
                <xsl:with-param name="answer">
                    <xsl:value-of select="q-3-row-substance-cas"/>
                </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>
                <th ><xsl:value-of select="$labels/item[@id='q-3-t-h4']"/></th>
                <th ><xsl:value-of select="$labels/item[@id='q-3-t-h5']"/></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-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>
                <th width="175px"><xsl:value-of select="$labels/item[@id='q-5-t1-h4']"/></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/q-5-t1-row-Heatset-colA"/>
                <xsl:apply-templates select="q-5-t1-row-Heatset/q-5-t1-row-Heatset-colB"/>
                <xsl:apply-templates select="../q-5-t2/q-5-t2-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/q-5-t1-row-Rotogravure-colA"/>
                <xsl:apply-templates select="q-5-t1-row-Rotogravure/q-5-t1-row-Rotogravure-colB"/>
                <xsl:apply-templates select="../q-5-t2/q-5-t2-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/q-5-t1-row-Flexography-colA"/>
                <xsl:apply-templates select="q-5-t1-row-Flexography/q-5-t1-row-Flexography-colB"/>
                <xsl:apply-templates select="../q-5-t2/q-5-t2-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/q-5-t1-row-Surface-colA"/>
                <xsl:apply-templates select="q-5-t1-row-Surface/q-5-t1-row-Surface-colB"/>
                <xsl:apply-templates select="../q-5-t2/q-5-t2-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/q-5-t1-row-OtherSurface-colA"/>
                <xsl:apply-templates select="q-5-t1-row-OtherSurface/q-5-t1-row-OtherSurface-colB"/>
                <xsl:apply-templates select="../q-5-t2/q-5-t2-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/q-5-t1-row-Vehicle-colA"/>
                <xsl:apply-templates select="q-5-t1-row-Vehicle/q-5-t1-row-Vehicle-colB"/>
                <xsl:apply-templates select="../q-5-t2/q-5-t2-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/q-5-t1-row-CoilCoating-colA"/>
                <xsl:apply-templates select="q-5-t1-row-CoilCoating/q-5-t1-row-CoilCoating-colB"/>
                <xsl:apply-templates select="../q-5-t2/q-5-t2-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/q-5-t1-row-OtherCoating-colA"/>
                <xsl:apply-templates select="q-5-t1-row-OtherCoating/q-5-t1-row-OtherCoating-colB"/>
                <xsl:apply-templates select="../q-5-t2/q-5-t2-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/q-5-t1-row-Winding-colA"/>
                <xsl:apply-templates select="q-5-t1-row-Winding/q-5-t1-row-Winding-colB"/>
                <xsl:apply-templates select="../q-5-t2/q-5-t2-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/q-5-t1-row-Wooden-colA"/>
                <xsl:apply-templates select="q-5-t1-row-Wooden/q-5-t1-row-Wooden-colB"/>
                <xsl:apply-templates select="../q-5-t2/q-5-t2-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/q-5-t1-row-DryCleaning-colA"/>
                <xsl:apply-templates select="q-5-t1-row-DryCleaning/q-5-t1-row-DryCleaning-colB"/>
                <xsl:apply-templates select="../q-5-t2/q-5-t2-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/q-5-t1-row-Impregnation-colA"/>
                <xsl:apply-templates select="q-5-t1-row-Impregnation/q-5-t1-row-Impregnation-colB"/>
                <xsl:apply-templates select="../q-5-t2/q-5-t2-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/q-5-t1-row-Leather-colA"/>
                <xsl:apply-templates select="q-5-t1-row-Leather/q-5-t1-row-Leather-colB"/>
                <xsl:apply-templates select="../q-5-t2/q-5-t2-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/q-5-t1-row-Footwear-colA"/>
                <xsl:apply-templates select="q-5-t1-row-Footwear/q-5-t1-row-Footwear-colB"/>
                <xsl:apply-templates select="../q-5-t2/q-5-t2-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/q-5-t1-row-Lamination-colA"/>
                <xsl:apply-templates select="q-5-t1-row-Lamination/q-5-t1-row-Lamination-colB"/>
                <xsl:apply-templates select="../q-5-t2/q-5-t2-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/q-5-t1-row-Adhesive-colA"/>
                <xsl:apply-templates select="q-5-t1-row-Adhesive/q-5-t1-row-Adhesive-colB"/>
                <xsl:apply-templates select="../q-5-t2/q-5-t2-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/q-5-t1-row-Manufacture-colA"/>
                <xsl:apply-templates select="q-5-t1-row-Manufacture/q-5-t1-row-Manufacture-colB"/>
                <xsl:apply-templates select="../q-5-t2/q-5-t2-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/q-5-t1-row-Rubber-colA"/>
                <xsl:apply-templates select="q-5-t1-row-Rubber/q-5-t1-row-Rubber-colB"/>
                <xsl:apply-templates select="../q-5-t2/q-5-t2-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/q-5-t1-row-Oil-colA"/>
                <xsl:apply-templates select="q-5-t1-row-Oil/q-5-t1-row-Oil-colB"/>
                <xsl:apply-templates select="../q-5-t2/q-5-t2-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/q-5-t1-row-Pharmaceutical-colA"/>
                <xsl:apply-templates select="q-5-t1-row-Pharmaceutical/q-5-t1-row-Pharmaceutical-colB"/>
                <xsl:apply-templates select="../q-5-t2/q-5-t2-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/q-5-t1-row-NewCars-colA"/>
                <xsl:apply-templates select="q-5-t1-row-NewCars/q-5-t1-row-NewCars-colB"/>
                <xsl:apply-templates select="../q-5-t2/q-5-t2-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/q-5-t1-row-NewTruck-colA"/>
                <xsl:apply-templates select="q-5-t1-row-NewTruck/q-5-t1-row-NewTruck-colB"/>
                <xsl:apply-templates select="../q-5-t2/q-5-t2-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/q-5-t1-row-NewVans-colA"/>
                <xsl:apply-templates select="q-5-t1-row-NewVans/q-5-t1-row-NewVans-colB"/>
                <xsl:apply-templates select="../q-5-t2/q-5-t2-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/q-5-t1-row-NewBuses-colA"/>
                <xsl:apply-templates select="q-5-t1-row-NewBuses/q-5-t1-row-NewBuses-colB"/>
                <xsl:apply-templates select="../q-5-t2/q-5-t2-NewBuses"/>
			</tr>
			<tr>
				<td colspan="5"><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="left">
			<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>
					<xsl:call-template name="buildTDAnswer">
						<xsl:with-param name="answer">
							<xsl:value-of select="@xml:lang"/>
						</xsl:with-param>
					</xsl:call-template>
			</tr>
		</table>
	</xsl:template>
	<xsl:template name="emptyRow">
		<br/>
		<br/>
	</xsl:template>
</xsl:stylesheet>