XML schema | |
---|---|
Output type | XML |
Description | FGases authorisations for 2017 |
XSL file | fgases-authorisations.xsl (Last modified: 19 Feb 2018 13:01 ) |
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:output method="xml" indent="yes" encoding="UTF-8"/> <xsl:param name="companyId"/> <xsl:template match="/"> <xsl:choose> <xsl:when test="count(/child::*/child::*[@companyId=$companyId]) = 0"> <authorisation companyId="{$companyId}"> <AuthBalance /> <ExtractDate /> </authorisation> </xsl:when> <xsl:otherwise> <xsl:copy-of select="/child::*/child::*[@companyId=$companyId][1]" /> </xsl:otherwise> </xsl:choose> </xsl:template> </xsl:stylesheet>
European Environment Agency
Kgs. Nytorv 6, DK-1050 Copenhagen K, Denmark