W3C home > Mailing lists > Public > www-xml-linking-comments@w3.org > October to December 2000

Re: Case-sensitivity, child sequences

From: Eric van der Vlist <vdv@dyomedea.com>
Date: Mon, 06 Nov 2000 17:27:23 +0100
Message-ID: <3A06DBEB.60E084C4@dyomedea.com>
To: "Eve L. Maler" <eve.maler@east.sun.com>
CC: Emil Åström <Emil.Astrom@excosoft.se>, www-xml-linking-comments@w3.org
Hi

"Eve L. Maler" wrote:
> 
> At 11:51 AM 11/6/00 +0100, Emil Åström wrote:
> >Hi,
> >
> >I have two questions, one about XPath case-sensitivity and one
> >about child sequences in XPointer.
> >
> >1. The string functions of XPath (starts-with(), contains(), etc.)
> >all seem to be case-sensitive. Is there a way to do case-
> >insensitive string comparison in XPath.
> 
> Not to my knowledge -- you might need an extension function.  Does anyone
> else know?

The classical -yet verbose- way to do is to convert to lower (or
uppercase) prior to test using the translate function:

translate(myString, 'AZERTYUIOPQSDFGHJKLMWXCVBN',
'azertyuiopqsdfghjklmwxcvbn') 

Hope this helps.

Eric
-- 
------------------------------------------------------------------------
Eric van der Vlist       Dyomedea                    http://dyomedea.com
http://xmlfr.org         http://4xt.org              http://ducotede.com
------------------------------------------------------------------------
Received on Monday, 6 November 2000 11:27:30 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 27 October 2009 08:39:41 GMT