|
Subject: [xsl] Re [xsl] Change xml:lang of a skos:prefLabel [ skos, rdf, xml:lang ] From: Florent Georges <lists@xxxxxxxxxxxx> Date: Thu, 15 Oct 2009 12:02:35 +0000 (GMT) |
Michael Kay wrote:
Hi,
> <xsl:template
match="skos:altLabel|skos:prefLabel">
> <xsl:copy>
> <xsl:attribute
name="xml:lang">en</xsl:attribute>
> <xsl:copy-of select="@*"/>
>
<xsl:apply-templates select="@*|node()"/>
> </xsl:copy>
>
</xsl:template>
> <xsl:template match="*">
> <xsl:copy>
>
<xsl:copy-of select="@*"/>
> <xsl:apply-templates select="@*|node()"/>
>
</xsl:copy>
> </xsl:template>
I guess selecting attributes in both
apply-templates instructions is a typo?
Regards,
--
Florent Georges
http://www.fgeorges.org/
| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| Re: [xsl] Change xml:lang of a skos, Jürgen Jakobitsch | Thread | RE: [xsl] Re [xsl] Change xml:lang , Michael Kay |
| Re: [xsl] Change xml:lang of a skos, Jürgen Jakobitsch | Date | RE: [xsl] Re [xsl] Change xml:lang , Michael Kay |
| Month |