Re: XMLlib -- > Xpath
Re: XMLlib -- > Xpath
- Subject: Re: XMLlib -- > Xpath
- From: Christopher Nebel <email@hidden>
- Date: Wed, 21 Nov 2007 17:06:57 -0800
On Nov 20, 2007, at 5:03 AM, Wayne Melrose wrote:
Is there a way to ignore case sensitivity when using xpath in XMLlib?
That depends on which comparisons you're talking about. If you're
talking about the node names, then no, because XML is case-sensitive
and ignoring that would be wrong. If you're talking about testing the
values of attributes in a predicate, then you could use something like
"translate(., 'ABCDEFGHIJKLMNOPQRSTUVWXYZ',
'abcdefghijklmnopqrstuvwxyz') = .", though obviously that only works
for US English. (You'd think there'd be a better way, but I can't
find one.)
--Chris Nebel
AppleScript Engineering
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden