⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 dublin-core.xsl.svn-base

📁 由国外的一个著名的geonetwork修改而来
💻 SVN-BASE
字号:
<?xml version="1.0" encoding="UTF-8" ?><xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"	xmlns:dc = "http://purl.org/dc/elements/1.1/"><xsl:template match="/">	<Document>		<xsl:variable name="coverage" select="/simpledc/dc:coverage"/>		<xsl:variable name="n" select="substring-after($coverage,'North ')"/>		<xsl:variable name="north" select="substring-before($n,',')"/>		<xsl:variable name="s" select="substring-after($coverage,'South ')"/>		<xsl:variable name="south" select="substring-before($s,',')"/>		<xsl:variable name="e" select="substring-after($coverage,'East ')"/>		<xsl:variable name="east" select="substring-before($e,',')"/>		<xsl:variable name="w" select="substring-after($coverage,'West ')"/>		<xsl:variable name="west" select="substring-before($w,'. ')"/>		<xsl:variable name="p" select="substring-after($coverage,'(')"/>		<xsl:variable name="place" select="substring-before($p,')')"/>				<xsl:apply-templates select="/simpledc/dc:title">			<xsl:with-param name="name" select="'title'"/>			<xsl:with-param name="token" select="'true'"/>		</xsl:apply-templates>				<xsl:apply-templates select="/simpledc/dc:description">			<xsl:with-param name="name" select="'abstract'"/>			<xsl:with-param name="token" select="'true'"/>		</xsl:apply-templates>				<Field name="westBL"  string="{$west  + 360}" store="true" index="true" token="false"/>		<Field name="eastBL"  string="{$east  + 360}" store="true" index="true" token="false"/>		<Field name="southBL" string="{$south + 360}" store="true" index="true" token="false"/>		<Field name="northBL" string="{$north + 360}" store="true" index="true" token="false"/>				<Field name="keyword" string="{$place}" store="true" index="true" token="true"/>				<xsl:apply-templates select="/simpledc/dc:subject">			<xsl:with-param name="name" select="'keyword'"/>			<xsl:with-param name="store" select="'true'"/>			<xsl:with-param name="token" select="'true'"/>		</xsl:apply-templates>		<Field name="any" store="false" index="true" token="true">			<xsl:attribute name="string">				<xsl:apply-templates select="/simpledc" mode="allText"/>			</xsl:attribute>		</Field>		<!-- locally searchable fields -->				<!-- defaults to true -->		<Field name="digital" string="true" store="false" index="true" token="false"/>				</Document></xsl:template><!-- text element, by default indexed, not stored, tokenized --><xsl:template match="*">	<xsl:param name="name"  select="name(.)"/>	<xsl:param name="store" select="'false'"/>	<xsl:param name="index" select="'true'"/>	<xsl:param name="token" select="'false'"/>	   <Field name="{$name}" string="{string(.)}" store="{$store}" index="{$index}" token="{$token}"/></xsl:template><!--allText --><xsl:template match="*" mode="allText">	<xsl:for-each select="@*"><xsl:value-of select="concat(string(.),' ')"/></xsl:for-each>	<xsl:choose>		<xsl:when test="*"><xsl:apply-templates select="*" mode="allText"/></xsl:when>		<xsl:otherwise><xsl:value-of select="concat(string(.),' ')"/></xsl:otherwise>	</xsl:choose></xsl:template></xsl:stylesheet>

⌨️ 快捷键说明

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