This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: lowercasing all attributes...
- From: ronald heller <ronald at salience dot nl>
- To: xsl-list at lists dot mulberrytech dot com
- Date: Mon, 28 Jan 2002 11:54:46 +0100
- Subject: Re: [xsl] lowercasing all attributes...
- Reply-to: xsl-list at lists dot mulberrytech dot com
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