| XML schema |
http://dd.eionet.europa.eu/schemas/bdr/NILReporting.xsd
|
|---|---|
| Output type | HTML |
| Description | HTML printout |
| XSL file | nil-report-html.xsl (Last modified: 18 Jan 2022 10:55 ) |
<?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:param name="envelopeurl" />
<xsl:param name="filename" />
<xsl:param name="envelopepath" />
<xsl:param name="acceptable" />
<xsl:param name="submissionDate" />
<!-- variables -->
<xsl:variable name="current-date" select="current-dateTime()"/>
<xsl:template match="Reporting">
<html lang="en" xmlns="http://www.w3.org/1999/xhtml">
<head>
<xsl:if test="@type='fgases'">
<title>Fluorinated Greenhouse Gas (F-Gas) Reporting Form
</title>
</xsl:if>
<xsl:if test="@type='ods'">
<title>Ozone Depleting Substances Reporting Form
</title>
</xsl:if>
<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>
<xsl:if test="@type='fgases'">
<h1>NIL REPORTING FORM FOR PRODUCERS, IMPORTERS AND EXPORTERS OF FLUORINATED GREENHOUSE GASES</h1>
</xsl:if>
<xsl:if test="@type='ods'">
<h1>Report on the Ozone depleting substances</h1>
</xsl:if>
<xsl:apply-templates select="GeneralReportData | Reports[@gasGroup='HFC' and @reportType='ProducerImporter']"/>
</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> -->
<table class="metadata_table">
<tr>
<th>XML file: </th>
<td><xsl:attribute name="href"><xsl:value-of select="concat($envelopeurl,'/',$filename)"/></xsl:attribute>
<xsl:attribute name="target"><xsl:value-of select="'blank_'"/></xsl:attribute>
<xsl:value-of select="$filename"/></td>
</tr>
<tr>
<th>XML file converted at: </th>
<td>
<xsl:value-of select="concat(substring(string($current-date), 1, 19), 'Z')"/>
</td>
</tr>
<xsl:if test="$acceptable = 'true' or $acceptable = 'false'">
<tr>
<th>Envelope submission date: </th>
<td>
<xsl:value-of select="$submissionDate"/>
</td>
</tr>
</xsl:if>
<tr>
<th>Converted from: </th>
<td>
<xsl:attribute name="href">
<xsl:value-of select="$envelopeurl"/>
</xsl:attribute>
<xsl:value-of select="$envelopeurl"/>
</td>
</tr>
<tr>
<th>Envelope status: </th>
<xsl:choose>
<xsl:when test="$acceptable = 'true'">
<td>Accepted by automated quality control</td>
</xsl:when>
<xsl:when test="$acceptable = 'false'">
<td>Rejected by automated quality control</td>
</xsl:when>
<xsl:otherwise>
<td>Draft envelope (not yet submitted)</td>
</xsl:otherwise>
</xsl:choose>
</tr>
</table>
<h2>Reporting undertaking</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">City</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 code</th>
<td class="generalReportDataColum"><xsl:value-of select="Company/EoriCode"/></td>
</tr>
<tr>
<th class="transactionColum">VAT code</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 ">
<xsl:if test="Company/NoReporting='true'">
<tr>
<td style="text-align:left;background-color:#BBBBBB;width:10em;">
<div>Not obliged to report (NIL report)</div>
</td>
<td><input type="checkbox" checked="true" disabled="disabled"/></td>
</tr>
</xsl:if>
<xsl:if test="Company/NoReporting='false'">
<tr>
<td style="text-align:left;background-color:#BBBBBB;width:10em;">
<div>Not obliged to report (NIL report)</div>
</td>
<td><input type="checkbox" checked="false" disabled="disabled"/></td>
</tr>
</xsl:if>
</table>
<xsl:if test="string-length(Comments) > 0">
<div class="bold">Explanation:</div>
<p>
<xsl:value-of select="Comments"/>
</p>
</xsl:if>
</xsl:template>
</xsl:stylesheet>
European Environment Agency
Kgs. Nytorv 6, DK-1050 Copenhagen K, Denmark