title: case insensitive search - xpath
body: <p>I'm trying to do a case-insensitive search on my XML document using the below XPath expression. Apparently, I'm got it incorrectly, since the results are different.Hoping someone here can point out my mistake?</p>
  
  <p>I'm trying to get a count of all Obj elements under <code>&lt;Sect&gt;</code> where the <code>&lt;Header&gt;</code> value is Primary Objectives. To get the count, I'm using the below expression which works great.</p>
  
  <p>Expression - without case sensitivity: Returns 31 nodes.</p>
  
  <pre><code>("count(//TaggedPDF-doc//Part//Sect//Sect//Sect[contains(Header,\"Primary objectives\")]//OBJ)");
  </code></pre>
  
  <p>But I want to make "Primary Objectives" case insensitive. So,I was trying to use Translate for that.
  Expression - adding translation to make "Primary Objectives" case insensitive.</p>
  
  <p>Returns 0 nodes.</p>
  
  <pre><code>$count = $dom-&gt;findvalue("count(//TaggedPDF-doc//Part//Sect//Sect//Sect[contains(H4,
           translate(\"Primary Objectives\", 
                     'ABCDEFGHJIKLMNOPQRSTUVWXYZ', 
                     'abcdefghjiklmnopqrstuvwxyz')
           )
  ]//OBJ)");
  </code></pre>
  
  <p>Hoping someone here can point out where I got this wrong. </p>
  
  <p>Thanks in advance,
  Simak</p>