Re: Case-sensitivity, child sequences

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 UTC