Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: Case insensitivity using Xpath and libXML

by dakkar (Hermit)
on May 14, 2004 at 13:27 UTC ( #353356=note: print w/replies, xml ) Need Help??


in reply to Case insensitivity using Xpath and libXML

XSLT does not define any case-mapping functions. translate works only if you know which characters you can find in the string (for the same reasons that in Perl tr{A-Z}{a-z} will not lowercase a string correctly)

You could write an extension function in Perl, register it in libxmls's xpath context, and use it. There should be a test in the XML::LibXML distribution defining extension functions.

-- 
        dakkar - Mobilis in mobile

Most of my code is tested...

Perl is strongly typed, it just has very few types (Dan)

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://353356]
help
Chatterbox?
LanX interesting POTUS reminds his people of brutal colonial past in the Philipines ...
[LanX]: ... what's next? Donald as John Wayne in "Rio Pig Blood - Bad Hombres must Die" ?
[LanX]: nowadays no idea is too silly to be unlikely...

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (10)
As of 2017-08-18 12:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Who is your favorite scientist and why?



























    Results (301 votes). Check out past polls.

    Notices?