<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns:gco="http://www.isotc211.org/2005/gco" xmlns:gfc="http://www.isotc211.org/2005/gfc"
    xmlns:gmd="http://www.isotc211.org/2005/gmd" xmlns:gmx="http://www.isotc211.org/2005/gmx"
    xmlns:gsr="http://www.isotc211.org/2005/gsr" xmlns:gss="http://www.isotc211.org/2005/gss"
    xmlns:gts="http://www.isotc211.org/2005/gts" xmlns:gml="http://www.opengis.net/gml/3.2"
    xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xs="http://www.w3.org/2001/XMLSchema"
    xmlns:xd="http://www.oxygenxml.com/ns/doc/xsl" xmlns:fn="http://www.w3.org/2005/xpath-functions"
    xmlns:grp="http://www.altova.com/Mapforce/grouping"
    xmlns:mdb="	http://www.isotc211.org/schemas/2012/mdb"
    xmlns:ci="http://www.isotc211.org/schemas/2012/ci"
    exclude-result-prefixes="fn grp xs xsi xsl xd" xmlns="http://www.isotc211.org/2005/gfc">

    <xd:doc scope="stylesheet">
        <xd:desc>
            <xd:p><xd:b>Created on:</xd:b> Jun 21, 2013</xd:p>
            <xd:p><xd:b>Author:</xd:b> Matthew McCready</xd:p>
            <xd:p> This stylesheet replaces the 01_gmd_FileIdentifier stylesheet. This latest revision of the standard inserted a new package call MD_Identifier in
                order to provide unambiguous identification of identifier elements. This new package includes a codespace element for the namespace associtated with
                the identifier.
            </xd:p>
        </xd:desc>
    </xd:doc>

    <xsl:template name="ci_FileIdentifier">

        <xsl:element name="ci:MD_Identifier">
            <xsl:element name="ci:code">
                <xsl:element name="gco:characterString">
                    <xsl:apply-templates select="//MIF/Metadata_File_Identifier"/>
                </xsl:element>
            </xsl:element>

            <xsl:element name="ci:codeSpace">
                <xsl:element name="gco:characterString">www.census.gov</xsl:element>
            </xsl:element>

        </xsl:element>



    </xsl:template>

</xsl:stylesheet>
