xsl-list
[Top] [All Lists]

[xsl] Re [xsl] Change xml:lang of a skos:prefLabel [ skos, rdf, xml:lang ]

2009-10-15 08:03:07
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/



























--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--