update-fixed-info.xsl.svn-base

来自「由国外的一个著名的geonetwork修改而来」· SVN-BASE 代码 · 共 99 行

SVN-BASE
99
字号
<?xml version="1.0" encoding="UTF-8"?><xsl:stylesheet   xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0" 						xmlns:gco="http://www.isotc211.org/2005/gco"						xmlns:gmd="http://www.isotc211.org/2005/gmd" exclude-result-prefixes="gmd">	<!-- ================================================================= -->		<xsl:template match="/root">		 <xsl:apply-templates select="gmd:DS_DataSet"/>	</xsl:template>	<!-- ================================================================= -->		<xsl:template match="gmd:MD_Metadata">		 <xsl:copy>		 		<xsl:if test="not(gmd:fileIdentifier)">		 			<fileIdentifier>						<gco:CharacterString><xsl:value-of select="/root/env/uuid"/></gco:CharacterString>					</fileIdentifier>				</xsl:if>			  <xsl:apply-templates select="@*|node()"/>		 </xsl:copy>	</xsl:template>	<!-- ================================================================= -->		<xsl:template match="gmd:fileIdentifier">		<xsl:copy>			<gco:CharacterString><xsl:value-of select="/root/env/uuid"/></gco:CharacterString>		</xsl:copy>	</xsl:template>		<!-- ================================================================= -->		<xsl:template match="gmd:dateStamp">		<xsl:copy>			<gco:DateTime><xsl:value-of select="/root/env/currDate"/></gco:DateTime>		</xsl:copy>	</xsl:template>	<!-- ================================================================= -->		<xsl:template match="gmd:MD_Metadata/gmd:characterSet">		<characterSet>			<MD_CharacterSetCode codeList="./resources/codeList.xml#MD_CharacterSetCode" codeListValue="utf8" />		</characterSet>	</xsl:template>	<!-- ================================================================= -->		<xsl:template match="gmd:metadataStandardName">		<metadataStandardName>			<gco:CharacterString>ISO 19115:2003/19139</gco:CharacterString>		</metadataStandardName>	</xsl:template>	<!-- ================================================================= -->		<xsl:template match="gmd:metadataStandardVersion">		<metadataStandardVersion>			<gco:CharacterString>1.0</gco:CharacterString>		</metadataStandardVersion>	</xsl:template>	<!-- ================================================================= -->	<!-- online resources: download -->	<!-- ================================================================= -->	<xsl:template match="gmd:linkage[starts-with(following-sibling::gmd:protocol/gco:CharacterString,'WWW:DOWNLOAD-') and contains(following-sibling::gmd:protocol/gco:CharacterString,'http--download') and following-sibling::gmd:name]">		<xsl:choose>			<xsl:when test="string(/root/env/siteID)=string(/root/env/source)">				<linkage>					<URL>						<xsl:value-of select="concat(/root/env/siteURL,'/resources.get?id=',/root/env/id,'&amp;fname=',following-sibling::gmd:name/gco:CharacterString,'&amp;access=private')"/>					</URL>				</linkage>			</xsl:when>			<xsl:otherwise>				<xsl:copy-of select="."/>			</xsl:otherwise>		</xsl:choose>			</xsl:template>	<!-- ================================================================= -->		<xsl:template match="@*|node()">		 <xsl:copy>			  <xsl:apply-templates select="@*|node()"/>		 </xsl:copy>	</xsl:template>	<!-- ================================================================= --></xsl:stylesheet>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?