[eml-dev] eml-identifier.xsl
ben leinfelder
leinfelder at nceas.ucsb.edu
Thu Feb 18 16:56:42 PST 2010
Jing,
That should be fine. Do you suppose Kepler is using a different XSL
processor than, say, Metcat or other tools we have been using with
these stylesheets?
Might explain the errors that are cropping up.
-ben
On Feb 18, 2010, at 4:52 PM, Jing Tao wrote:
> 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
> _______________________________________________
> Eml-dev mailing list
> Eml-dev at ecoinformatics.org
> http://mercury.nceas.ucsb.edu/ecoinformatics/mailman/listinfo/eml-dev
More information about the Eml-dev
mailing list