• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: XMLlib -- > Xpath
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
  • Follow-Ups:
    • Re: XMLlib -- > Xpath
      • From: Alexis Gottlieb <email@hidden>
References: 
 >XMLlib -- > Xpath (From: Wayne Melrose <email@hidden>)

  • Prev by Date: Re: simple problem?
  • Next by Date: Shut Down
  • Previous by thread: Re: XMLlib -- > Xpath
  • Next by thread: Re: XMLlib -- > Xpath
  • Index(es):
    • Date
    • Thread