source: Document_handling/trunk/XSLT/Add_dif_xsd_statement.xsl @ 228

Subversion URL: http://proj.badc.rl.ac.uk/svn/ndg/Document_handling/trunk/XSLT/Add_dif_xsd_statement.xsl@228
Revision 228, 811 bytes checked in by selatham, 15 years ago (diff)

Amended for V1.02 of NDB MetadataModel? schema and some extra fields.
New one-off xsls plus scripts to run them.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
Line 
1<?xml version="1.0" encoding="UTF-8"?>
2<!-- A one-off to add a dif xsd statement to any dif record. 222/11/04
3     Author - Sue Latham -->
4
5<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" >
6        <xsl:output method="xml" encoding="UTF-8" indent="yes" />
7       
8        <xsl:template match="@*|node()">
9          <xsl:copy>
10            <xsl:apply-templates select="@*|node()"/>
11          </xsl:copy>
12        </xsl:template>
13 
14      <xsl:template match="/DIF">
15                <DIF xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="dif.xsd">
16                                 <xsl:apply-templates select="@*|node()"/>
17                 </DIF>
18        </xsl:template>
19       
20        <xsl:template match="/DIF/*">
21                <xsl:copy>
22                        <xsl:apply-templates select="@*|node()"/>
23                </xsl:copy>
24        </xsl:template>
25
26       
27</xsl:stylesheet>
Note: See TracBrowser for help on using the repository browser.