title: Selecting the value from an element attribute
body: <p>I've been trying to select from the embedded XML file, to utilise for a transform. Essentially I want to get whatever value is currently "Requirements Document"</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false">
  <div class="snippet-code">
  <pre class="snippet-code-css lang-css prettyprint-override"><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;REQ-IF xmlns="http://www.omg.org/spec/ReqIF/20110401/reqif.xsd" xmlns:configuration="http://eclipse.org/rmf/pror/toolextensions/1.0"&gt;
    &lt;THE-HEADER&gt;
      &lt;REQ-IF-HEADER IDENTIFIER="rmf-8643a52b-b85b-4c9f-ada6-ef78c553fe6a"&gt;
        &lt;COMMENT&gt;Created by: me&lt;/COMMENT&gt;
        &lt;CREATION-TIME&gt;2015-06-11T10:47:09.049+01:00&lt;/CREATION-TIME&gt;
        &lt;REQ-IF-TOOL-ID&gt;ProR (http://pror.org)&lt;/REQ-IF-TOOL-ID&gt;
        &lt;REQ-IF-VERSION&gt;1.0&lt;/REQ-IF-VERSION&gt;
        &lt;SOURCE-TOOL-ID&gt;ProR (http://pror.org)&lt;/SOURCE-TOOL-ID&gt;
      &lt;/REQ-IF-HEADER&gt;
    &lt;/THE-HEADER&gt;
    &lt;CORE-CONTENT&gt;
      &lt;REQ-IF-CONTENT&gt;
        &lt;DATATYPES&gt;
          &lt;DATATYPE-DEFINITION-STRING IDENTIFIER="_ceAssxAWEeWbqPmdfLAZ1w" LAST-CHANGE="2015-06-11T10:47:09.049+01:00" LONG-NAME="T_String32k" MAX-LENGTH="32000"/&gt;
        &lt;/DATATYPES&gt;
        &lt;SPEC-TYPES&gt;
          &lt;SPEC-OBJECT-TYPE IDENTIFIER="_ceAstBAWEeWbqPmdfLAZ1w" LAST-CHANGE="2015-06-11T10:47:09.049+01:00" LONG-NAME="Requirement Type"&gt;
            &lt;SPEC-ATTRIBUTES&gt;
              &lt;ATTRIBUTE-DEFINITION-STRING IDENTIFIER="_ceAstRAWEeWbqPmdfLAZ1w" LAST-CHANGE="2015-06-11T10:47:09.049+01:00" LONG-NAME="Description"&gt;
                &lt;TYPE&gt;
                  &lt;DATATYPE-DEFINITION-STRING-REF&gt;_ceAssxAWEeWbqPmdfLAZ1w&lt;/DATATYPE-DEFINITION-STRING-REF&gt;
                &lt;/TYPE&gt;
              &lt;/ATTRIBUTE-DEFINITION-STRING&gt;
            &lt;/SPEC-ATTRIBUTES&gt;
          &lt;/SPEC-OBJECT-TYPE&gt;
          &lt;SPECIFICATION-TYPE IDENTIFIER="_ceAsthAWEeWbqPmdfLAZ1w" LAST-CHANGE="2015-06-11T10:47:09.049+01:00" LONG-NAME="Specification Type"&gt;
            &lt;SPEC-ATTRIBUTES&gt;
              &lt;ATTRIBUTE-DEFINITION-STRING IDENTIFIER="_ceBTwBAWEeWbqPmdfLAZ1w" LAST-CHANGE="2015-06-11T10:47:09.049+01:00" LONG-NAME="Description"&gt;
                &lt;TYPE&gt;
                  &lt;DATATYPE-DEFINITION-STRING-REF&gt;_ceAssxAWEeWbqPmdfLAZ1w&lt;/DATATYPE-DEFINITION-STRING-REF&gt;
                &lt;/TYPE&gt;
              &lt;/ATTRIBUTE-DEFINITION-STRING&gt;
            &lt;/SPEC-ATTRIBUTES&gt;
          &lt;/SPECIFICATION-TYPE&gt;
        &lt;/SPEC-TYPES&gt;
        &lt;SPEC-OBJECTS&gt;
          &lt;SPEC-OBJECT IDENTIFIER="_ceBTwRAWEeWbqPmdfLAZ1w" LAST-CHANGE="2015-06-11T10:47:34.958+01:00"&gt;
            &lt;VALUES&gt;
              &lt;ATTRIBUTE-VALUE-STRING THE-VALUE="This is a single SpecObject"&gt;
                &lt;DEFINITION&gt;
                  &lt;ATTRIBUTE-DEFINITION-STRING-REF&gt;_ceAstRAWEeWbqPmdfLAZ1w&lt;/ATTRIBUTE-DEFINITION-STRING-REF&gt;
                &lt;/DEFINITION&gt;
              &lt;/ATTRIBUTE-VALUE-STRING&gt;
            &lt;/VALUES&gt;
            &lt;TYPE&gt;
              &lt;SPEC-OBJECT-TYPE-REF&gt;_ceAstBAWEeWbqPmdfLAZ1w&lt;/SPEC-OBJECT-TYPE-REF&gt;
            &lt;/TYPE&gt;
          &lt;/SPEC-OBJECT&gt;
        &lt;/SPEC-OBJECTS&gt;
        &lt;SPECIFICATIONS&gt;
          &lt;SPECIFICATION IDENTIFIER="_ceBTwxAWEeWbqPmdfLAZ1w" LAST-CHANGE="2015-06-11T10:47:09.049+01:00" LONG-NAME="Specification Document"&gt;
            &lt;VALUES&gt;
              &lt;ATTRIBUTE-VALUE-STRING THE-VALUE="Requirements Document"&gt;
                &lt;DEFINITION&gt;
                  &lt;ATTRIBUTE-DEFINITION-STRING-REF&gt;_ceBTwBAWEeWbqPmdfLAZ1w&lt;/ATTRIBUTE-DEFINITION-STRING-REF&gt;
                &lt;/DEFINITION&gt;
              &lt;/ATTRIBUTE-VALUE-STRING&gt;
            &lt;/VALUES&gt;
            &lt;TYPE&gt;
              &lt;SPECIFICATION-TYPE-REF&gt;_ceAsthAWEeWbqPmdfLAZ1w&lt;/SPECIFICATION-TYPE-REF&gt;
            &lt;/TYPE&gt;
            &lt;CHILDREN&gt;
              &lt;SPEC-HIERARCHY IDENTIFIER="_ceBTxRAWEeWbqPmdfLAZ1w" LAST-CHANGE="2015-06-11T10:47:09.049+01:00"&gt;
                &lt;OBJECT&gt;
                  &lt;SPEC-OBJECT-REF&gt;_ceBTwRAWEeWbqPmdfLAZ1w&lt;/SPEC-OBJECT-REF&gt;
                &lt;/OBJECT&gt;
              &lt;/SPEC-HIERARCHY&gt;
            &lt;/CHILDREN&gt;
          &lt;/SPECIFICATION&gt;
        &lt;/SPECIFICATIONS&gt;
      &lt;/REQ-IF-CONTENT&gt;
    &lt;/CORE-CONTENT&gt;
    &lt;TOOL-EXTENSIONS&gt;
      &lt;REQ-IF-TOOL-EXTENSION&gt;
        &lt;configuration:ProrToolExtension&gt;
          &lt;configuration:specViewConfigurations&gt;
            &lt;configuration:ProrSpecViewConfiguration specification="_ceBTwxAWEeWbqPmdfLAZ1w"&gt;
              &lt;configuration:columns&gt;
                &lt;configuration:Column label="Description" width="400"/&gt;
              &lt;/configuration:columns&gt;
              &lt;configuration:leftHeaderColumn&gt;
                &lt;configuration:Column label="Lead Header Column" width="30"/&gt;
              &lt;/configuration:leftHeaderColumn&gt;
            &lt;/configuration:ProrSpecViewConfiguration&gt;
          &lt;/configuration:specViewConfigurations&gt;
          &lt;configuration:generalConfiguration&gt;
            &lt;configuration:ProrGeneralConfiguration&gt;
              &lt;configuration:labelConfiguration&gt;
                &lt;configuration:LabelConfiguration&gt;
                  &lt;defaultLabel&gt;Description&lt;/defaultLabel&gt;
                &lt;/configuration:LabelConfiguration&gt;
              &lt;/configuration:labelConfiguration&gt;
            &lt;/configuration:ProrGeneralConfiguration&gt;
          &lt;/configuration:generalConfiguration&gt;
        &lt;/configuration:ProrToolExtension&gt;
      &lt;/REQ-IF-TOOL-EXTENSION&gt;
    &lt;/TOOL-EXTENSIONS&gt;
  &lt;/REQ-IF&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>using something like this:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"&gt;
  
  &lt;xsl:template match="REQ-IF/CORE-CONTENT/REQ-IF-CONTENT/SPECIFICATIONS[@LONG-NAME='Specification Document']/VALUES"&gt;
  &lt;xsl:value-of select="ATTRIBUTE-VALUE-STRING THE-VALUE"&gt;
  &lt;/xsl:value-of&gt;
  &lt;/xsl:template&gt;
  </code></pre>
  
  <p>but I cannot see where I'm going wrong? I've been reading a lot on the template match and value-of, but seem to go round in circles.</p>
  
  <p>If I can see how to do this once, I'll be comfortable with this.</p>