By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
428,591 Members | 650 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 428,591 IT Pros & Developers. It's quick & easy.

XPath Expression to retrieve attribute value without case sensitivity

P: n/a
AST
Hey,

I am struggling with how to form the XPath expression to find the value of
an attribute value without case sensitivity.

I have tried the following, but I must be missing something simple.

"SOLUTIONS/SOLUTION[@id=*[translate(text(),
'abcdefghijklmnopqrstuvwxyz','ABCDEFGHIJKLMNOPQRST UVWXYZ')='TESTSOLUTION']]"

There exists an attribute id='TestSolution' on an <SOLUTION> element.

Any help is greatly appreciated.

Best regards,

Bill
Mar 14 '06 #1
Share this Question
Share on Google+
1 Reply


P: n/a
AST
Hey,

Figured it out!

"SOLUTIONS/SOLUTION[translate(@id,
'abcdefghijklmnopqrstuvwxyz','ABCDEFGHIJKLMNOPQRST UVWXYZ')='TESTSOLUTION']"
"AST" <au******@az.rmci.net@noreply.com> wrote in message
news:%2***************@TK2MSFTNGP10.phx.gbl...
Hey,

I am struggling with how to form the XPath expression to find the value of
an attribute value without case sensitivity.

I have tried the following, but I must be missing something simple.

"SOLUTIONS/SOLUTION[@id=*[translate(text(),
'abcdefghijklmnopqrstuvwxyz','ABCDEFGHIJKLMNOPQRST UVWXYZ')='TESTSOLUTION']]"

There exists an attribute id='TestSolution' on an <SOLUTION> element.

Any help is greatly appreciated.

Best regards,

Bill

Mar 14 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.