]> Wikimedia Canada | Git repositories - eccc_to_commons.git/blob - eccc_fixer.xslt
Add transformation to fix ECCC XML files
[eccc_to_commons.git] / eccc_fixer.xslt
1 <?xml version="1.0" encoding="UTF-8"?>
2 <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
3 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
4 <xsl:output method="xml" encoding="utf-8" />
5
6 <!-- Idempotence -->
7 <xsl:template match="node()|@*">
8 <xsl:copy>
9 <xsl:apply-templates select="node()|@*" />
10 </xsl:copy>
11 </xsl:template>
12
13 <xsl:template match="/climatedata">
14 <climatedata>
15 <xsl:attribute name="xsi:schemaLocation">http://climate.weather.gc.ca/climate_data/bulkxml/bulkschema.xsd</xsl:attribute>
16 <xsl:apply-templates />
17 </climatedata>
18 </xsl:template>
19 </xsl:stylesheet>