<?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" exclude-result-prefixes="fn grp xs xsi xsl"
    xmlns="http://www.isotc211.org/2005/gfc">
    <xsl:import href="../FGDC2ISO/IndividualElements.xsl"/>
    <xsl:output method="xml" version="1.0" encoding="ISO-8859-1" indent="yes"/>
    
    
    
    <xd:doc scope="stylesheet">
        <xd:desc>
            <xd:p><xd:b>Created on:</xd:b> May 20, 2013</xd:p>
            <xd:p><xd:b>Author:</xd:b> mccre004</xd:p>
            <xd:p>This stylesheet contains templates for all the state themes.</xd:p>
        </xd:desc>
    </xd:doc>
    
    
    <xsl:template name="concity">             
        
        <xsl:call-template name="ALAND"/>             
        <xsl:call-template name="AWATER"/>       
        <xsl:call-template name="CLASSFP"/>
        
        <xsl:element name="gfc:carrierOfCharacteristics">
            <xsl:attribute name="xlink:title">CONCTYFP: Current consolidated city Federal Information Processing Series (FIPS) code</xsl:attribute>
            <xsl:attribute name="xlink:href">insert UUID here</xsl:attribute>
        </xsl:element>
        
        <xsl:element name="gfc:carrierOfCharacteristics">
            <xsl:attribute name="xlink:title">CONCTYNS: Current consolidated city ANSI code</xsl:attribute>
            <xsl:attribute name="xlink:href">insert UUID here</xsl:attribute>
        </xsl:element>          
        
        <xsl:call-template name="FUNCSTAT"/>
        
        <xsl:element name="gfc:carrierOfCharacteristics">
            <xsl:attribute name="xlink:title">GEOID: Consolidated city identifier; a concatenation of Current state FIPS code and consolidated city FIPS code</xsl:attribute>
            <xsl:attribute name="xlink:href">insert UUID here</xsl:attribute>
        </xsl:element>                
        
        <xsl:call-template name="INTLatLong"/>
        
        <xsl:element name="gfc:carrierOfCharacteristics">
            <xsl:attribute name="xlink:title">LSAD:Current legal/statistical area description code for American Indian/Alaska Native/Native Hawaiian area</xsl:attribute>
            <xsl:attribute name="xlink:href">insert UUID here</xsl:attribute>
        </xsl:element>               
        
        <xsl:call-template name="MTFCC"/>
        
        <xsl:element name="gfc:carrierOfCharacteristics">
            <xsl:attribute name="xlink:title">NAME:Current American Indian/Alaska Native/Native Hawaiian area name</xsl:attribute>
            <xsl:attribute name="xlink:href">insert UUID here</xsl:attribute>
        </xsl:element>
        
        <xsl:element name="gfc:carrierOfCharacteristics">
            <xsl:attribute name="xlink:title">NAMELSAD:Current name and the translated legal/statistical area description code for American Indian/Alaska Native/Native Hawaiian area</xsl:attribute>
            <xsl:attribute name="xlink:href">insert UUID here</xsl:attribute>
        </xsl:element>               
        
        <xsl:call-template name="STATEFP"/>
        
        
    </xsl:template>
    
    <xsl:template name="ANRC">
                        
        <xsl:call-template name="ALAND"/>
        <xsl:call-template name="ANRCFP"/>
        
        <xsl:element name="gfc:carrierOfCharacteristics">
            <xsl:attribute name="xlink:title">ANRCNS:Current Alaska Native Regional Corporation ANSI code</xsl:attribute>
            <xsl:attribute name="xlink:href">insert UUID here</xsl:attribute>
        </xsl:element>
               
        <xsl:call-template name="AWATER"/>       
        <xsl:call-template name="CLASSFP"/>
        
        <xsl:element name="gfc:carrierOfCharacteristics">
            <xsl:attribute name="xlink:title">GEOID: Consolidated city identifier; a concatenation of Current state FIPS code and consolidated city FIPS code</xsl:attribute>
            <xsl:attribute name="xlink:href">insert UUID here</xsl:attribute>
        </xsl:element>             
        
        <xsl:call-template name="FUNCSTAT"/>      
               
        <xsl:call-template name="INTLatLong"/>
        
        <xsl:element name="gfc:carrierOfCharacteristics">
            <xsl:attribute name="xlink:title">LSAD:Current legal/statistical area description code for Alaska Native Regional Corporation</xsl:attribute>
            <xsl:attribute name="xlink:href">insert UUID here</xsl:attribute>
        </xsl:element>      
               
        <xsl:call-template name="MTFCC"/>
        
        <xsl:element name="gfc:carrierOfCharacteristics">
            <xsl:attribute name="xlink:title">NAME: Current Alaska Native Regional Corporation name</xsl:attribute>
            <xsl:attribute name="xlink:href">insert UUID here</xsl:attribute>
        </xsl:element>
        
        <xsl:element name="gfc:carrierOfCharacteristics">
            <xsl:attribute name="xlink:title">NAMELSAD:Current name and the translated legal/statistical area description for Alaska Native Regional Corporation</xsl:attribute>
            <xsl:attribute name="xlink:href">insert UUID here</xsl:attribute>
        </xsl:element>               
        
        <xsl:call-template name="STATEFP"/>
        
    </xsl:template>
    
    <xsl:template name="arealm">        
                      
        <xsl:call-template name="ALAND"/>
        <xsl:call-template name="ANSICODE"/>
        <xsl:call-template name="AREAID"/>       
        <xsl:call-template name="AWATER"/>
        
        <xsl:element name="gfc:carrierOfCharacteristics">
            <xsl:attribute name="xlink:title">FULLNAME:Concatenation of expanded text for prefix qualifier, prefix direction, prefix type, base name, suffix type, suffix direction, and suffix qualifier (as available) with a space between each expanded text field</xsl:attribute>
            <xsl:attribute name="xlink:href">insert UUID here</xsl:attribute>
        </xsl:element>
                         
        <xsl:call-template name="INTLatLong"/>
        <xsl:call-template name="MTFCC"/>
        <xsl:call-template name="STATEFP"/>
        
    </xsl:template>
    
    <xsl:template name="bg">
        
        <xsl:call-template name="ALAND"/>
        <xsl:call-template name="AWATER"/>
        <xsl:call-template name="BLKGRPCE"/>
        <xsl:call-template name="COUNTYFP"/>
        <xsl:call-template name="FUNCSTAT"/>
        
        <xsl:element name="gfc:carrierOfCharacteristics">
            <xsl:attribute name="xlink:title">GEOID: Census block group identifier; a concatenation of the current state Federal Information Processing Series (FIPS) code, county FIPS code, census tract code, and block group number</xsl:attribute>
            <xsl:attribute name="xlink:href">insert UUID here</xsl:attribute>
        </xsl:element>                
        
        <xsl:call-template name="INTLatLong"/>
        <xsl:call-template name="MTFCC"/>
        
        <xsl:element name="gfc:carrierOfCharacteristics">
            <xsl:attribute name="xlink:title">NAMELSAD: Current translated legal/statistical area description and the block group number</xsl:attribute>
            <xsl:attribute name="xlink:href">insert UUID here</xsl:attribute>
        </xsl:element> 
        
