XML schema | |
---|---|
Output type | XML |
Description | FGases extra registry data filterer (per company) |
XSL file | fgases-extra-registry-data.xsl (Last modified: 25 Jan 2017 15:22 ) |
<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"> <registryData companyId="{$companyId}"> <stocks> </stocks> <quota /> <large>false</large> <ner>false</ner> </registryData> </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