You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-users@xalan.apache.org by Tahura Chaudhry <ta...@hotmail.com> on 2004/12/10 20:44:31 UTC

case insensitive xpath evaluation

Is it possible to tell Xalan to do case insensitive path search or case 
insensitive comparison (for attribute names and values, etc) when evaluating 
the xpath expression in xalan-java?

thanks,
Tahura Chaudhry



Re: case insensitive xpath evaluation

Posted by Joseph Kesselman <ke...@us.ibm.com>.



You could try doing some ugly things with using predicate tests... changing
      /foo
to
      /node()["FOO"=localname() or "foo"=localname()]

or doing something with translate() to fold the case so you don't have to
test each version separately.

But this is NOT really recommended. All other XML applications are going to
be case-sensitive, so you're just deferring the problem rather than solving
it. Fix whatever is generating the document.

______________________________________
Joe Kesselman, IBM Next-Generation Web Technologies: XML, XSL and more.
"The world changed profoundly and unpredictably the day Tim Berners Lee
got bitten by a radioactive spider." -- Rafe Culpin, in r.m.filk