📄 metadata-iso19115.xsl.svn-base
字号:
<xsl:with-param name="edit" select="$edit"/> </xsl:apply-templates> <xsl:apply-templates mode="elementEP" select="mdParentID|geonet:child[string(@name)='mdParentID']"> <xsl:with-param name="schema" select="$schema"/> <xsl:with-param name="edit" select="$edit"/> </xsl:apply-templates> <xsl:apply-templates mode="elementEP" select="mdHrLv|geonet:child[string(@name)='mdHrLv']"> <xsl:with-param name="schema" select="$schema"/> <xsl:with-param name="edit" select="$edit"/> </xsl:apply-templates> <xsl:apply-templates mode="elementEP" select="mdHrLvName|geonet:child[string(@name)='mdHrLvName']"> <xsl:with-param name="schema" select="$schema"/> <xsl:with-param name="edit" select="$edit"/> </xsl:apply-templates> <xsl:apply-templates mode="elementEP" select="mdDateSt|geonet:child[string(@name)='mdDateSt']"> <xsl:with-param name="schema" select="$schema"/> <xsl:with-param name="edit" select="$edit"/> </xsl:apply-templates> <xsl:apply-templates mode="elementEP" select="mdStanName|geonet:child[string(@name)='mdStanName']"> <xsl:with-param name="schema" select="$schema"/> <xsl:with-param name="edit" select="$edit"/> </xsl:apply-templates> <xsl:apply-templates mode="elementEP" select="mdStanVer|geonet:child[string(@name)='mdStanVer']"> <xsl:with-param name="schema" select="$schema"/> <xsl:with-param name="edit" select="$edit"/> </xsl:apply-templates> <xsl:apply-templates mode="elementEP" select="mdContact|geonet:child[string(@name)='mdContact']"> <xsl:with-param name="schema" select="$schema"/> <xsl:with-param name="edit" select="$edit"/> </xsl:apply-templates> <xsl:apply-templates mode="elementEP" select="contInfo|geonet:child[string(@name)='contInfo']"> <xsl:with-param name="schema" select="$schema"/> <xsl:with-param name="edit" select="$edit"/> </xsl:apply-templates> <xsl:apply-templates mode="elementEP" select="mdExtInfo|geonet:child[string(@name)='mdExtInfo']"> <xsl:with-param name="schema" select="$schema"/> <xsl:with-param name="edit" select="$edit"/> </xsl:apply-templates> <xsl:apply-templates mode="elementEP" select="mdConst|geonet:child[string(@name)='mdConst']"> <xsl:with-param name="schema" select="$schema"/> <xsl:with-param name="edit" select="$edit"/> </xsl:apply-templates> <xsl:apply-templates mode="elementEP" select="mdMaint|geonet:child[string(@name)='mdMaint']"> <xsl:with-param name="schema" select="$schema"/> <xsl:with-param name="edit" select="$edit"/> </xsl:apply-templates> </xsl:template> <xsl:template name="iso19115Identification"> <xsl:param name="schema"/> <xsl:param name="edit"/> <!-- thumbnail --> <tr> <td class="padded" align="center" valign="center" colspan="2"> <xsl:variable name="md"> <xsl:apply-templates mode="brief" select="."/> </xsl:variable> <xsl:variable name="metadata" select="xalan:nodeset($md)/*[1]"/> <xsl:call-template name="thumbnail"> <xsl:with-param name="metadata" select="$metadata"/> </xsl:call-template> </td> </tr> <xsl:apply-templates mode="elementEP" select="dataIdInfo/idCitation|dataIdInfo/geonet:child[string(@name)='idCitation']"> <xsl:with-param name="schema" select="$schema"/> <xsl:with-param name="edit" select="$edit"/> </xsl:apply-templates> <xsl:apply-templates mode="elementEP" select="dataIdInfo/dataLang|dataIdInfo/geonet:child[string(@name)='dataLang']"> <xsl:with-param name="schema" select="$schema"/> <xsl:with-param name="edit" select="$edit"/> </xsl:apply-templates> <xsl:apply-templates mode="elementEP" select="dataIdInfo/dataChar|dataIdInfo/geonet:child[string(@name)='dataChar']"> <xsl:with-param name="schema" select="$schema"/> <xsl:with-param name="edit" select="$edit"/> </xsl:apply-templates> <xsl:apply-templates mode="elementEP" select="dataIdInfo/idAbs|dataIdInfo/geonet:child[string(@name)='idAbs']"> <xsl:with-param name="schema" select="$schema"/> <xsl:with-param name="edit" select="$edit"/> </xsl:apply-templates> <xsl:apply-templates mode="elementEP" select="dataIdInfo/suppInfo|dataIdInfo/geonet:child[string(@name)='suppInfo']"> <xsl:with-param name="schema" select="$schema"/> <xsl:with-param name="edit" select="$edit"/> </xsl:apply-templates> <xsl:apply-templates mode="elementEP" select="dataIdInfo/idPurp|dataIdInfo/geonet:child[string(@name)='idPurp']"> <xsl:with-param name="schema" select="$schema"/> <xsl:with-param name="edit" select="$edit"/> </xsl:apply-templates> <xsl:apply-templates mode="elementEP" select="dataIdInfo/idCredit|dataIdInfo/geonet:child[string(@name)='idCredit']"> <xsl:with-param name="schema" select="$schema"/> <xsl:with-param name="edit" select="$edit"/> </xsl:apply-templates> <xsl:apply-templates mode="elementEP" select="dataIdInfo/status|dataIdInfo/geonet:child[string(@name)='status']"> <xsl:with-param name="schema" select="$schema"/> <xsl:with-param name="edit" select="$edit"/> </xsl:apply-templates> <xsl:apply-templates mode="elementEP" select="dataIdInfo/tpCat|dataIdInfo/geonet:child[string(@name)='tpCat']"> <xsl:with-param name="schema" select="$schema"/> <xsl:with-param name="edit" select="$edit"/> </xsl:apply-templates> <xsl:apply-templates mode="elementEP" select="dataIdInfo/descKeys|dataIdInfo/geonet:child[string(@name)='descKeys']"> <xsl:with-param name="schema" select="$schema"/> <xsl:with-param name="edit" select="$edit"/> </xsl:apply-templates> <xsl:apply-templates mode="elementEP" select="dataIdInfo/graphOver|dataIdInfo/geonet:child[string(@name)='graphOver']"> <xsl:with-param name="schema" select="$schema"/> <xsl:with-param name="edit" select="$edit"/> </xsl:apply-templates> <xsl:apply-templates mode="elementEP" select="dataIdInfo/dsFormat|dataIdInfo/geonet:child[string(@name)='dsFormat']"> <xsl:with-param name="schema" select="$schema"/> <xsl:with-param name="edit" select="$edit"/> </xsl:apply-templates> <xsl:apply-templates mode="elementEP" select="dataIdInfo/idSpecUse|dataIdInfo/geonet:child[string(@name)='idSpecUse']"> <xsl:with-param name="schema" select="$schema"/> <xsl:with-param name="edit" select="$edit"/> </xsl:apply-templates> <xsl:apply-templates mode="elementEP" select="dataIdInfo/idPoC|dataIdInfo/geonet:child[string(@name)='idPoC']"> <xsl:with-param name="schema" select="$schema"/> <xsl:with-param name="edit" select="$edit"/> </xsl:apply-templates> <xsl:apply-templates mode="elementEP" select="dataIdInfo/envirDesc|dataIdInfo/geonet:child[string(@name)='envirDesc']"> <xsl:with-param name="schema" select="$schema"/> <xsl:with-param name="edit" select="$edit"/> </xsl:apply-templates> <xsl:apply-templates mode="elementEP" select="dataIdInfo/dataExt|dataIdInfo/geonet:child[string(@name)='dataExt']"> <xsl:with-param name="schema" select="$schema"/> <xsl:with-param name="edit" select="$edit"/> </xsl:apply-templates> </xsl:template> <xsl:template name="iso19115Spatial"> <xsl:param name="schema"/> <xsl:param name="edit"/> <xsl:apply-templates mode="elementEP" select="dataIdInfo/spatRpType|dataIdInfo/geonet:child[string(@name)='spatRpType']"> <xsl:with-param name="schema" select="$schema"/> <xsl:with-param name="edit" select="$edit"/> </xsl:apply-templates> <xsl:apply-templates mode="elementEP" select="dataIdInfo/dataScale|dataIdInfo/geonet:child[string(@name)='dataScale']"> <xsl:with-param name="schema" select="$schema"/> <xsl:with-param name="edit" select="$edit"/> </xsl:apply-templates> <xsl:apply-templates mode="elementEP" select="dataIdInfo/geoBox|dataIdInfo/geonet:child[string(@name)='geoBox']"> <xsl:with-param name="schema" select="$schema"/> <xsl:with-param name="edit" select="$edit"/> </xsl:apply-templates> <xsl:apply-templates mode="elementEP" select="dataIdInfo/geoDesc|dataIdInfo/geonet:child[string(@name)='geoDesc']"> <xsl:with-param name="schema" select="$schema"/> <xsl:with-param name="edit" select="$edit"/> </xsl:apply-templates> </xsl:template> <!-- date and date type --> <xsl:template mode="iso19115" match="resRefDate"> <xsl:param name="schema"/> <xsl:param name="edit"/> <xsl:choose> <xsl:when test="$edit=false()"> <xsl:apply-templates mode="simpleElement" select="."> <xsl:with-param name="schema" select="$schema"/> <xsl:with-param name="edit" select="$edit"/> <xsl:with-param name="text" select="concat(refDate,' (',refDateType/DateTypCd/@value,')')"/> </xsl:apply-templates> </xsl:when> <xsl:otherwise> <xsl:apply-templates mode="element" select="."> <xsl:with-param name="schema" select="$schema"/> <xsl:with-param name="edit" select="$edit"/> </xsl:apply-templates> </xsl:otherwise> </xsl:choose> </xsl:template> <!-- dataIdInfo; ISO order is: - idCitation - idAbs - idPurp - idCredit - status - idPoC - resConst - dsFormat - idSpecUse - resMaint - descKeys - graphOver - spatRpType - dataScale - dataLang - dataChar - tpCat - geoBox - geoDesc - envirDesc - dataExt - suppInfo --> <xsl:template mode="iso19115" match="dataIdInfo"> <xsl:param name="schema"/> <xsl:param name="edit"/> <xsl:variable name="content"> <!-- thumbnail --> <tr> <td class="padded" align="center" valign="center" colspan="2"> <xsl:variable name="md"> <xsl:apply-templates mode="brief" select=".."/> </xsl:variable> <xsl:variable name="metadata" select="xalan:nodeset($md)/*[1]"/> <xsl:call-template name="thumbnail"> <xsl:with-param name="metadata" select="$metadata"/> </xsl:call-template> </td> </tr> <xsl:apply-templates mode="elementEP" select="idCitation|geonet:child[string(@name)='idCitation']"> <xsl:with-param name="schema" select="$schema"/> <xsl:with-param name="edit" select="$edit"/> </xsl:apply-templates> <xsl:apply-templates mode="elementEP" select="dataLang|geonet:child[string(@name)='dataLang']"> <xsl:with-param name="schema" select="$schema"/> <xsl:with-param name="edit" select="$edit"/> </xsl:apply-templates> <xsl:apply-templates mode="elementEP" select="dataChar|geonet:child[string(@name)='dataChar']"> <xsl:with-param name="schema" select="$schema"/> <xsl:with-param name="edit" select="$edit"/> </xsl:apply-templates> <xsl:apply-templates mode="elementEP" select="idAbs|geonet:child[string(@name)='idAbs']"> <xsl:with-param name="schema" select="$schema"/> <xsl:with-param name="edit" select="$edit"/> </xsl:apply-templates> <xsl:apply-templates mode="elementEP" select="suppInfo|geonet:child[string(@name)='suppInfo']"> <xsl:with-param name="schema" select="$schema"/> <xsl:with-param name="edit" select="$edit"/> </xsl:apply-templates> <xsl:apply-templates mode="elementEP" select="idPurp|geonet:child[string(@name)='idPurp']"> <xsl:with-param name="schema" select="$schema"/> <xsl:with-param name="edit" select="$edit"/> </xsl:apply-templates> <xsl:apply-templates mode="elementEP" select="idCredit|geonet:child[string(@name)='idCredit']"> <xsl:with-param name="schema" select="$schema"/> <xsl:with-param name="edit" select="$edit"/> </xsl:apply-templates> <xsl:apply-templates mode="elementEP" select="status|geonet:child[string(@name)='status']"> <xsl:with-param name="schema" select="$schema"/> <xsl:with-param name="edit" select="$edit"/> </xsl:apply-templates> <xsl:apply-templates mode="elementEP" select="tpCat|geonet:child[string(@name)='tpCat']"> <xsl:with-param name="schema" select="$schema"/> <xsl:with-param name="edit" select="$edit"/> </xsl:apply-templates> <xsl:apply-templates mode="elementEP" select="descKeys|geonet:child[string(@name)='descKeys']"> <xsl:with-param name="schema" select="$schema"/> <xsl:with-param name="edit" select="$edit"/> </xsl:apply-templates> <xsl:apply-templates mode="elementEP" select="graphOver|geonet:child[string(@name)='graphOver']"> <xsl:with-param name="schema" select="$schema"/> <xsl:with-param name="edit" select="$edit"/> </xsl:apply-templates> <xsl:apply-templates mode="elementEP" select="spatRpType|geonet:child[string(@name)='spatRpType']"> <xsl:with-param name="schema" select="$schema"/> <xsl:with-param name="edit" select="$edit"/> </xsl:apply-templates> <xsl:apply-templates mode="elementEP" select="dataScale|geonet:child[string(@name)='dataScale']"> <xsl:with-param name="schema" select="$schema"/> <xsl:with-param name="edit" select="$edit"/> </xsl:apply-templates> <xsl:apply-templates mode="elementEP" select="geoBox|geonet:child[string(@name)='geoBox']"> <xsl:with-param name="schema" select="$schema"/> <xsl:with-param name="edit" select="$edit"/> </xsl:apply-templates> <xsl:apply-templates mode="elementEP" select="geoDesc|geonet:child[string(@name)='geoDesc']"> <xsl:with-param name="schema" select="$schema"/> <xsl:with-param name="edit" select="$edit"/> </xsl:apply-templates> <xsl:apply-templates mode="elementEP" select="dataExt|geonet:child[string(@name)='dataExt']"> <xsl:with-param name="schema" select="$schema"/> <xsl:with-param name="edit" select="$edit"/> </xsl:apply-templates> <xsl:apply-templates mode="elementEP" select="resConst|geonet:child[string(@name)='resConst']"> <xsl:with-param name="schema" select="$schema"/> <xsl:with-param name="edit" select="$edit"/> </xsl:apply-templates> <xsl:apply-templates mode="elementEP" select="dsFormat|geonet:child[string(@name)='dsFormat']"> <xsl:with-param name="schema" select="$schema"/> <xsl:with-param name="edit" select="$edit"/> </xsl:apply-templates> <xsl:apply-templates mode="elementEP" select="idSpecUse|geonet:child[string(@name)='idSpecUse']"> <xsl:with-param name="schema" select="$schema"/> <xsl:with-param name="edit" select="$edit"/> </xsl:apply-templates> <xsl:apply-templates mode="elementEP" select="resMaint|geonet:child[string(@name)='resMaint']"> <xsl:with-param name="schema" select="$schema"/> <xsl:with-param name="edit" select="$edit"/> </xsl:apply-templates> <xsl:apply-templates mode="elementEP" select="idPoC|geonet:child[string(@name)='idPoC']"> <xsl:with-param name="schema" select="$schema"/> <xsl:with-param name="edit" select="$edit"/>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -