title: XPATH expression to get local name and namespace of XML attribute of datatype QName
body: <p>I want to display XML document with XSLT by following this example from w3schools: <a href="http://www.w3schools.com/xml/xml_xsl.asp" rel="nofollow">http://www.w3schools.com/xml/xml_xsl.asp</a>. The XSLT transformation to HTML will be done in the browser when opening the XML document.</p>
  
  <p>Now, I have difficulties a) getting the local name and 2) getting the namespace of the attribute content of type QName in two separate expressions.</p>
  
  <p><strong>Example</strong></p>
  
  <pre><code>&lt;service xmlns:ns3="http://www.mycompany.com/" name="ns3:PersonService"&gt;
      &lt;serviceInterface name="ns3:PersonServiceInterface"&gt;
           &lt;operation&gt;...&lt;/operation&gt;
  &lt;/serviceInterface&gt;
  </code></pre>
  
  <p></p>
  
  <p><strong>Questions</strong></p>
  
  <ol>
  <li>What XPATH expression will return <strong>PersonService</strong> as content of attribute <em>name</em>? <code>&lt;xsl:value-of select="@name"/&gt;</code> returns <strong>ns3:PersonService</strong> but i don't want the namespace prefix.</li>
  <li>What XPATH expression will return <strong><a href="http://www.mycompany.com/" rel="nofollow">http://www.mycompany.com/</a></strong> as the namespace of the attribute <em>name</em>?</li>
  </ol>