Changeset 227 for Document_handling


Ignore:
Timestamp:
04/11/04 16:47:24 (15 years ago)
Author:
selatham
Message:

20041101 - Make NDG_B service url more generic.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Document_handling/trunk/XSLT/ndg_to_dif.xsl

    r225 r227  
    66     Author - Sue Latham 01/03/2004 
    77     Updated 01/09/2004 - New version(1.1) of NDG_B schema and change to using B-stub. 
     8     Updated 01/09/2004 - generalise the NDG_B service URL. 
    89--> 
    910<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> 
    10         <xsl:output method="xml" encoding="UTF-8" doctype-system="http://gcmd.gsfc.nasa.gov/Aboutus/xml/dif/dif.dtd" indent="yes"/> 
     11        <xsl:output method="xml" encoding="UTF-8" indent="yes"/> 
    1112        <xsl:key name="dgMetadatakey" match="//dgMetadata/dgMetadataRecord" use="concat(dgMetadataID/repositoryIdentifier, dgMetadataID/localIdentifier)"/> 
    1213        <!-- change this bit about organisation key and person key when I know where they will appear in the b-stub. Will keys be needed?--> 
     
    191192                        <Related_URL> 
    192193                                <URL_Content_Type>NDG_B_SERVICE</URL_Content_Type> 
    193                                 <URL>badc.nerc.ac.uk</URL> 
     194                                <URL> 
     195                                <xsl:value-of select="//dgMetadataRecord/dgMetadataID/repositoryIdentifier"/> 
     196                                </URL> 
    194197                                <Description>The NDG service for browsing metadata.</Description> 
    195198                        </Related_URL> 
     
    234237                        </DIF_Revision_History> 
    235238                </xsl:if> 
    236                  
    237  
    238239        </xsl:template> 
    239240</xsl:stylesheet> 
Note: See TracChangeset for help on using the changeset viewer.