<?xml version="1.0" encoding="UTF-8" ?>

<!--
   Name:  01_gmd:FileIdentifier.xsl
   Author:  Matthew J. McCready
   Date:  20110601
   Description:  XSLT stylesheet that transforms the  Metadata_File_Identifier from Section 7 of the FGDC standard into the gmd:fileIdentifier  
                 ISO element.
   Modification History:
      Initial   Date      Change Request ID   Description

-->




<xsl:stylesheet version = "1.0"
   xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
   xmlns:gmd="http://www.isotc211.org/2005/gmd"
   xmlns:gco="http://www.isotc211.org/2005/gco" 
>
<xsl:output method="xml" version="1.0" encoding="ISO-8859-1" indent="yes"/>


<xsl:template name="FileIdentifier" match="/">
<!-- <xsl:comment>IN the file Identifier Template!!!!!!!</xsl:comment> -->

 <xsl:if test="/metadata/metainfo/Metadata_File_Identifier">
<xsl:element name="gmd:fileIdentifier"> 

                                      <xsl:element name="gco:CharacterString">
                                                 <xsl:apply-templates select="//metadata/metainfo/Metadata_File_Identifier"/>
                                          </xsl:element>

</xsl:element>
</xsl:if>


</xsl:template>
</xsl:stylesheet>
