📄 identification.xsl.svn-base
字号:
<?xml version="1.0" encoding="UTF-8"?><xsl:stylesheet version="1.0" xmlns ="http://www.isotc211.org/2005/gmd" xmlns:gco="http://www.isotc211.org/2005/gco" xmlns:gts="http://www.isotc211.org/2005/gts" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <!-- ============================================================================= --> <xsl:template match="*" mode="DataIdentification"> <citation> <CI_Citation> <xsl:apply-templates select="idCitation" mode="Citation"/> </CI_Citation> </citation> <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - --> <abstract> <gco:CharacterString><xsl:value-of select="idAbs"/></gco:CharacterString> </abstract> <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - --> <xsl:for-each select="idPurp"> <purpose> <gco:CharacterString><xsl:value-of select="."/></gco:CharacterString> </purpose> </xsl:for-each> <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - --> <xsl:for-each select="idCredit"> <credit> <gco:CharacterString><xsl:value-of select="."/></gco:CharacterString> </credit> </xsl:for-each> <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - --> <xsl:for-each select="status"> <status> <MD_ProgressCode codeList="./resources/codeList.xml#MD_ProgressCode" codeListValue="{ProgCd/@value}" /> </status> </xsl:for-each> <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - --> <xsl:for-each select="idPoC"> <pointOfContact> <CI_ResponsibleParty> <xsl:apply-templates select="." mode="RespParty"/> </CI_ResponsibleParty> </pointOfContact> </xsl:for-each> <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - --> <xsl:for-each select="resMaint"> <resourceMaintenance> <MD_MaintenanceInformation> <xsl:apply-templates select="." mode="MaintInfo"/> </MD_MaintenanceInformation> </resourceMaintenance> </xsl:for-each> <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - --> <xsl:for-each select="graphOver"> <graphicOverview> <MD_BrowseGraphic> <xsl:apply-templates select="." mode="BrowGraph"/> </MD_BrowseGraphic> </graphicOverview> </xsl:for-each> <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - --> <xsl:for-each select="dsFormat"> <resourceFormat> <MD_Format> <xsl:apply-templates select="." mode="Format"/> </MD_Format> </resourceFormat> </xsl:for-each> <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - --> <xsl:for-each select="descKeys"> <descriptiveKeywords> <MD_Keywords> <xsl:apply-templates select="." mode="Keywords"/> </MD_Keywords> </descriptiveKeywords> </xsl:for-each> <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - --> <xsl:for-each select="idSpecUse"> <resourceSpecificUsage> <MD_Usage> <xsl:apply-templates select="." mode="Usage"/> </MD_Usage> </resourceSpecificUsage> </xsl:for-each> <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - --> <xsl:for-each select="resConst"> <resourceConstraints> <xsl:apply-templates select="." mode="ConstsTypes"/> </resourceConstraints> </xsl:for-each> <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - --> <xsl:for-each select="spatRpType"> <spatialRepresentationType> <MD_SpatialRepresentationTypeCode codeList="./resources/codeList.xml#MD_SpatialRepresentationTypeCode" codeListValue="{SpatRepTypCd/@value}" /> </spatialRepresentationType> </xsl:for-each> <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - --> <xsl:for-each select="dataScale"> <spatialResolution> <MD_Resolution> <xsl:apply-templates select="." mode="Resol"/> </MD_Resolution> </spatialResolution> </xsl:for-each> <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - --> <xsl:for-each select="dataLang"> <language> <gco:CharacterString><xsl:value-of select="languageCode/@value"/></gco:CharacterString> </language> </xsl:for-each> <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - --> <xsl:for-each select="dataChar"> <characterSet> <MD_CharacterSetCode codeList="./resources/codeList.xml#MD_CharacterSetCode" codeListValue="{CharSetCd/@value}" /> </characterSet> </xsl:for-each> <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - --> <xsl:for-each select="tpCat"> <topicCategory> <MD_TopicCategoryCode codeList="./resources/codeList.xml#MD_TopicCategoryCode" codeListValue="{TopicCatCd/@value}" /> </topicCategory> </xsl:for-each> <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - --> <xsl:for-each select="envirDesc"> <environmentDescription> <gco:CharacterString><xsl:value-of select="."/></gco:CharacterString> </environmentDescription> </xsl:for-each> <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - --> <xsl:for-each select="dataExt"> <extent> <EX_Extent> <xsl:apply-templates select="." mode="Extent"/> </EX_Extent> </extent> </xsl:for-each> <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - --> <xsl:for-each select="geoBox"> <extent> <EX_Extent> <geographicElement> <EX_GeographicBoundingBox> <westBoundLongitude> <gco:Decimal><xsl:value-of select="westBL"/></gco:Decimal> </westBoundLongitude> <eastBoundLongitude> <gco:Decimal><xsl:value-of select="eastBL"/></gco:Decimal> </eastBoundLongitude> <southBoundLatitude> <gco:Decimal><xsl:value-of select="southBL"/></gco:Decimal> </southBoundLatitude> <northBoundLatitude> <gco:Decimal><xsl:value-of select="northBL"/></gco:Decimal> </northBoundLatitude> </EX_GeographicBoundingBox> </geographicElement> </EX_Extent> </extent> </xsl:for-each> <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - --> <xsl:for-each select="geoDesc"> <extent> <EX_Extent> <geographicElement> <EX_GeographicDescription> <xsl:apply-templates select="." mode="GeoDesc"/> </EX_GeographicDescription> </geographicElement> </EX_Extent> </extent> </xsl:for-each> <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - --> <xsl:for-each select="suppInfo"> <supplementalInformation> <gco:CharacterString><xsl:value-of select="."/></gco:CharacterString> </supplementalInformation> </xsl:for-each> </xsl:template> <!-- ============================================================================= --> <!-- === MaintInfo === --> <!-- ============================================================================= --> <xsl:template match="*" mode="MaintInfo"> <maintenanceAndUpdateFrequency> <MD_MaintenanceFrequencyCode codeList="./resources/codeList.xml#MD_MaintenanceFrequencyCode" codeListValue="{maintFreq/MaintFreqCd/@value}" /> </maintenanceAndUpdateFrequency> <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - --> <xsl:for-each select="dateNext"> <dateOfNextUpdate> <gco:Date><xsl:value-of select="."/></gco:Date> </dateOfNextUpdate> </xsl:for-each> <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - --> <xsl:for-each select="usrDefFreq"> <userDefinedMaintenanceFrequency> <gts:TM_PeriodDuration> <xsl:apply-templates select="." mode="TM_PeriodDuration"/> </gts:TM_PeriodDuration> </userDefinedMaintenanceFrequency> </xsl:for-each> <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - --> <xsl:for-each select="maintScp"> <updateScope> <MD_ScopeCode codeList="./resources/codeList.xml#MD_ScopeCode" codeListValue="{ScopeCd/@value}" /> </updateScope> </xsl:for-each> <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - --> <xsl:for-each select="upScpDesc"> <updateScopeDescription> <MD_ScopeDescription> <xsl:apply-templates select="." mode="ScpDesc"/> </MD_ScopeDescription> </updateScopeDescription> </xsl:for-each> <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - --> <xsl:for-each select="maintNote"> <maintenanceNote> <gco:CharacterString><xsl:value-of select="."/></gco:CharacterString> </maintenanceNote> </xsl:for-each> </xsl:template> <!-- ============================================================================= --> <xsl:template match="*" mode="TM_PeriodDuration"> <xsl:value-of select="years"/>-<xsl:value-of select="months"/>-<xsl:value-of select="days"/>T <xsl:value-of select="hours"/>:<xsl:value-of select="minutes"/>:<xsl:value-of select="seconds"/> </xsl:template> <!-- ============================================================================= --> <!-- === BrowGraph === --> <!-- ============================================================================= -->
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -