XML schema |
http://dd.eionet.europa.eu/schemas/fgases/FGasesReporting.xsd
|
---|---|
Output type | HTML |
Description | HTML printout |
XSL file | fgases-html.xsl (Last modified: 19 Feb 2014 17:36 ) |
<?xml version="1.0" encoding="UTF-8"?> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns="http://www.w3.org/1999/xhtml" version="1.0" exclude-result-prefixes="xml"> <xsl:output method="xml" indent="yes" doctype-public="-//W3C//DTD XHTML 1.0 Strict//EN" doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd" omit-xml-declaration="yes" /> <xsl:template match="FGasesReporting"> <html lang="en" xmlns="http://www.w3.org/1999/xhtml"> <head> <title>Fluorinated Greenhouse Gas (F-Gas) Reporting Form</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <!-- <link rel="stylesheet" type="text/css" media="print" href="http://www.eionet.europa.eu/styles/eionet2007/print.css" /> <link rel="stylesheet" type="text/css" href="http://www.eionet.europa.eu/styles/eionet2007/screen.css" media="screen" title="Eionet 2007 style" /> --> <style type="text/css"> h2 { font-family: arial, verdana, sans-serif; } h1 { font-size: 160%; padding-bottom: 0.5em; border-bottom: 1px solid #999999; } body { font-size: 80%; font-family: verdana, helvetica, arial, sans-serif; color: #333; } caption { display: none; font-family: vardana, verdana, helvetica, arial, sans-serif; text-align: left; font-size: 150%; } table { font-size: 100%; border: 1px solid #bbb; margin: 0 0 2em 0; border-collapse: collapse; } .sub{ font-size:0.8em; } sup{ font-size:0.8em; font-style:italic; color: #777; } .datatable tr.th{ text-align:left; } .datatable2 tr.th{ text-align:left; } .datatable2{ margin: 0 0 0 0; border: 1px solid #bbb; border-collapse: collapse; } th, td { font-size: 100%; border: 1px solid #bbb; } th { background-color:#f6f6f6; text-align:left; vertical-align: top; font-weight: normal; color: black; } table { font-size: 100%; border: 1px solid #bbb; margin: 0 0 2em 0; border-collapse: collapse; } .left{ text-align:left; } .bold{ font-weight: bold; } .transactionColum{ width: 15em; } .substanceColum{ width: 5em; text-align:center; } .exportRow1{ } .exportRow2{ width: 7em; } .cellHeight{ height: 1.4em; } .generalReportDataColum{ width: 10em; } .metadata_table tr th:first-child{ width:15em; } .metadata_table td { width:10em; } .footnote-b-tr td{ word-wrap:break-word; width: 10em; } .footnote span, div.footnote{ font-size:0.9em; font-style:italic; color: #777; } .commentTbl tr.th{ width: 10em; } .commentTbl th.col-1{ width: 5em; } .commentTbl th.col-2{ width: 14.5em; } .commentTbl th.col-3{ width: 5em; } .commentTbl th.col-4{ width: 5em; } .num_cell{ text-align:right; background-color: #FFFFE0; padding-right:0.2em; white-space : nowrap; padding-left:0.2em; } .total{ /* font-weight:bold; */ color: black; background-color: #888; text-align:right; padding-left:0.2em; padding-right:0.2em; white-space : nowrap; } </style> </head> <body> <h1>Fluorinated Greenhouse Gas (F-Gas) Reporting Form</h1> <xsl:apply-templates select="GeneralReportData | Reports[@gasGroup='HFC' and @reportType='ProducerImporter']"/> <xsl:if test="exists(CoProducerReports[@gasGroup='HFC']/CoProducerReport[string-length(CoProducer) > 0]) or exists(CoProducerReports[@gasGroup='HFC']/CoProducerReport/Transactions/Transaction[string-length(ValueInTons) gt 0])"> <xsl:apply-templates select="CoProducerReports[@gasGroup='HFC']"/> </xsl:if> <xsl:apply-templates select=" Reports[@gasGroup='HFC-preparations' and @reportType='Importer']"/> <xsl:apply-templates select=" Reports[@gasGroup='PFC' and @reportType='ProducerImporter']"/> <xsl:if test="exists(CoProducerReports[@gasGroup='PFC']/CoProducerReport[string-length(CoProducer) > 0]) or exists(CoProducerReports[@gasGroup='PFC']/CoProducerReport/Transactions/Transaction[string-length(ValueInTons) gt 0])"> <xsl:apply-templates select="CoProducerReports[@gasGroup='PFC']"/> </xsl:if> <xsl:apply-templates select=" Reports[@gasGroup='SF6' and @reportType='ProducerImporter']"/> <xsl:if test="exists(CoProducerReports[@gasGroup='SF6']/CoProducerReport[string-length(CoProducer) > 0]) or exists(CoProducerReports[@gasGroup='SF6']/CoProducerReport/Transactions/Transaction[string-length(ValueInTons) gt 0])"> <xsl:apply-templates select="CoProducerReports[@gasGroup='SF6']"/> </xsl:if> <xsl:call-template name="Exporter"/> </body> </html> </xsl:template> <xsl:template match="GeneralReportData"> <table class="datatable metadata_table"> <tr> <th>Report status</th> <td> <span> <xsl:attribute name="style"> <xsl:choose><xsl:when test="@status='submitted'">color:green</xsl:when><xsl:when test="@status='confirmed'">color:orange</xsl:when><xsl:otherwise>color:red</xsl:otherwise></xsl:choose>;font-weight:bold </xsl:attribute> <xsl:choose> <xsl:when test="@status='incomplete'">Incomplete</xsl:when> <xsl:when test="@status='confirmed'">In progress</xsl:when> <!-- <xsl:value-of select="concat('Report not certified; Company info: ',@status)"/> --> <xsl:when test="@status='submitted'">Submitted</xsl:when> <xsl:otherwise><xsl:value-of select="@status"/></xsl:otherwise> </xsl:choose> </span> </td> </tr> <xsl:if test="@status='submitted'"> <tr> <th>Date of Submission</th> <td><xsl:value-of select="SubmissionDate"/></td> </tr> </xsl:if> </table> <h2>Company information</h2> <table class="datatable"> <tr> <th class="transactionColum">Company ID</th> <td class="generalReportDataColum"><xsl:value-of select="Company/CompanyId"/></td> </tr> <tr> <th class="transactionColum">Company Name</th> <td class="generalReportDataColum"><xsl:value-of select="Company/CompanyName"/></td> </tr> <tr> <th class="transactionColum">Company Address</th> <td class="generalReportDataColum"><xsl:value-of select="Company/PostalAddress/StreetAddress"/></td> </tr> <tr> <th class="transactionColum"></th> <td class="generalReportDataColum"> <xsl:value-of select="Company/PostalAddress/City"/> <xsl:if test="string-length(Company/PostalAddress/Region) > 0">, <xsl:value-of select="Company/PostalAddress/Region"/></xsl:if> </td> </tr> <tr> <th class="transactionColum">Postal Code</th> <td class="generalReportDataColum"> <xsl:value-of select="Company/PostalAddress/PostalCode"/> </td> </tr> <tr> <th class="transactionColum">Country</th> <td class="generalReportDataColum"><xsl:value-of select="Company/Country"/></td> </tr> <tr> <th class="transactionColum">EORI number</th> <td class="generalReportDataColum"><xsl:value-of select="Company/EoriCode"/></td> </tr> <tr> <th class="transactionColum">VAT number</th> <td class="generalReportDataColum"><xsl:value-of select="Company/VatCode"/></td> </tr> <xsl:for-each select="Company/ContactInfo"> <tr> <td colspan="2"> </td> </tr> <tr> <th class="transactionColum">Contact Person <xsl:if test="count(../ContactInfo) > 1">(<xsl:value-of select="position()"/>)</xsl:if> </th> <td class="generalReportDataColum"><xsl:value-of select="ContactPerson"/></td> </tr> <tr> <th class="transactionColum">Phone Number</th> <td class="generalReportDataColum"><xsl:value-of select="Telephone"/></td> </tr> <tr> <th class="transactionColum">Fax Number</th> <td class="generalReportDataColum"><xsl:value-of select="FaxNumber"/></td> </tr> <tr> <th class="transactionColum">Email Address</th> <td class="generalReportDataColum"><xsl:value-of select="Email"/></td> </tr> </xsl:for-each> <tr> <td colspan="2" class="left"> <b><span style="color:red"> <xsl:attribute name="style"> <xsl:choose><xsl:when test="Company/@status='confirmed'">color:green</xsl:when><xsl:otherwise>color:red</xsl:otherwise></xsl:choose> </xsl:attribute> <xsl:value-of select="Company/@status"/> </span></b> </td> </tr> </table> <table class="datatable"> <tr> <th class="transactionColum">Transaction Year</th> <td class="generalReportDataColum"><xsl:value-of select="TransactionYear"/></td> </tr> </table> <table class="datatable "> <tr> <th colspan="2" class="bold transactionColum">Activities</th> </tr> <xsl:if test="Company/Activities/Production='true'"> <tr> <td style="text-align:left;background-color:#BBBBBB;width:10em;"> <xsl:if test="Company/Activities/Production='true'"><div>Producer</div></xsl:if> </td> <td><input type="checkbox" checked="true" disabled="disabled"/></td> </tr> <tr><td style="text-align:right;padding-right:0.2em;"> <xsl:if test="Company/Activities/Production[@gasGroup='HFC']='true'"><div>HFC</div></xsl:if> <xsl:if test="Company/Activities/Production[@gasGroup='PFC']='true'"><div>PFC</div></xsl:if> <xsl:if test="Company/Activities/Production[@gasGroup='SF6']='true'"><div>SF6</div></xsl:if> </td></tr> </xsl:if> <xsl:if test="Company/Activities/Import='true'"> <tr> <td style="text-align:left;background-color:#BBBBBB;width:10em;"> <xsl:if test="Company/Activities/Import='true'"><div>Importer</div></xsl:if> </td> <td><input type="checkbox" checked="true" disabled="disabled"/></td> </tr> <tr><td style="text-align:right;padding-right:0.2em;"> <xsl:if test="Company/Activities/Import[@gasGroup='HFC']='true'"><div>HFC</div></xsl:if> <xsl:if test="Company/Activities/Import[@gasGroup='PFC']='true'"><div>PFC</div></xsl:if> <xsl:if test="Company/Activities/Import[@gasGroup='SF6']='true'"><div>SF6</div></xsl:if> </td></tr> </xsl:if> <xsl:if test="Company/Activities/Export='true'"> <tr> <td style="text-align:left;background-color:#BBBBBB;width:10em;"> <xsl:if test="Company/Activities/Export='true'"><div>Exporter</div></xsl:if> </td> <td><input type="checkbox" checked="true" disabled="disabled"/></td> </tr> </xsl:if> <xsl:if test="Company/Activities/NoReporting='true'"> <tr> <td style="text-align:left;background-color:#BBBBBB;width:10em;"> <xsl:if test="Company/Activities/NoReporting='true'"><div>Not obliged to report (NIL report)</div></xsl:if> </td> <td><input type="checkbox" checked="true" disabled="disabled"/></td> </tr> </xsl:if> </table> <h2>Reported Fluorinated Greenhouse Gases</h2> <table class="datatable "> <xsl:if test="Company/Activities/Import[@gasGroup='HFC']='true' or Company/Activities/Production[@gasGroup='HFC']='true' or Company/Activities/Export='true'"> <tr> <td colspan="3" class="bold transactionColum" style="text-align:center;background-color:#BBBBBB;">HFCs</td> </tr> <xsl:for-each select="../Reports[@gasGroup='HFC' and @reportType='ProducerImporter']/Report "> <tr> <td class="substanceColum"/> <td><xsl:value-of select="Gas/Code"/></td> </tr> </xsl:for-each> </xsl:if> <xsl:if test="Company/Activities/Import[@gasGroup='HFC']='true' or Company/Activities/Export='true'"> <tr> <td colspan="3" class="bold transactionColum" style="text-align:center;background-color:#BBBBBB;">HFC preparations</td> </tr> <xsl:for-each select="../Reports[@gasGroup='HFC-preparations' and @reportType='Importer']/Report"> <tr> <td class="substanceColum"/> <td><xsl:value-of select="Gas/Code"/> <xsl:if test="Gas/IsNew = 'true'"><span style="font-weight:bold"> (New preparation)</span></xsl:if> </td> <td class="transactionColum"><xsl:value-of select="Gas/PreparationCompositions"/></td> </tr> </xsl:for-each> </xsl:if> <xsl:if test="Company/Activities/Production[@gasGroup='PFC']='true' or Company/Activities/Import[@gasGroup='PFC']='true' or Company/Activities/Export='true'"> <tr> <td colspan="3" class="bold transactionColum" style="text-align:center;background-color:#BBBBBB;">PFCs</td> </tr> <xsl:for-each select="../Reports[@gasGroup='PFC' and @reportType='ProducerImporter']/Report"> <tr> <td class="substanceColum"/> <td><xsl:value-of select="Gas/Code"/> <xsl:if test="Gas/IsNew = 'true'"><span style="font-weight:bold"> (New preparation)</span></xsl:if> </td> </tr> </xsl:for-each> </xsl:if> <xsl:if test="Company/Activities/Production[@gasGroup='SF6']='true' or Company/Activities/Import[@gasGroup='SF6']='true' or Company/Activities/Export='true'"> <tr> <td colspan="3" class="bold transactionColum" style="text-align:center;background-color:#BBBBBB;">SF6</td> </tr> <xsl:for-each select="../Reports[@gasGroup='SF6' and @reportType='ProducerImporter']/Report"> <tr> <td class="substanceColum"/> <td><xsl:value-of select="Gas/Code"/></td> </tr> </xsl:for-each> </xsl:if> </table> </xsl:template> <xsl:template match="Reports[@gasGroup='HFC' and @reportType='ProducerImporter']"> <xsl:if test="../GeneralReportData/Company/Activities/Import[@gasGroup='HFC']='true' or ../GeneralReportData/Company/Activities/Production[@gasGroup='HFC']='true'"> <h2>Producer and Importer Form: HFCs</h2> <table class="datatable"> <tr> <th class="bold">Transactions / (metric tonnes)</th> <xsl:for-each select="Report"> <th class="bold substanceColum"><xsl:value-of select="Gas/Code"/></th> </xsl:for-each> </tr> <tr> <th class="transactionColum">A Total new production from your facility/ies</th> <xsl:for-each select="Report"> <xsl:apply-templates select="Transactions[@type='ProducerImporter']/Transaction[Name='Production_EC']/ValueInTons"/> </xsl:for-each> </tr> <tr> <th class="transactionColum">B Amount imported into the Community</th> <xsl:for-each select="Report"> <xsl:apply-templates select="Transactions[@type='ProducerImporter']/Transaction[Name='Import_into_EC']/ValueInTons"/> </xsl:for-each> </tr> <tr> <th class="transactionColum">C Amount exported for sale outside the Community</th> <xsl:for-each select="Report"> <xsl:apply-templates select="Transactions/Transaction[Name='Export_(I-P-Form)_from_EC']/ValueInTons"/> </xsl:for-each> </tr> <tr> <th class="transactionColum">D Other amounts collected for reclamation or destruction from within the Community</th> <xsl:for-each select="Report"> <xsl:apply-templates select="Transactions/Transaction[Name='Other_amounts_reclam_destruc_within_EC']/ValueInTons"/> </xsl:for-each> </tr> <tr> <td colspan="2" class="footnote"> <span >Transactions for Producers Only</span> </td> </tr> <tr> <th>E Purchases from Community co-producers</th> <xsl:for-each select="Report"> <xsl:call-template name="totalValue"><xsl:with-param name="num" select="Transactions/@totalCoProducerPurchasesFrom"/></xsl:call-template> </xsl:for-each> </tr> <tr> <th>F Sales to Community co-producers</th> <xsl:for-each select="Report"> <xsl:call-template name="totalValue"><xsl:with-param name="num" select="Transactions/@totalCoProducerSalesTo"/></xsl:call-template> </xsl:for-each> </tr> <tr> <th>G Amount purchased from other Community sources</th> <xsl:for-each select="Report"> <xsl:apply-templates select="Transactions/Transaction[Name='Amount_purchased_other_EC_source']/ValueInTons"/> </xsl:for-each> </tr> <tr> <td colspan="2" class="footnote"> <span >Stockpiles held during reporting year<sup>a</sup></span> </td> </tr> <tr> <th>H Stocks held at 1 January</th> <xsl:for-each select="Report"> <xsl:apply-templates select="Transactions/Transaction[Name='Stocks_held_1_January']/ValueInTons"/> </xsl:for-each> </tr> <tr> <th>I Stocks held at 31 December</th> <xsl:for-each select="Report"> <xsl:apply-templates select="Transactions/Transaction[Name='Stocks_held_31_December']/ValueInTons"/> </xsl:for-each> </tr> <tr> <td colspan="2" class="footnote"> <span >Reclamation, destruction, and feedstock use</span> </td> </tr> <tr> <th>J Amount reclaimed by your company</th> <xsl:for-each select="Report"> <xsl:apply-templates select="Transactions/Transaction[Name='Reclamation_own']/ValueInTons"/> </xsl:for-each> </tr> <tr> <th>K Amount destroyed by your company (on-site)</th> <xsl:for-each select="Report"> <xsl:apply-templates select="Transactions/Transaction[Name='Destruction_own']/ValueInTons"/> </xsl:for-each> </tr> <tr> <th>L Amount destroyed on your behalf (off-site within the Community)</th> <xsl:for-each select="Report"> <xsl:apply-templates select="Transactions/Transaction[Name='Destruction_on_behalf_in_EC']/ValueInTons"/> </xsl:for-each> </tr> <tr> <th>M Amount used as a feedstock by your company</th> <xsl:for-each select="Report"> <xsl:apply-templates select="Transactions/Transaction[Name='Feedstock_own_use']/ValueInTons"/> </xsl:for-each> </tr> <tr> <td colspan="2" class="footnote"> <span >Net amount available for sale in the Community</span> </td> </tr> <tr> <th>N Calculated Total<div class="footnote">(A+B-C+D+E-F+G+H-I-K-L-M)</div></th> <xsl:for-each select="Report"> <xsl:call-template name="totalValue"><xsl:with-param name="num" select="Transactions/@total"/></xsl:call-template> </xsl:for-each> </tr> <tr> <td colspan="2" class="footnote"> <span >Intended applications of amounts placed on Community market for the first time (best estimates)<sup>b</sup></span> </td> </tr> <tr> <th>O Refrigeration and air-conditioning</th> <xsl:for-each select="Report"> <xsl:apply-templates select="Transactions/Transaction[Name='App_Refrigeraration_air_cond']/ValueInTons"/> </xsl:for-each> </tr> <tr> <th>P Fire protection</th> <xsl:for-each select="Report"> <xsl:apply-templates select="Transactions/Transaction[Name='App_Fire_protection']/ValueInTons"/> </xsl:for-each> </tr> <tr> <th>Q Aerosols</th> <xsl:for-each select="Report"> <xsl:apply-templates select="Transactions/Transaction[Name='App_Aerosols']/ValueInTons"/> </xsl:for-each> </tr> <tr> <th>R Solvents</th> <xsl:for-each select="Report"> <xsl:apply-templates select="Transactions/Transaction[Name='App_Solvents']/ValueInTons"/> </xsl:for-each> </tr> <tr> <th>S Foams</th> <xsl:for-each select="Report"> <xsl:apply-templates select="Transactions/Transaction[Name='App_Foams']/ValueInTons"/> </xsl:for-each> </tr> <tr> <th>T Feedstock</th> <xsl:for-each select="Report"> <xsl:apply-templates select="Transactions/Transaction[Name='App_Feedstock']/ValueInTons"/> </xsl:for-each> </tr> <tr> <th>U Other or unknown</th> <xsl:for-each select="Report"> <xsl:apply-templates select="Transactions/Transaction[Name='App_Other_or_unknown']/ValueInTons"/> </xsl:for-each> </tr> <tr> <th>V Total amount placed on the Community market<sup>b</sup> <div class="footnote">(O+P+Q+R+S+T+U)</div></th> <xsl:for-each select="Report"> <xsl:call-template name="totalValue"><xsl:with-param name="num" select="Transactions/@totalCommunityMarket"/></xsl:call-template> </xsl:for-each> </tr> <tr> <th>W Total sold <div class="footnote">(C+F+N)</div></th> <xsl:for-each select="Report"> <xsl:call-template name="totalValue"><xsl:with-param name="num" select="Transactions/@totalSold"/></xsl:call-template> </xsl:for-each> </tr> </table> <br/> <table> <tr> <td colspan="2" class="footnote"> <sup>a</sup> <span> Importers should only report on imported quantities held in stocks, i.e., not on stockpiled quantities originally obtained from Community producers or distributors (best estimates where appropriate). Producers should report all stockpiled quantities regardless of source. </span> </td> </tr> <tr> <td colspan="2" class="footnote"> <sup>b</sup> <span> Total amount placed on the Community market does not include any quantities previously held by Community importers and/or distributors. Therefore, for importers, row V should equal row N; for producers, row V should equal row N minus any quantities sold on the Community market that were previously purchased from Community importers/distributors in this reporting year or in previous years. </span> </td> </tr> </table> <xsl:if test="count(Report/Transactions[@type='ProducerImporter']/Transaction[string-length(Description)>0]) > 0"> <span style="font-weight:bold"><sup>*</sup> Values have related comments that are listed in the table below</span> <h2>Comments related to values</h2> <table class="commentTbl"> <tr> <th class="col-1">Substance</th> <th class="col-2">Transaction</th> <th class="col-3">Value</th> <th class="col-4">Comment</th> </tr> <xsl:apply-templates mode="comments" select="Report/Transactions"/> </table> </xsl:if> </xsl:if> </xsl:template> <xsl:template match="Transaction" mode="comments"> <xsl:if test="string-length(Description) > 0"> <xsl:variable name="transactionlabel"> <xsl:call-template name="TransactionLabel"> <xsl:with-param name="transactionName"><xsl:value-of select="Name"/></xsl:with-param> </xsl:call-template> </xsl:variable> <tr> <td><xsl:value-of select="../../Gas/Code"/></td> <td><xsl:value-of select="$transactionlabel"/></td> <td class="num_cell"><xsl:call-template name="formatValue"><xsl:with-param name="num" select="ValueInTons"/></xsl:call-template></td> <td><xsl:value-of select="Description"/></td> </tr> </xsl:if> </xsl:template> <xsl:template name="TransactionLabel"> <xsl:param name="transactionName"/> <xsl:choose> <xsl:when test="$transactionName = 'Stocks_held_1_January'"> Stocks held at 1 January </xsl:when> <xsl:when test="$transactionName = 'Stocks_held_31_December'"> Stocks held at 31 December </xsl:when> <xsl:when test="$transactionName = 'App_Other_or_unknown'"> Other or unknown </xsl:when> <!-- <xsl:otherwise> <xsl:value-of select="$transactionName"/> </xsl:otherwise> --> </xsl:choose> </xsl:template> <xsl:template match="CoProducerReports"> <h2>Co-Producer Form: <xsl:value-of select="@gasGroup"/><xsl:if test="@gasGroup != 'SF6'">s</xsl:if></h2> <xsl:variable name="gascodes"><xsl:value-of select="CoProducerReport[1][@type='purchase']/Transactions[1]/Transaction/GasCode"/></xsl:variable> <table class="datatable2"> <tr> <th class="bold transactionColum">Company name/(metric tonne)</th> <xsl:for-each select="CoProducerReport[1][@type='purchase']/Transactions[1]/Transaction"> <th class="bold substanceColum"><xsl:value-of select="GasCode"/></th> </xsl:for-each> </tr> <tr> <td class="footnote"><xsl:attribute name="colspan"><xsl:value-of select="count(CoProducerReport[1][@type='purchase']/Transactions[1]/Transaction/GasCode)+1"/></xsl:attribute> <span class="cellHeight transactionColum">Purchases from Community co-producers</span> </td> </tr> <xsl:for-each select="CoProducerReport[@type='purchase']"> <tr> <th class="transactionColum"><xsl:value-of select="CoProducer"/></th> <xsl:for-each select="Transactions/Transaction"> <xsl:apply-templates select="ValueInTons"/> </xsl:for-each> </tr> </xsl:for-each> <tr> <td class="transactionColum">Total</td> <xsl:for-each select="CoProducerReport[1][@type='purchase']/Transactions[1]/Transaction"> <xsl:call-template name="totalValue"><xsl:with-param name="num" select="round(sum(../../../CoProducerReport[@type='purchase']/Transactions/Transaction[GasCode = current()/GasCode]/ValueInTons[string-length(.) > 0 and (number(.) > 0 or number(.) <= 0)]) * 1000) div 1000"/></xsl:call-template> </xsl:for-each> </tr> <tr> <td class="footnote"><xsl:attribute name="colspan"><xsl:value-of select="count(CoProducerReport[1][@type='purchase']/Transactions[1]/Transaction/GasCode)+1"/></xsl:attribute> <span class="footnote cellHeight transactionColum">Sales to Community co-producers</span> </td> </tr> <xsl:for-each select="CoProducerReport[@type='sale']"> <tr> <th class="transactionColum"><xsl:value-of select="CoProducer"/></th> <xsl:for-each select="Transactions/Transaction"> <xsl:apply-templates select="ValueInTons"/> </xsl:for-each> </tr> </xsl:for-each> <tr> <td class="transactionColum">Total</td> <xsl:for-each select="CoProducerReport[@type='sale'][1]/Transactions[1]/Transaction"> <xsl:call-template name="totalValue"><xsl:with-param name="num" select="round(sum(../../../CoProducerReport[@type='sale']/Transactions/Transaction[GasCode = current()/GasCode]/ValueInTons[string-length(.) > 0 and (number(.) > 0 or number(.) <= 0)]) * 1000) div 1000"/></xsl:call-template> </xsl:for-each> </tr> </table> </xsl:template> <xsl:template match="Reports[@gasGroup='HFC-preparations' and @reportType='Importer']"> <xsl:if test="../GeneralReportData/Company/Activities/Import[@gasGroup='HFC']='true'"> <h2>Importer: HFC preparations</h2> <table class="datatable"> <tr> <th class="bold">Transactions / (metric tonnes)</th> <xsl:for-each select="Report"> <th class="bold substanceColum"><xsl:value-of select="Gas/Code"/></th> </xsl:for-each> </tr> <tr> <th class="transactionColum">A Amount imported into the Community</th> <xsl:for-each select="Report"> <xsl:apply-templates select="Transactions/Transaction[Name='Import_into_EC']/ValueInTons"/> </xsl:for-each> </tr> <tr> <th class="transactionColum">B Amount exported for sale outside the Community</th> <xsl:for-each select="Report"> <xsl:apply-templates select="Transactions/Transaction[Name='Export_(I-P-Form)_from_EC']/ValueInTons"/> </xsl:for-each> </tr> <tr> <th class="transactionColum">C Other amounts collected for reclamation or destruction from within the Community</th> <xsl:for-each select="Report"> <xsl:apply-templates select="Transactions/Transaction[Name='Other_amounts_reclam_destruc_within_EC']/ValueInTons"/> </xsl:for-each> </tr> <tr> <td colspan="2" class="footnote"> <span >Stockpiles held during reporting year</span> </td> </tr> <tr> <th class="transactionColum">D Stocks held at 1 January</th> <xsl:for-each select="Report"> <xsl:apply-templates select="Transactions/Transaction[Name='Stocks_held_1_January']/ValueInTons"/> </xsl:for-each> </tr> <tr> <th class="transactionColum">E Stocks held at 31 December</th> <xsl:for-each select="Report"> <xsl:apply-templates select="Transactions/Transaction[Name='Stocks_held_31_December']/ValueInTons"/> </xsl:for-each> </tr> <tr> <td colspan="2" class="footnote"> <span >Reclamation, destruction, and feedstock use</span> </td> </tr> <tr> <th class="transactionColum">F Amount reclaimed by your company</th> <xsl:for-each select="Report"> <xsl:apply-templates select="Transactions/Transaction[Name='Reclamation_own']/ValueInTons"/> </xsl:for-each> </tr> <tr> <th class="transactionColum">G Amount destroyed by your company (on-site)</th> <xsl:for-each select="Report"> <xsl:apply-templates select="Transactions/Transaction[Name='Destruction_own']/ValueInTons"/> </xsl:for-each> </tr> <tr> <th class="transactionColum">H Amount destroyed on your behalf (off-site within the Community)</th> <xsl:for-each select="Report"> <xsl:apply-templates select="Transactions/Transaction[Name='Destruction_on_behalf_in_EC']/ValueInTons"/> </xsl:for-each> </tr> <tr> <th class="transactionColum">I Amount used as a feedstock by your company</th> <xsl:for-each select="Report"> <xsl:apply-templates select="Transactions/Transaction[Name='Feedstock_own_use']/ValueInTons"/> </xsl:for-each> </tr> <tr> <td colspan="2" class="footnote"> <span >Net amount available for sale in the Community</span> </td> </tr> <tr> <th class="transactionColum">J Calculated Total <div class="footnote">(A-B+C+D-E-F-G-H)</div></th> <xsl:for-each select="Report"> <xsl:call-template name="totalValue"><xsl:with-param name="num" select="Transactions/@total"/></xsl:call-template> </xsl:for-each> </tr> <tr> <td colspan="2" class="footnote"> <span >Intended applications of amounts placed on Community market for the first time (best estimates)</span> </td> </tr> <tr> <th class="transactionColum">K Refrigeration and air-conditioning</th> <xsl:for-each select="Report"> <xsl:apply-templates select="Transactions/Transaction[Name='App_Refrigeraration_air_cond']/ValueInTons"/> </xsl:for-each> </tr> <tr> <th class="transactionColum">L Fire protection</th> <xsl:for-each select="Report"> <xsl:apply-templates select="Transactions/Transaction[Name='App_Fire_protection']/ValueInTons"/> </xsl:for-each> </tr> <tr> <th class="transactionColum">M Aerosols</th> <xsl:for-each select="Report"> <xsl:apply-templates select="Transactions/Transaction[Name='App_Aerosols']/ValueInTons"/> </xsl:for-each> </tr> <tr> <th class="transactionColum">N Solvents</th> <xsl:for-each select="Report"> <xsl:apply-templates select="Transactions/Transaction[Name='App_Solvents']/ValueInTons"/> </xsl:for-each> </tr> <tr> <th class="transactionColum">O Foams</th> <xsl:for-each select="Report"> <xsl:apply-templates select="Transactions/Transaction[Name='App_Foams']/ValueInTons"/> </xsl:for-each> </tr> <tr> <th class="transactionColum">P Feedstock</th> <xsl:for-each select="Report"> <xsl:apply-templates select="Transactions/Transaction[Name='App_Feedstock']/ValueInTons"/> </xsl:for-each> </tr> <tr> <th class="transactionColum">Q Other or unknown</th> <xsl:for-each select="Report"> <xsl:apply-templates select="Transactions/Transaction[Name='App_Other_or_unknown']/ValueInTons"/> </xsl:for-each> </tr> <tr> <th class="transactionColum">R Total amount placed on the Community market<sup>b</sup><div class="footnote">(K+L+M+N+O+P+Q)</div></th> <xsl:for-each select="Report"> <xsl:call-template name="totalValue"><xsl:with-param name="num" select="Transactions/@totalCommunityMarket"/></xsl:call-template> </xsl:for-each> </tr> <tr> <th class="transactionColum">S Total sold<div class="footnote">(B+J)</div></th> <xsl:for-each select="Report"> <xsl:call-template name="totalValue"><xsl:with-param name="num" select="Transactions/@totalSold"/></xsl:call-template> </xsl:for-each> </tr> </table> <br/> <table> <tr> <td colspan="2" class="footnote"> <sup>a</sup> <span>Importers should only report on imported quantities held in stocks, i.e., not on stockpiled quantities originally obtained from Community producers or distributors (best estimates where appropriate). Producers should report all stockpiled quantities regardless of source. </span> </td> </tr> <tr> <td colspan="2" class="footnote"> <sup>b</sup> <span> Total in row R should equal total in row J. </span> </td> </tr> </table> <xsl:if test="count(Report/Transactions[@type='Importer']/Transaction[string-length(Description)>0]) > 0"> <span style="font-weight:bold"><sup>*</sup> Values have related comments that are listed in the table below</span> <h2>Comments related to values</h2> <table class="commentTbl"> <tr> <th class="col-1">Substance</th> <th class="col-2">Transaction</th> <th class="col-3">Value</th> <th class="col-4">Comment</th> </tr> <xsl:apply-templates mode="comments" select="Report/Transactions"/> </table> </xsl:if> </xsl:if> </xsl:template> <xsl:template match="Reports[@gasGroup='PFC' and @reportType='ProducerImporter']"> <xsl:if test="../GeneralReportData/Company/Activities/Production[@gasGroup='PFC']='true' or ../GeneralReportData/Company/Activities/Import[@gasGroup='PFC']='true'"> <h2>Producer and Importer Form: PFCs</h2> <table class="datatable"> <tr> <th class="bold">Transactions / (metric tonnes)</th> <xsl:for-each select="Report"> <th class="bold substanceColum"><xsl:value-of select="Gas/Code"/></th> </xsl:for-each> </tr> <tr> <th class="transactionColum">A Total new production from your facility/ies</th> <xsl:for-each select="Report"> <xsl:apply-templates select="Transactions/Transaction[Name='Production_EC']/ValueInTons"/> </xsl:for-each> </tr> <tr> <th class="transactionColum">B Amount imported into the Community</th> <xsl:for-each select="Report"> <xsl:apply-templates select="Transactions/Transaction[Name='Import_into_EC']/ValueInTons"/> </xsl:for-each> </tr> <tr> <th class="transactionColum">C Amount exported for sale outside the Community</th> <xsl:for-each select="Report"> <xsl:apply-templates select="Transactions/Transaction[Name='Export_(I-P-Form)_from_EC']/ValueInTons"/> </xsl:for-each> </tr> <tr> <th class="transactionColum">D Other amounts collected for reclamation or destruction from within the Community</th> <xsl:for-each select="Report"> <xsl:apply-templates select="Transactions/Transaction[Name='Other_amounts_reclam_destruc_within_EC']/ValueInTons"/> </xsl:for-each> </tr> <tr> <td colspan="2" class="footnote"> <span >Transactions for Producers Only</span> </td> </tr> <tr> <th class="transactionColum">E Purchases from Community co-producers</th> <xsl:for-each select="Report"> <xsl:call-template name="totalValue"><xsl:with-param name="num" select="Transactions/@totalCoProducerPurchasesFrom"/></xsl:call-template> </xsl:for-each> </tr> <tr> <th class="transactionColum">F Sales to Community co-producers</th> <xsl:for-each select="Report"> <xsl:call-template name="totalValue"><xsl:with-param name="num" select="Transactions/@totalCoProducerSalesTo"/></xsl:call-template> </xsl:for-each> </tr> <tr> <th class="transactionColum">G Amount purchased from other Community sources</th> <xsl:for-each select="Report"> <xsl:apply-templates select="Transactions/Transaction[Name='Amount_purchased_other_EC_source']/ValueInTons"/> </xsl:for-each> </tr> <tr> <td colspan="2" class="footnote"> <span >Stockpiles held during reporting year</span><sup>a</sup> </td> </tr> <tr> <th class="transactionColum">H Stocks held at 1 January</th> <xsl:for-each select="Report"> <xsl:apply-templates select="Transactions/Transaction[Name='Stocks_held_1_January']/ValueInTons"/> </xsl:for-each> </tr> <tr> <th class="transactionColum">I Stocks held at 31 December</th> <xsl:for-each select="Report"> <xsl:apply-templates select="Transactions/Transaction[Name='Stocks_held_31_December']/ValueInTons"/> </xsl:for-each> </tr> <tr> <td colspan="2" class="footnote"> <span >Reclamation and destruction</span> </td> </tr> <tr> <th class="transactionColum">J Amount reclaimed by your company</th> <xsl:for-each select="Report"> <xsl:apply-templates select="Transactions/Transaction[Name='Reclamation_own']/ValueInTons"/> </xsl:for-each> </tr> <tr> <th class="transactionColum">K Amount destroyed by your company (on-site)</th> <xsl:for-each select="Report"> <xsl:apply-templates select="Transactions/Transaction[Name='Destruction_own']/ValueInTons"/> </xsl:for-each> </tr> <tr> <th class="transactionColum">L Amount destroyed on your behalf (off-site within the Community)</th> <xsl:for-each select="Report"> <xsl:apply-templates select="Transactions/Transaction[Name='Destruction_on_behalf_in_EC']/ValueInTons"/> </xsl:for-each> </tr> <tr> <td colspan="2" class="footnote"> <span >Net amount available for sale in the Community</span> </td> </tr> <tr> <th class="transactionColum">M Calculated total<div class="footnote">(A+B-C+D+E-F+G+H-I-K-L)</div></th> <xsl:for-each select="Report"> <xsl:call-template name="totalValue"><xsl:with-param name="num" select="Transactions/@total"/></xsl:call-template> </xsl:for-each> </tr> <tr> <td colspan="2" class="footnote"> <span >Intended applications of amounts placed on Community market for the first time (best estimates)<sup>b</sup></span> </td> </tr> <tr> <th class="transactionColum">N Solvents</th> <xsl:for-each select="Report"> <xsl:apply-templates select="Transactions/Transaction[Name='App_Solvents']/ValueInTons"/> </xsl:for-each> </tr> <tr> <th class="transactionColum">O Semiconductor Manufacture</th> <xsl:for-each select="Report"> <xsl:apply-templates select="Transactions/Transaction[Name='App_Semiconductor_manufacture']/ValueInTons"/> </xsl:for-each> </tr> <tr> <th class="transactionColum">P Other or Unknown</th> <xsl:for-each select="Report"> <xsl:apply-templates select="Transactions/Transaction[Name='App_Other_or_unknown']/ValueInTons"/> </xsl:for-each> </tr> <tr> <th class="transactionColum">Q Total amount placed on the Community market<div class="footnote">(N+O+P)</div></th> <xsl:for-each select="Report"> <xsl:call-template name="totalValue"><xsl:with-param name="num" select="Transactions/@totalCommunityMarket"/></xsl:call-template> </xsl:for-each> </tr> <tr> <th class="transactionColum">R Total sold<div class="footnote">(C+F+M)</div></th> <xsl:for-each select="Report"> <xsl:call-template name="totalValue"><xsl:with-param name="num" select="Transactions/@totalSold"/></xsl:call-template> </xsl:for-each> </tr> </table> <br/> <table> <tr> <td colspan="2" class="footnote"> <sup>a</sup> <span>Importers should only report on imported quantities held in stocks, i.e., not on stockpiled quantities originally obtained from Community producers or distributors (best estimates where appropriate). Producers should report all stockpiled quantities regardless of source. </span> </td> </tr> <tr> <td colspan="2" class="footnote"> <sup>b</sup> <span>Total amount placed on the Community market does not include any quantities previously held by Community importers and/or distributors. Therefore, for importers, row Q should equal row M; for producers, row Q should equal row M minus any quantities sold on the Community market that were previously purchased from Community importers/distributors in this reporting year or in previous years. </span> </td> </tr> </table> <xsl:if test="count(Report/Transactions[@type='ProducerImporter']/Transaction[string-length(Description)>0]) > 0"> <span style="font-weight:bold"><sup>*</sup> Values have related comments that are listed in the table below</span> <h2>Comments related to values</h2> <table class="commentTbl"> <tr> <th class="col-1">Substance</th> <th class="col-2">Transaction</th> <th class="col-3">Value</th> <th class="col-4">Comment</th> </tr> <xsl:apply-templates mode="comments" select="Report/Transactions"/> </table> </xsl:if> </xsl:if> </xsl:template> <xsl:template match="Reports[@gasGroup='SF6' and @reportType='ProducerImporter']"> <xsl:if test="../GeneralReportData/Company/Activities/Production[@gasGroup='SF6']='true' or ../GeneralReportData/Company/Activities/Import[@gasGroup='SF6']='true'"> <h2>Producer and Importer Form: SF6</h2> <table class="datatable"> <tr> <th class="bold">Transactions / (metric tonnes)</th> <xsl:for-each select="Report"> <th class="bold substanceColum"><xsl:value-of select="Gas/Code"/></th> </xsl:for-each> </tr> <tr> <th class="transactionColum">A Total new production from your facility/ies</th> <xsl:for-each select="Report"> <xsl:apply-templates select="Transactions/Transaction[Name='Production_EC']/ValueInTons"/> </xsl:for-each> </tr> <tr> <th class="transactionColum">B Amount imported into the Community</th> <xsl:for-each select="Report"> <xsl:apply-templates select="Transactions/Transaction[Name='Import_into_EC']/ValueInTons"/> </xsl:for-each> </tr> <tr> <th class="transactionColum">C Amount exported for sale outside the Community</th> <xsl:for-each select="Report"> <xsl:apply-templates select="Transactions/Transaction[Name='Export_(I-P-Form)_from_EC']/ValueInTons"/> </xsl:for-each> </tr> <tr> <th class="transactionColum">D Other amounts collected for reclamation or destruction from within the Community</th> <xsl:for-each select="Report"> <xsl:apply-templates select="Transactions/Transaction[Name='Other_amounts_reclam_destruc_within_EC']/ValueInTons"/> </xsl:for-each> </tr> <tr> <td colspan="2" class="footnote"> <span >Transactions for Producers Only</span> </td> </tr> <tr> <th class="transactionColum">E Purchases from Community co-producers</th> <xsl:for-each select="Report"> <xsl:call-template name="totalValue"><xsl:with-param name="num" select="Transactions/@totalCoProducerPurchasesFrom"/></xsl:call-template> </xsl:for-each> </tr> <tr> <th class="transactionColum">F Sales to Community co-producers</th> <xsl:for-each select="Report"> <xsl:call-template name="totalValue"><xsl:with-param name="num" select="Transactions/@totalCoProducerSalesTo"/></xsl:call-template> </xsl:for-each> </tr> <tr> <th class="transactionColum">G Amount purchased from other Community sources</th> <xsl:for-each select="Report"> <xsl:apply-templates select="Transactions/Transaction[Name='Amount_purchased_other_EC_source']/ValueInTons"/> </xsl:for-each> </tr> <tr> <td colspan="2" class="footnote"> <span >Stockpiles held during reporting year<sup>a</sup></span> </td> </tr> <tr> <th class="transactionColum">H Stocks held at 1 January</th> <xsl:for-each select="Report"> <xsl:apply-templates select="Transactions/Transaction[Name='Stocks_held_1_January']/ValueInTons"/> </xsl:for-each> </tr> <tr> <th class="transactionColum">I Stocks held at 31 December</th> <xsl:for-each select="Report"> <xsl:apply-templates select="Transactions/Transaction[Name='Stocks_held_31_December']/ValueInTons"/> </xsl:for-each> </tr> <tr> <td colspan="2" class="footnote"> <span >Reclamation and destruction</span> </td> </tr> <tr> <th class="transactionColum">J Amount reclaimed by your company</th> <xsl:for-each select="Report"> <xsl:apply-templates select="Transactions/Transaction[Name='Reclamation_own']/ValueInTons"/> </xsl:for-each> </tr> <tr> <th class="transactionColum">K Amount destroyed by your company (on-site)</th> <xsl:for-each select="Report"> <xsl:apply-templates select="Transactions/Transaction[Name='Destruction_own']/ValueInTons"/> </xsl:for-each> </tr> <tr> <th class="transactionColum">L Amount destroyed on your behalf (off-site within the Community)</th> <xsl:for-each select="Report"> <xsl:apply-templates select="Transactions/Transaction[Name='Destruction_on_behalf_in_EC']/ValueInTons"/> </xsl:for-each> </tr> <tr> <td colspan="2" class="footnote"> <span >Net amount available for sale in the Community</span> </td> </tr> <tr> <th class="transactionColum">M Calculated Total<div class="footnote">(A+B-C+D+E-F+G+H-I-K-L)</div></th> <xsl:for-each select="Report"> <xsl:call-template name="totalValue"><xsl:with-param name="num" select="Transactions/@total"/></xsl:call-template> </xsl:for-each> </tr> <tr> <td colspan="2" class="footnote"> <span >Intended applications of amounts placed on Community market for the first time (best estimates)<sup>b</sup></span> </td> </tr> <tr> <th class="transactionColum">N Electrical equipment</th> <xsl:for-each select="Report"> <xsl:apply-templates select="Transactions/Transaction[Name='App_Electrical_equipment']/ValueInTons"/> </xsl:for-each> </tr> <tr> <th class="transactionColum">O Magnesium die casting Operations</th> <xsl:for-each select="Report"> <xsl:apply-templates select="Transactions/Transaction[Name='App_Magnesium_die_casting_Operations']/ValueInTons"/> </xsl:for-each> </tr> <tr> <th class="transactionColum">P Semiconductor Manufacture</th> <xsl:for-each select="Report"> <xsl:apply-templates select="Transactions/Transaction[Name='App_Semiconductor_manufacture']/ValueInTons"/> </xsl:for-each> </tr> <tr> <th class="transactionColum">Q Other or Unknown</th> <xsl:for-each select="Report"> <xsl:apply-templates select="Transactions/Transaction[Name='App_Other_or_unknown']/ValueInTons"/> </xsl:for-each> </tr> <tr> <th class="transactionColum">R Total amount placed on the Community market<div class="footnote">(N+O+P+Q)</div></th> <xsl:for-each select="Report"> <xsl:call-template name="totalValue"><xsl:with-param name="num" select="Transactions/@totalCommunityMarket"/></xsl:call-template> </xsl:for-each> </tr> <tr> <th class="transactionColum">S Total sold<div class="footnote">(C+F+M)</div></th> <xsl:for-each select="Report"> <xsl:call-template name="totalValue"><xsl:with-param name="num" select="Transactions/@totalSold"/></xsl:call-template> </xsl:for-each> </tr> </table> <br/> <table> <tr> <td colspan="2" class="footnote"> <sup>a</sup> <span>Importers should only report on imported quantities held in stocks, i.e., not on stockpiled quantities originally obtained from Community producers or distributors (best estimates where appropriate). Producers should report all stockpiled quantities regardless of source. </span> </td> </tr> <tr> <td colspan="2" class="footnote"> <sup>b</sup> <span>Total amount placed on the Community market does not include any quantities previously held by Community importers and/or distributors. Therefore, for importers, row R should equal row M; for producers, row R should equal row M minus any quantities sold on the Community market that were previously purchased from Community importers/distributors in this reporting year or in previous years. </span> </td> </tr> </table> <xsl:if test="count(Report/Transactions[@type='ProducerImporter']/Transaction[string-length(Description)>0]) > 0"> <span style="font-weight:bold"><sup>*</sup> Values have related comments that are listed in the table below</span> <h2>Comments related to values</h2> <table class="commentTbl"> <tr> <th class="col-1">Substance</th> <th class="col-2">Transaction</th> <th class="col-3">Value</th> <th class="col-4">Comment</th> </tr> <xsl:apply-templates mode="comments" select="Report/Transactions"/> </table> </xsl:if> </xsl:if> </xsl:template> <xsl:template name="Exporter"> <xsl:if test="GeneralReportData/Company/Activities/Export='true'"> <h2>Exporter Form</h2> <table class="datatable"> <tr> <th colspan="2" class="bold exportRow1">Section 1. Export totals (metric tonnes)</th> <th colspan="3" class="bold exportRow1">Selection 2. Total amount exported for recycling reclamation and/or destruction (metric tonnes)</th> </tr> <tr> <td class="exportRow2 bold">Fluorinated greenhouse gas type</td> <td class="exportRow2 bold">Annual total exported from the European Community</td> <td class="exportRow2 bold">Recycling</td> <td class="exportRow2 bold">Reclamation</td> <td class="exportRow2 bold">Destruction</td> </tr> <tr> <td colspan="5" class="bold" style="text-align:center;background-color:#BBBBBB;">SF6</td> </tr> <tr> <td> <xsl:value-of select="Reports[@gasGroup='SF6' and @reportType='ProducerImporter']/Report/Gas/Code"/> </td> <xsl:apply-templates select="Reports[@gasGroup='SF6' and @reportType='ProducerImporter']/Report/Transactions[@type='Exporter']"/> </tr> <tr> <td colspan="5" class="bold" style="text-align:center;background-color:#BBBBBB;">HFCs</td> </tr> <xsl:for-each select="Reports[@gasGroup='HFC' and @reportType='ProducerImporter']/Report"> <tr> <td> <xsl:value-of select="Gas/Code"/> </td> <xsl:apply-templates select="Transactions[@type='Exporter']"/> </tr> </xsl:for-each> <tr> <td colspan="5" class="bold" style="text-align:center;background-color:#BBBBBB;">HFC preparations</td> </tr> <xsl:for-each select="Reports[@gasGroup='HFC-preparations' and @reportType='Importer']/Report"> <tr> <td> <xsl:value-of select="Gas/Code"/> </td> <xsl:apply-templates select="Transactions[@type='Exporter']"/> </tr> </xsl:for-each> <tr> <td colspan="5" class="bold" style="text-align:center;background-color:#BBBBBB;">PFCs/PFC preparations</td> </tr> <xsl:for-each select="Reports[@gasGroup='PFC' and @reportType='ProducerImporter']/Report"> <tr> <td> <xsl:value-of select="Gas/Code"/> </td> <xsl:apply-templates select="Transactions[@type='Exporter']"/> </tr> </xsl:for-each> </table> </xsl:if> </xsl:template> <xsl:template match="Transactions[@type='Exporter']"> <xsl:apply-templates select="Transaction[Name='Export_from_EC_Total_(Exp_Form)']/ValueInTons"/> <xsl:apply-templates select="Transaction[Name='Export_for_Recycling']/ValueInTons"/> <xsl:apply-templates select="Transaction[Name='Export_for_Reclamation']/ValueInTons"/> <xsl:apply-templates select="Transaction[Name='Export_for_Destruction']/ValueInTons"/> </xsl:template> <xsl:template match="ValueInTons"> <td class="num_cell"> <xsl:if test="string-length(../Description) > 0"><xsl:attribute name="title"><xsl:value-of select="../Description"/></xsl:attribute></xsl:if> <xsl:call-template name="formatValue"><xsl:with-param name="num" select="."/></xsl:call-template> <xsl:choose> <xsl:when test="string-length(../Description) > 0"><sup>*</sup></xsl:when> <xsl:otherwise><span class="sub" style="visibility:hidden;">*</span></xsl:otherwise> </xsl:choose> </td> </xsl:template> <xsl:template name="totalValue"> <xsl:param name="num"/> <td class="total"> <xsl:call-template name="formatValue"><xsl:with-param name="num" select="$num"/></xsl:call-template><span class="sub" style="visibility:hidden;">*</span> </td> </xsl:template> <xsl:template name="formatValue"> <xsl:param name="num"/> <xsl:choose> <xsl:when test="string-length($num) > 0 and (number($num) > 0 or number($num) <= 0)"> <xsl:choose> <xsl:when test="contains($num, '.') = false()"><xsl:value-of select="$num"/><span style="visibility:hidden">.000</span></xsl:when> <xsl:when test="string-length(substring-after($num, '.')) = 0"><xsl:value-of select="$num"/><span style="visibility:hidden">000</span></xsl:when> <xsl:when test="string-length(substring-after($num, '.')) = 1"><xsl:value-of select="$num"/><span style="visibility:hidden">00</span></xsl:when> <xsl:when test="string-length(substring-after($num, '.')) = 2"><xsl:value-of select="$num"/><span style="visibility:hidden">0</span></xsl:when> <xsl:when test="contains($num, '.') = true()"><xsl:value-of select="substring-before($num, '.')"/><span>.<xsl:value-of select="substring-after($num, '.')"/></span></xsl:when> <xsl:otherwise><xsl:value-of select="$num"/></xsl:otherwise> </xsl:choose> </xsl:when> <xsl:otherwise><xsl:value-of select="$num"/></xsl:otherwise> </xsl:choose> </xsl:template> </xsl:stylesheet>
European Environment Agency
Kgs. Nytorv 6, DK-1050 Copenhagen K, Denmark