[eml-dev] eml-identifier.xsl
Jing Tao
tao at nceas.ucsb.edu
Thu Feb 18 16:52:11 PST 2010
Hi, devs:
I am trying to put the newest eml style sheet into kepler to display
eml-2.1.0. Somehow kepler doesn't like this part:
<xsl:template name="lsid">
<xsl:variable name="lsidString" select="concat('urn:lsid:',string($lsidauthority),':')"/>
<xsl:variable name="lsidString" select="concat($lsidString, substring-before(string(../@packageId),'.'), ':')"/>
<xsl:variable name="lsidString" select="concat($lsidString, substring-before(substring-after(string(../@packageId),'.'),'.'), ':')"/>
<xsl:variable name="lsidString" select="concat($lsidString, substring-after(substring-after(string(../@packageId),'.'),'.'))"/>
<xsl:value-of select="$lsidString"/>
</xsl:template>
The error message says the file defines the same variable lsidString
mutiple times at the same scope.
So i renamed the variables and it looks like:
<xsl:template name="lsid">
<xsl:variable name="lsidString1" select="concat('urn:lsid:',string($lsidauthority),':')"/>
<xsl:variable name="lsidString2" select="concat($lsidString1, substring-before(string(../@packageId),'.'), ':')"/>
<xsl:variable name="lsidString3" select="concat($lsidString2, substring-before(substring-after(string(../@packageId),'.'),'.'), ':')"/>
<xsl:variable name="lsidString4" select="concat($lsidString3, substring-after(substring-after(string(../@packageId),'.'),'.'))"/>
<xsl:value-of select="$lsidString4"/>
</xsl:template>
Do you see any problem with my change?
Thank you!
Jing
Jing Tao
National Center for Ecological
Analysis and Synthesis (NCEAS)
735 State St. Suite 204
Santa Barbara, CA 93101
More information about the Eml-dev
mailing list