title: How to lookup value of key-value pairs in XML
body: <p>This is my XML response:</p>
  
  <pre><code>&lt;FrontendStatus xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                  version="1.1" serializerVersion="1.1"&gt;
    &lt;Name&gt;jason-P35-DS3&lt;/Name&gt;
    &lt;Version&gt;v0.28-pre-3339-g9877c07&lt;/Version&gt;
    &lt;State&gt;
      &lt;String&gt;
        &lt;Key&gt;currentlocation&lt;/Key&gt;&lt;Value&gt;playbackbox&lt;/Value&gt;
      &lt;/String&gt;
      &lt;String&gt;
        &lt;Key&gt;menutheme&lt;/Key&gt;&lt;Value&gt;mediacentermenu&lt;/Value&gt;
      &lt;/String&gt;
      &lt;String&gt;
        &lt;Key&gt;state&lt;/Key&gt;&lt;Value&gt;idle&lt;/Value&gt;
      &lt;/String&gt;
    &lt;/State&gt;
    &lt;ChapterTimes/&gt;
    &lt;SubtitleTracks/&gt;
    &lt;AudioTracks/&gt;
  &lt;/FrontendStatus&gt;
  </code></pre>
  
  <p>I am trying to output the value of the key "state" and have the output as just </p>
  
  <blockquote>
    <p>idle</p>
  </blockquote>
  
  <p>The XSLT I currently have is:</p>
  
  <pre><code>&lt;xsl:stylesheet version="1.0"
   xmlns:xsl="http://www.w3.org/1999/XSL/Transform"&gt;
   &lt;xsl:output  indent="yes" method="text" encoding="UTF-8" omit-xml-declaration="yes"/&gt;
  
  
   &lt;xsl:template match="*"&gt;
  
     &lt;xsl:copy-of select="/*/*[normalize-space(Key)='state']/Value"/&gt;
  
   &lt;/xsl:template&gt;
  &lt;/xsl:stylesheet&gt;
  </code></pre>
  
  <p>but my output is just blank.</p>