Re: [xsl] IGNORE CASE IN XSLT match

Subject: Re: [xsl] IGNORE CASE IN XSLT match
From: Ruud Grosmann <r.grosmann@xxxxxx>
Date: Wed, 01 Oct 2008 14:49:31 +0200
XSLT 1.0
---- ---
  <xsl:template match="*[ translate( local-name(),
                                     'ABCDEFGHIJKLMNOPQRSTUVWXYZ',
                                     'abcdefghijklmnopqrstuvwxyz'
                                    ) = 'mix']">


Of course you don't need to translate all characters; maybe this one speeds the style sheet up:
<xsl:template match="*[ translate( local-name(),'MIX','mix') = 'mix']">


regards, Ruud

Current Thread