xml editor

Supported platforms

Compatible with Windows7 & Mac OS X Snow Leopard

Ready for data server software
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

Re: case insensitive comparison


Subject: Re: case insensitive comparison
From: David Carlisle <davidc@xxxxxxxxx>
Date: Tue, 12 Sep 2000 13:01:44 GMT

>   Currently, have this:

>	   <xsl:when test= ".[@internal = //bookmark/@name]">

as discussed a few days ago on this list, you can't use [] after .
that should be

	   <xsl:when test= "self::node()[@internal = //bookmark/@name]">


> I'd like to make this case insensitive.   Thanks.  ekt

If you are writing in English,

<xsl:variable name="u" select="'ABCDEFGHIJKLMNOPQRSTUVWXYZ'"/>
<xsl:variable name="l" select="'abcdefghijklmnopqrstuvwxyz'"/>

<xsl:when test= "self::node()
             [translate(@internal,$u,$l) = 
              translate(//bookmark/@name,$u,$l)]">

David



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



Current Thread
XML Editor | XML Author | WYSIWYG Editors | Schema Editor | XSD Documentation | XSL/XSLT Editor | XQuery | XML Databases | SVN Client
© 2002-2011 SyncRO Soft Ltd. All rights reserved. | Sitemap | Privacy Policy | This website was created & generated with <oXygen/>®XML Editor