Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: [xsl] IGNORE CASE IN XSLT match

From: Colin Paul Adams <colin@------------------>
To:
Date: 10/1/2008 1:19:00 PM
>>>>> "David" == David Carlisle <davidc@xxxxxxxxx> writes:

    >> <xsl:template match="*[ lower-case( local-name() ) = 'mix']">
    >> <xsl:template match="Mix|mix">
    David> etc

    David> while you can do that it's often not really convenient as
    David> you have to do the same more or less everywhere

    David> <xsl:template match="*[ lower-case( local-name() ) =
    David> 'mix']"> <xsl:value-of select="@*[ lower-case( local-name()
    David> ) = 'foo']"> ..

    David>   etc

    David> It may be better to consider a two stage process, first
    David> normalize, then transform.

Very sensible, although calling lower-case() is not actually
guaranteed to normalize - for instance, lower casing the German word
ESSEN cannot be done with the lower-case() function - the later will
produce essen (I shan't attempt to type the proper lower-cased version
in an email - i don't think I'm set up for non-ascci :-( ).
-- 
Colin Adams
Preston Lancashire


transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent