source: CommonItems/trunk/XSLT/one-off_XSLT/wdcc_change_dcname.xsl @ 1135

Subversion URL: http://proj.badc.rl.ac.uk/svn/ndg/CommonItems/trunk/XSLT/one-off_XSLT/wdcc_change_dcname.xsl@1135
Revision 1135, 864 bytes checked in by selatham, 14 years ago (diff)

one-off quick fix for wdcc difs

Line 
1<?xml version="1.0" encoding="UTF-8"?>
2<!-- A one-off to change the wdcc datacentre name. 07/06/06
3   Only works on DIFs which DO NOT contain any schema declaration.
4     Author - Sue Latham -->
5
6<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" >
7        <xsl:output method="xml" encoding="UTF-8" indent="yes" />
8       
9<!-- This is the main template-->
10       
11        <xsl:template match="/">
12                <xsl:apply-templates/>
13        </xsl:template>
14       
15        <xsl:template match="DIF">
16                <xsl:copy>
17                        <xsl:apply-templates select="@*|node()"/>
18                </xsl:copy>
19        </xsl:template>
20       
21        <xsl:template match="@*|node()">
22                <xsl:copy>
23                        <xsl:apply-templates select="@*|node()"/>
24                </xsl:copy>
25        </xsl:template>
26       
27        <xsl:template match="Data_Center/Data_Center_Name/Short_Name">
28                        <Short_Name>WDCC
29                        </Short_Name>
30        </xsl:template> 
31       
32                       
33</xsl:stylesheet>
Note: See TracBrowser for help on using the repository browser.