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

Subversion URL: http://proj.badc.rl.ac.uk/svn/ndg/Document_handling/trunk/XSLT/siva_fix_ids.xsl@228
Revision 228, 687 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 fix BODC's ids. 12/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         <xsl:template match="@*|node()">
8          <xsl:copy>
9            <xsl:apply-templates select="@*|node()"/>
10          </xsl:copy>
11        </xsl:template>
12
13      <xsl:template match="//dgMetadata/dgMetadataRecord/dgMetadataID/localIdentifier">
14                <localIdentifier>
15                         <xsl:value-of select="//dgMetadata/dgMetadataRecord/dgMetadataDescription/metadataDescriptionID/localIdentifier"></xsl:value-of>
16                 </localIdentifier>
17        </xsl:template>
18       
19</xsl:stylesheet>
Note: See TracBrowser for help on using the repository browser.