<xsl:call-template name="STATEFP"/>
 <xsl:call-template name="TRACTCE"/>
    </xsl:template>
    
    <xsl:template name="cousub">
        
        <xsl:call-template name="ALAND"/>
        <xsl:call-template name="AWATER"/>
        <xsl:call-template name="CLASSFP"/>
        <xsl:call-template name="CNECTAFP"/>
        <xsl:call-template name="COUNTYFP"/>        
        <xsl:call-template name="COUSUBFP"/>
        
        <xsl:element name="gfc:carrierOfCharacteristics">
            <xsl:attribute name="xlink:title">COUSUBNS: Current county subdivision ANSI code</xsl:attribute>
            <xsl:attribute name="xlink:href">insert UUID here</xsl:attribute>
        </xsl:element>
        
        <xsl:call-template name="FUNCSTAT"/>
        
        <xsl:element name="gfc:carrierOfCharacteristics">
            <xsl:attribute name="xlink:title">GEOID: County subdivision identifier, a concatenation of Current state Federal Information Processing Series (FIPS) code, county FIPS code, and county subdivision FIPS code</xsl:attribute>
            <xsl:attribute name="xlink:href">insert UUID here</xsl:attribute>
        </xsl:element>
        
        <xsl:call-template name="INTLatLong"/>
        
        <xsl:element name="gfc:carrierOfCharacteristics">
            <xsl:attribute name="xlink:title">LSAD: Current name and the translated legal/statistical area description for county subdivision</xsl:attribute>
            <xsl:attribute name="xlink:href">insert UUID here</xsl:attribute>
        </xsl:element>
        
        <xsl:call-template name="MTFCC"/>
        
        <xsl:element name="gfc:carrierOfCharacteristics">
            <xsl:attribute name="xlink:title">NAME:Current county subdivision name</xsl:attribute>
            <xsl:attribute name="xlink:href">insert UUID here</xsl:attribute>
        </xsl:element>
        
        <xsl:element name="gfc:carrierOfCharacteristics">
            <xsl:attribute name="xlink:title">NAMELSAD:Current name and the translated legal/statistical area description for county subdivision</xsl:attribute>
            <xsl:attribute name="xlink:href">insert UUID here</xsl:attribute>
        </xsl:element>
       
        <xsl:call-template name="NECTAFP"/>
        <xsl:call-template name="NCTADVFP"/>        
        <xsl:call-template name="STATEFP"/>        
        
    </xsl:template>
    
    <xsl:template name="elsd">
        
        <xsl:call-template name="ALAND"/>
        <xsl:call-template name="AWATER"/>
        
        <xsl:element name="gfc:carrierOfCharacteristics">
            <xsl:attribute name="xlink:title">ELSDLEA: Current elementary school district local education agency code</xsl:attribute>
            <xsl:attribute name="xlink:href">insert UUID here</xsl:attribute>
        </xsl:element>
        
        <xsl:call-template name="ELSDLEA"/>
        <xsl:call-template name="FUNCSTAT"/>
        
        <xsl:element name="gfc:carrierOfCharacteristics">
            <xsl:attribute name="xlink:title">GEOID: School district identifier; a concatenation of the current state FIPS code and elementary school district local education agency code</xsl:attribute>
            <xsl:attribute name="xlink:href">insert UUID here</xsl:attribute>
        </xsl:element>
        
        <xsl:call-template name="HIGRADE"/> 
        <xsl:call-template name="INTLatLong"/>
        <xsl:call-template name="LOGRADE"/>
        
        <xsl:element name="gfc:carrierOfCharacteristics">
            <xsl:attribute name="xlink:title">LSAD: Current legal/statistical area description code for elementary school district</xsl:attribute>
            <xsl:attribute name="xlink:href">insert UUID here</xsl:attribute>
        </xsl:element>
        
        <xsl:call-template name="MTFCC"/>
        
        <xsl:element name="gfc:carrierOfCharacteristics">
            <xsl:attribute name="xlink:title">NAME: Current elementary school district name</xsl:attribute>
            <xsl:attribute name="xlink:href">insert UUID here</xsl:attribute>
        </xsl:element>
        
        <xsl:call-template name="SDTYP"/>
        <xsl:call-template name="STATEFP"/>    
              
    </xsl:template>
    
    <xsl:template name="estate">
        
        <xsl:call-template name="ALAND"/>
        <xsl:call-template name="AWATER"/>
        <xsl:call-template name="CLASSFP"/>
        <xsl:call-template name="COUNTYFP"/>
        <xsl:call-template name="ESTATEFP"/>
               
        <xsl:element name="gfc:carrierOfCharacteristics">
            <xsl:attribute name="xlink:title">ESTATENS: Current estate civil division ANSI code</xsl:attribute>
            <xsl:attribute name="xlink:href">insert UUID here</xsl:attribute>
        </xsl:element>
        
        <xsl:call-template name="FUNCSTAT"/>
        
        <xsl:element name="gfc:carrierOfCharacteristics">
            <xsl:attribute name="xlink:title">GEOID: Estate identifier; a concatenation of current state FIPS code, county FIPS code and estate FIPS code</xsl:attribute>
            <xsl:attribute name="xlink:href">insert UUID here</xsl:attribute>
        </xsl:element>
        
        <xsl:call-template name="INTLatLong"/>
        
        <xsl:element name="gfc:carrierOfCharacteristics">
            <xsl:attribute name="xlink:title">LSAD: Current legal/statistical area description code for estates</xsl:attribute>
            <xsl:attribute name="xlink:href">insert UUID here</xsl:attribute>
        </xsl:element>
        
        <xsl:call-template name="MTFCC"/>
        
        <xsl:element name="gfc:carrierOfCharacteristics">
            <xsl:attribute name="xlink:title">NAME: Current estate name</xsl:attribute>
            <xsl:attribute name="xlink:href">insert UUID here</xsl:attribute>
        </xsl:element>
        
        <xsl:element name="gfc:carrierOfCharacteristics">
            <xsl:attribute name="xlink:title">NAMELSAD: Current name and the translated legal/statistical area description for estates</xsl:attribute>
            <xsl:attribute name="xlink:href">insert UUID here</xsl:attribute>
        </xsl:element>
        
        <xsl:call-template name="STATEFP"/>                  
                             
                     </xsl:template>
    
    <xsl:template name="facesal">
        <xsl:call-template name="AREAID"/>
        <xsl:call-template name="TFID"/>
    </xsl:template>
    
    <xsl:template name="place">
        <xsl:call-template name="ALAND"/>
        <xsl:call-template name="AWATER"/>
        <xsl:call-template name="CLASSFP"/>
        <xsl:call-template name="FUNCSTAT"/>
        
        <xsl:element name="gfc:carrierOfCharacteristics">
            <xsl:attribute name="xlink:title">GEOID: Place identifier; a concatenation of Current state FIPS code and place FIPS code</xsl:attribute>
            <xsl:attribute name="xlink:href">insert UUID here</xsl:attribute>
        </xsl:element>
        
        <xsl:call-template name="INTLatLong"/>
        
        <xsl:element name="gfc:carrierOfCharacteristics">
            <xsl:attribute name="xlink:title">LSAD: Current legal/statistical area description code for place</xsl:attribute>
            <xsl:attribute name="xlink:href">insert UUID here</xsl:attribute>
        </xsl:element>
        
        <xsl:call-template name="MTFCC"/>
        
        <xsl:element name="gfc:carrierOfCharacteristics">
            <xsl:attribute name="xlink:title">NAME: Current place name</xsl:attribute>
            <xsl:attribute name="xlink:href">insert UUID here</xsl:attribute>
        </xsl:element>
        
        <xsl:element name="gfc:carrierOfCharacteristics">
            <xsl:attribute name="xlink:title">NAMELSAD: urrent name and the translated legal/statistical area description for place</xsl:attribute>
            <xsl:attribute name="xlink:href">insert UUID here</xsl:attribute>
        </xsl:element>
        
        <xsl:element name="gfc:carrierOfCharacteristics">
            <xsl:attribute name="xlink:title">PCICBSA: Current metropolitan or micropolitan statistical area principal city indicator</xsl:attribute>
            <xsl:attribute name="xlink:href">insert UUID here</xsl:attribute>
        </xsl:element>
        
        <xsl:element name="gfc:carrierOfCharacteristics">
            <xsl:attribute name="xlink:title">PCINECTA: Current New England city and town area principal city indicator</xsl:attribute>
            <xsl:attribute name="xlink:href">insert UUID here</xsl:attribute>
        </xsl:element>
        
        <xsl:element name="gfc:carrierOfCharacteristics">
            <xsl:attribute name="xlink:title">PLACEFP: Current place Federal Information Processing Series (FIPS) 55 code</xsl:attribute>
            <xsl:attribute name="xlink:href">insert UUID here</xsl:attribute>
        </xsl:element>
        
        <xsl:element name="gfc:carrierOfCharacteristics">
            <xsl:attribute name="xlink:title">PLACENS: Current place ANSI code</xsl:attribute>
            <xsl:attribute name="xlink:href">insert UUID here</xsl:attribute>
        </xsl:element>
        
        <xsl:call-template name="STATEFP"/>
        
    </xsl:template>
    
    <xsl:template name="pointlm">
        <xsl:call-template name="ANSICODE"/>
        <xsl:call-template name="FULLNAME"/>
        <xsl:call-template name="MTFCC"/>
        
        <xsl:element name="gfc:carrierOfCharacteristics">
            <xsl:attribute name="xlink:title"> POINTID: Point landmark identifier</xsl:attribute>
            <xsl:attribute name="xlink:href">insert UUID here</xsl:attribute>
        </xsl:element>
        
        <xsl:call-template name="STATEFP"/>
    
    </xsl:template>
    
    <xsl:template name="prisecroads">
        <xsl:call-template name="FULLNAME"/>
        <xsl:call-template name="LINEARID"/>
        <xsl:call-template name="MTFCC"/>
        <xsl:call-template name="RTTYP"/>
    </xsl:template>
    
    <xsl:template name="puma10">
        
        <xsl:call-template name="ALAND10"/>
        <xsl:call-template name="AWATER10"/>
        <xsl:call-template name="FUNCSTAT10"/>
        
        <xsl:element name="gfc:carrierOfCharacteristics">
            <xsl:attribute name="xlink:title">GEOID10: 2010 Census nation-based Public Use Microdata Area code; a concatenation of 2010 Census state FIPS code and Public Use Microdata Area code</xsl:attribute>
            <xsl:attribute name="xlink:href">insert UUID here</xsl:attribute>
        </xsl:element>
        
        <xsl:call-template name="INTLatLong10"/>        
        <xsl:call-template name="MTFCC10"/>
        
        <xsl:element name="gfc:carrierOfCharacteristics">
            <xsl:attribute name="xlink:title">NAMELSAD10: 2010 Census translated legal/statistical area description and public use microdata area census code</xsl:attribute>
            <xsl:attribute name="xlink:href">insert UUID here</xsl:attribute>
        </xsl:element>
        
        <xsl:call-template name="STATEFP10"></xsl:call-template>
        <xsl:call-template name="PUMACE10"/>
        
        
    </xsl:template>
    
    <xsl:template name="scsd">
        <xsl:call-template name="ALAND"/>
        <xsl:call-template name="AWATER"/>
        <xsl:call-template name="FUNCSTAT"/>
        
        <xsl:element name="gfc:carrierOfCharacteristics">
            <xsl:attribute name="xlink:title">GEOID: School district identifier; a concatenation of the current state Federal Information Processing Series (FIPS) code and secondary school district local education agency code</xsl:attribute>
            <xsl:attribute name="xlink:href">insert UUID here</xsl:attribute>
        </xsl:element>
        
        <xsl:call-template name="HIGRADE"/>
        <xsl:call-template name="INTLatLong"/>
        <xsl:call-template name="LOGRADE"/>
        
        <xsl:element name="gfc:carrierOfCharacteristics">
            <xsl:attribute name="xlink:title">LSAD: Current legal/statistical area description code for secondary school district</xsl:attribute>
            <xsl:attribute name="xlink:href">insert UUID here</xsl:attribute>
        </xsl:element>   
        
        <xsl:call-template name="MTFCC"/>
        
        <xsl:element name="gfc:carrierOfCharacteristics">
            <xsl:attribute name="xlink:title">NAME: Current secondary school district name</xsl:attribute>
            <xsl:attribute name="xlink:href">insert UUID here</xsl:attribute>
        </xsl:element>
        
        <xsl:call-template name="SCSDLEA"/>
        <xsl:call-template name="SDTYP"/>
        <xsl:call-template name="STATEFP"/>
        
        
    </xsl:template>
    
    <xsl:template name="sldl">
        
        <xsl:call-template name="ALAND"/>
        <xsl:call-template name="AWATER"/>
        <xsl:call-template name="FUNCSTAT"/>
        
        <xsl:element name="gfc:carrierOfCharacteristics">
            <xsl:attribute name="xlink:title">GEOID: State legislative district lower chamber identifier; a concatenation of Current state FIPS code and state legislative district lower chamber code</xsl:attribute>
            <xsl:attribute name="xlink:href">insert UUID here</xsl:attribute>
        </xsl:element>
        
        <xsl:call-template name="INTLatLong"/>
        
        <xsl:element name="gfc:carrierOfCharacteristics">
            <xsl:attribute name="xlink:title">LSAD: Current legal/statistical area description code for state legislative district (lower chamber)</xsl:attribute>
            <xsl:attribute name="xlink:href">insert UUID here</xsl:attribute>
        </xsl:element>  
        
        <xsl:call-template name="LSY"/>
        <xsl:call-template name="MTFCC"/>
        
        <xsl:element name="gfc:carrierOfCharacteristics">
            <xsl:attribute name="xlink:title">NAMELSAD: Current name and the translated legal/statistical area description for state legislative district (lower chamber)</xsl:attribute>
            <xsl:attribute name="xlink:href">insert UUID here</xsl:attribute>
        </xsl:element>
        
        <xsl:call-template name="SLDLST"/>
        <xsl:call-template name="STATEFP"/>
    </xsl:template>
    
    <xsl:template name="sldu">
        <xsl:call-template name="ALAND"/>
        <xsl:call-template name="AWATER"/>
        <xsl:call-template name="FUNCSTAT"/>
        
        <xsl:element name="gfc:carrierOfCharacteristics">
            <xsl:attribute name="xlink:title">GEOID: State legislative district upper chamber identifier; a concatenation of Current state FIPS code and state legislative district upper chamber code</xsl:attribute>
            <xsl:attribute name="xlink:href">insert UUID here</xsl:attribute>
        </xsl:element>
        
        <xsl:call-template name="INTLatLong"/>
        
        <xsl:element name="gfc:carrierOfCharacteristics">
            <xsl:attribute name="xlink:title">LSAD: Current legal/statistical area description code for state legislative district (upper chamber)</xsl:attribute>
            <xsl:attribute name="xlink:href">insert UUID here</xsl:attribute>
        </xsl:element>  
        
        <xsl:call-template name="LSY"/>
        <xsl:call-template name="MTFCC"/>
        
        <xsl:element name="gfc:carrierOfCharacteristics">
            <xsl:attribute name="xlink:title">NAMELSAD: Current name and the translated legal/statistical area description for the state legislative district (upper chamber)</xsl:attribute>
            <xsl:attribute name="xlink:href">insert UUID here</xsl:attribute>
        </xsl:element>
        
        <xsl:call-template name="SLDUST"/>
        <xsl:call-template name="STATEFP"/>
        
    </xsl:template>
    
    <xsl:template name="submcd">
        <xsl:call-template name="ALAND"/>
        <xsl:call-template name="AWATER"/>
        <xsl:call-template name="CLASSFP"/>
        <xsl:call-template name="COUNTYFP"/>
        <xsl:call-template name="COUSUBFP"/>
        <xsl:call-template name="FUNCSTAT"/>
        
        <xsl:element name="gfc:carrierOfCharacteristics">
            <xsl:attribute name="xlink:title">GEOID: SubMinor civil division identifier; a concatenation of Current state FIPS code, county FIPS code, county subdivision FIPS code, and subminor civil division FIPS code</xsl:attribute>
            <xsl:attribute name="xlink:href">insert UUID here</xsl:attribute>
        </xsl:element>
        
        <xsl:call-template name="INTLatLong"/>
        
        <xsl:element name="gfc:carrierOfCharacteristics">
            <xsl:attribute name="xlink:title">LSAD: Current legal/statistical area description code for subminor civil division</xsl:attribute>
            <xsl:attribute name="xlink:href">insert UUID here</xsl:attribute>
        </xsl:element> 
        
        <xsl:call-template name="MTFCC"/>
        
        <xsl:element name="gfc:carrierOfCharacteristics">
            <xsl:attribute name="xlink:title">NAME: Current subminor civil division name</xsl:attribute>
            <xsl:attribute name="xlink:href">insert UUID here</xsl:attribute>
        </xsl:element>
        
        <xsl:element name="gfc:carrierOfCharacteristics">
            <xsl:attribute name="xlink:title">NAMELSAD: Current name and the translated legal/statistical area description for subminor civil division</xsl:attribute>
            <xsl:attribute name="xlink:href">insert UUID here</xsl:attribute>
        </xsl:element>
        
        <xsl:call-template name="STATEFP"/>
        <xsl:call-template name="SUBMCDFP"/>
        
        <xsl:element name="gfc:carrierOfCharacteristics">
            <xsl:attribute name="xlink:title">SUBMCDNS: Current subminor civil division ANSI code</xsl:attribute>
            <xsl:attribute name="xlink:href">insert UUID here</xsl:attribute>
        </xsl:element>
        
    </xsl:template>
    
    <xsl:template name="tabblock">
        <xsl:call-template name="ALAND"/>
        <xsl:call-template name="AWATER"/>
        <xsl:call-template name="BLOCKCE10"/>
        <xsl:call-template name="COUNTYFP"/>
        <xsl:call-template name="COUNTYFP10"/>
       <xsl:call-template name="FUNCSTAT"/> 
        
        <xsl:element name="gfc:carrierOfCharacteristics">
            <xsl:attribute name="xlink:title">GEOID: Block identifier; a concatenation of 2010 Census state Federal Information Processing Series (FIPS) code, 2010 Census county FIPS code, 2010 Census tract code, 2010 Census tabulation block number, and current block suffix</xsl:attribute>
            <xsl:attribute name="xlink:href">insert UUID here</xsl:attribute>
        </xsl:element>
        
        <xsl:call-template name="INTLatLong"/>
        
        <xsl:call-template name="MTFCC"/>
        
        <xsl:element name="gfc:carrierOfCharacteristics">
            <xsl:attribute name="xlink:title">NAME: Current tabulation block name; a concatenation of 'Block', and the current tabulation block number and suffix</xsl:attribute>
            <xsl:attribute name="xlink:href">insert UUID here</xsl:attribute>
        </xsl:element>
        
        <xsl:call-template name="STATEFP"/>
        <xsl:call-template name="STATEFP10"/>
        <xsl:call-template name="SUFFIX1CE"/>
        <xsl:call-template name="TRACTCE10"/>
        <xsl:call-template name="UACE10"/>
        
        <xsl:element name="gfc:carrierOfCharacteristics">
            <xsl:attribute name="xlink:title">UR10: 2010 Census urban/rural indicato</xsl:attribute>
            <xsl:attribute name="xlink:href">insert UUID here</xsl:attribute>
        </xsl:element>
        
    </xsl:template>
    
    <xsl:template name="tract">
        <xsl:call-template name="ALAND"/>
        <xsl:call-template name="AWATER"/>
        <xsl:call-template name="COUNTYFP"/>
        <xsl:call-template name="FUNCSTAT"/>
        
        <xsl:element name="gfc:carrierOfCharacteristics">
            <xsl:attribute name="xlink:title">GEOID: Census tract identifier, a concatenation of Current state Federal Information Processing Series (FIPS) code, county FIPS code, and census tract code</xsl:attribute>
            <xsl:attribute name="xlink:href">insert UUID here</xsl:attribute>
        </xsl:element>
        
        <xsl:call-template name="INTLatLong"/>
        <xsl:call-template name="MTFCC"/>
        
        <xsl:element name="gfc:carrierOfCharacteristics">
            <xsl:attribute name="xlink:title">NAME: Current census tract name, this is the census tract code converted to an integer or integer plus two-digit decimal if the last two characters of the code are not both zeros.</xsl:attribute>
            <xsl:attribute name="xlink:href">insert UUID here</xsl:attribute>
        </xsl:element>
        
        <xsl:element name="gfc:carrierOfCharacteristics">
            <xsl:attribute name="xlink:title">NAMELSAD: Current translated legal/statistical area description and the census tract name</xsl:attribute>
            <xsl:attribute name="xlink:href">insert UUID here</xsl:attribute>
        </xsl:element>
        
        <xsl:call-template name="TRACTCE"/>
    </xsl:template>
    
    <xsl:template name="uga10">
       <xsl:call-template name="ALAND10"/>
        <xsl:call-template name="AWATER10"/>
        <xsl:call-template name="FUNCSTAT10"/>
        
        <xsl:element name="gfc:carrierOfCharacteristics">
            <xsl:attribute name="xlink:title">GEOID10: 2010 Census nation-based Public Use Microdata Area code; a concatenation of 2010 Census state FIPS code and Public Use Microdata Area code</xsl:attribute>
            <xsl:attribute name="xlink:href">insert UUID here</xsl:attribute>
        </xsl:element>
        
        <xsl:call-template name="INTLatLong10"/>
        
        <xsl:element name="gfc:carrierOfCharacteristics">
            <xsl:attribute name="xlink:title">LSAD10: 2010 Census legal/statistical area description code for urban area</xsl:attribute>
            <xsl:attribute name="xlink:href">insert UUID here</xsl:attribute>
        </xsl:element>
        
        <xsl:call-template name="MTFCC10"/>
        
        <xsl:element name="gfc:carrierOfCharacteristics">
            <xsl:attribute name="xlink:title">NAME10: 2010 Census urban area name</xsl:attribute>
            <xsl:attribute name="xlink:href">insert UUID here</xsl:attribute>
        </xsl:element>
        
        <xsl:element name="gfc:carrierOfCharacteristics">
            <xsl:attribute name="xlink:title">NAMELSAD10: 2010 Census name and the translated legal/statistical area description for urban area</xsl:attribute>
            <xsl:attribute name="xlink:href">insert UUID here</xsl:attribute>
        </xsl:element>
        
        <xsl:call-template name="STATEFP10"/>
        <xsl:call-template name="UGACE10"/>
        
        <xsl:element name="gfc:carrierOfCharacteristics">
            <xsl:attribute name="xlink:title">UGATYP10: 2010 Census urban growth area type</xsl:attribute>
            <xsl:attribute name="xlink:href">insert UUID here</xsl:attribute>
        </xsl:element>
        
    </xsl:template>
    
    <xsl:template name="unsd">
        <xsl:call-template name="ALAND10"/>
        <xsl:call-template name="AWATER"/>
        <xsl:call-template name="FUNCSTAT"/>
        
        <xsl:element name="gfc:carrierOfCharacteristics">
            <xsl:attribute name="xlink:title">GEOID: School district identifier; a concatenation of the current state Federal Information Processing Series (FIPS) code and unified school district local education agency code</xsl:attribute>
            <xsl:attribute name="xlink:href">insert UUID here</xsl:attribute>
        </xsl:element>
        
        <xsl:call-template name="HIGRADE"/>
        
        <xsl:call-template name="INTLatLong"/>
        
        <xsl:call-template name="LOGRADE"/>
        
        <xsl:element name="gfc:carrierOfCharacteristics">
            <xsl:attribute name="xlink:title">LSAD: urrent legal/statistical area description code for unified school district</xsl:attribute>
            <xsl:attribute name="xlink:href">insert UUID here</xsl:attribute>
        </xsl:element>  
        
        <xsl:call-template name="MTFCC"/>
        
        <xsl:element name="gfc:carrierOfCharacteristics">
            <xsl:attribute name="xlink:title">NAME:Current American Indian/Alaska Native/Native Hawaiian area name</xsl:attribute>
            <xsl:attribute name="xlink:href">insert UUID here</xsl:attribute>
        </xsl:element>
        
        <xsl:call-template name="SDTYP"/>
        <xsl:call-template name="STATEFP"/>
        <xsl:call-template name="UNSDLEA"/>
        
    </xsl:template>
    
    <xsl:template name="vtd10">
        <xsl:call-template name="ALAND10"/>
        <xsl:call-template name="AWATER10"/>
        <xsl:call-template name="COUNTYFP10"/>
        <xsl:call-template name="FUNCSTAT10"/>
        
        <xsl:element name="gfc:carrierOfCharacteristics">
            <xsl:attribute name="xlink:title">GEOID10: Voting district identifier; a concatenation of 2010 census state FIPS code, county FIPS code, and voting district code</xsl:attribute>
            <xsl:attribute name="xlink:href">insert UUID here</xsl:attribute>
        </xsl:element>
        
        <xsl:call-template name="INTLatLong10"/>
        
        <xsl:element name="gfc:carrierOfCharacteristics">
            <xsl:attribute name="xlink:title">LSAD10: 2010 Census legal/statistical area description code for voting district</xsl:attribute>
            <xsl:attribute name="xlink:href">insert UUID here</xsl:attribute>
        </xsl:element>
        
        <xsl:call-template name="MTFCC10"/>
        
        <xsl:element name="gfc:carrierOfCharacteristics">
            <xsl:attribute name="xlink:title">NAME10: 2010 Census voting district name</xsl:attribute>
            <xsl:attribute name="xlink:href">insert UUID here</xsl:attribute>
        </xsl:element>
        
        <xsl:element name="gfc:carrierOfCharacteristics">
            <xsl:attribute name="xlink:title">NAMELSAD10: 2010 Census name and the translated legal/statistical area description for voting district</xsl:attribute>
            <xsl:attribute name="xlink:href">insert UUID here</xsl:attribute>
        </xsl:element>
        
        <xsl:call-template name="STATEFP10"/>
        <xsl:call-template name="VTDST10"/>
        
        <xsl:element name="gfc:carrierOfCharacteristics">
            <xsl:attribute name="xlink:title">VTDI10: 2010 Census voting district indicator</xsl:attribute>
            <xsl:attribute name="xlink:href">insert UUID here</xsl:attribute>
        </xsl:element>
        
        
        
        
    </xsl:template>
    
    
</xsl:stylesheet>