title: xpath expression to retrieve name/value pairs disregarding namespaces that precede the names
body: <p>I have the following xml snippet that I need to extract values from with xpath expressions in xsl:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;ns0:NotificationRequest xmlns:ns0="http://www.somedomain.com/schemas/message/Request"&gt;
     &lt;ns1:Header xmlns:ns1="http://www.somedomain.com/schemas/common/Header"&gt;
        &lt;ns1:Element1&gt;Element 1 Value&lt;/ns1:Element1&gt;
        &lt;ns1:Element2&gt;Element 2 Value&lt;/ns1:Element2&gt;
     &lt;/ns1:Header&gt;
     &lt;ns0:MessageValues&gt;
        &lt;ns0:MessageValue&gt;
           &lt;ns0:Name&gt;Name1&lt;/ns0:Name&gt;
           &lt;ns0:Value&gt;Value1&lt;/ns0:Value&gt;
        &lt;/ns0:MessageValue&gt;
        &lt;ns0:MessageValue&gt;
           &lt;ns0:Name&gt;Name2&lt;/ns0:Name&gt;
           &lt;ns0:Value&gt;Value2&lt;/ns0:Value&gt;
        &lt;/ns0:MessageValue&gt;
     &lt;/ns0:MessageValues&gt;
  &lt;/ns0:NotificationRequest&gt;
  </code></pre>
  
  <p>To retrieve the value of Element1 or Element2 disregarding the name space I know I can use an xsl/xpath expression as follows:</p>
  
  <pre><code>   &lt;xsl:value-of select="//*[local-name()='Element1']" /&gt;
  </code></pre>
  
  <p>However, I'm struggling with the xpath expression to retrieve the value of the ns0:Value nodes in the Name/Value pair section. For example, what does the expression look like to get "Value1" or "Value2" that works regardless of the namespace. I know how to do it with namespaces, but i can't use that method because the xml file that I need to process re-uses namespaces w/in the same document. </p>