Re: [xsl] lowercasing all attributes...

Subject: Re: [xsl] lowercasing all attributes...
From: ronald heller <ronald@xxxxxxxxxxx>
Date: Mon, 28 Jan 2002 11:54:46 +0100
maybe this would work for you:
   <xsl:template match="*">
      <xsl:copy>
         <xsl:apply-templates select="@*" />

         <xsl:apply-templates />
      </xsl:copy>
   </xsl:template>

<xsl:template match="@*">
<xsl:attribute name="{name()}">
<xsl:value-of select="translate(.,'ABCDEFGHIJKLMNOPQRSTUVWXYZ','abcdefghijklmnopqrstuvwxyz')" />
</xsl:attribute>
</xsl:template>
At 03:02 PM 1/27/02 -0800, you wrote:
Hi,

I'd like to lowercase a document's attributes through <xsl:apply-templates
select="???">

I know it's translate(., 'ABCDEFGHIJKLMNOPQRSTUVWXYZ',
'abcdefghijklmnopqrstuvwxyz') but how 'bout the template match pattern and
the select for apply-templates ??

thanks!

Martijn



XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list


XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list


Current Thread