title: Select the xsl element using xsl:value of
body: <p>I am not able to select the value of locale using the xsl:value-of. It doesn't seem to read the Upsert tag, but reads it if I change the Upsert tag to just .Also, how do I select just the Question tags? I am completely new to xslt so it's taking time for me to wrap my head around it. Why is the xmlns attribute making a difference there?
  <strong>This is my xml</strong></p>
  <pre><code>&lt;Upsert xmlns=&quot;http://talemetry.com/&quot;&gt;
        &lt;Locale&gt;fr&lt;/Locale&gt;
        &lt;LanguageAware&gt;true&lt;/LanguageAware&gt;
        &lt;Question active=&quot;true&quot; question_id=&quot;NOV22-Question&quot; read_only=&quot;false&quot; show_on_profile=&quot;true&quot; type=&quot;multiple_choice_multi_answer&quot;&gt;
          &lt;QuestionText&gt;Please select your list of Achievements&lt;/QuestionText&gt;
          &lt;RegEx&gt;[0-9]+&lt;/RegEx&gt;
          &lt;Answers sort_by=&quot;text&quot;&gt;
            &lt;Answer answer_id=&quot;BOD&quot; is_correct=&quot;true&quot; seq=&quot;#&quot;&gt;
              &lt;AnswerText&gt;Board of Directors Appointment&lt;/AnswerText&gt;
            &lt;/Answer&gt;
            &lt;Answer answer_id=&quot;CMT&quot; is_correct=&quot;true&quot;&gt;
              &lt;AnswerText&gt;Certificate of Merit Award&lt;/AnswerText&gt;
            &lt;/Answer&gt;
            &lt;Answer answer_id=&quot;CSS&quot; is_correct=&quot;true&quot;&gt;
              &lt;AnswerText&gt;Community Service Award&lt;/AnswerText&gt;
            &lt;/Answer&gt;
            &lt;Answer answer_id=&quot;DCN&quot; is_correct=&quot;true&quot;&gt;
              &lt;AnswerText&gt;Dale Carnegie&lt;/AnswerText&gt;
            &lt;/Answer&gt;
            &lt;Answer answer_id=&quot;DEA&quot; is_correct=&quot;true&quot;&gt;
              &lt;AnswerText&gt;Dean's Award&lt;/AnswerText&gt;
            &lt;/Answer&gt;
            &lt;Answer answer_id=&quot;DLA&quot; is_correct=&quot;true&quot;&gt;
              &lt;AnswerText&gt;Distinguished Lectureship Awrd&lt;/AnswerText&gt;
            &lt;/Answer&gt;
            &lt;Answer answer_id=&quot;EDU&quot; is_correct=&quot;true&quot;&gt;
              &lt;AnswerText&gt;Education Award&lt;/AnswerText&gt;
            &lt;/Answer&gt;
            &lt;Answer answer_id=&quot;HDD&quot; is_correct=&quot;true&quot;&gt;
              &lt;AnswerText&gt;Honorary Doctorate Degree&lt;/AnswerText&gt;
            &lt;/Answer&gt;
            &lt;Answer answer_id=&quot;MBE&quot; is_correct=&quot;true&quot;&gt;
              &lt;AnswerText&gt;Member of the British Empire&lt;/AnswerText&gt;
            &lt;/Answer&gt;
            &lt;Answer answer_id=&quot;NMS&quot; is_correct=&quot;true&quot;&gt;
              &lt;AnswerText&gt;National Merit Scholarship&lt;/AnswerText&gt;
            &lt;/Answer&gt;
            &lt;Answer answer_id=&quot;OBE&quot; is_correct=&quot;true&quot;&gt;
              &lt;AnswerText&gt;Order of the British Empire&lt;/AnswerText&gt;
            &lt;/Answer&gt;
            &lt;Answer answer_id=&quot;OCA&quot; is_correct=&quot;true&quot;&gt;
              &lt;AnswerText&gt;Outstanding Contributor Award&lt;/AnswerText&gt;
            &lt;/Answer&gt;
            &lt;Answer answer_id=&quot;PRE&quot; is_correct=&quot;true&quot;&gt;
              &lt;AnswerText&gt;President's Award&lt;/AnswerText&gt;
            &lt;/Answer&gt;
            &lt;Answer answer_id=&quot;PUB&quot; is_correct=&quot;true&quot;&gt;
              &lt;AnswerText&gt;Publication Award&lt;/AnswerText&gt;
            &lt;/Answer&gt;
            &lt;Answer answer_id=&quot;RPG&quot; is_correct=&quot;true&quot;&gt;
              &lt;AnswerText&gt;Research &amp;amp; Publications Grant&lt;/AnswerText&gt;
            &lt;/Answer&gt;
            &lt;Answer answer_id=&quot;RYA&quot; is_correct=&quot;true&quot;&gt;
              &lt;AnswerText&gt;Retiree of the Year Award&lt;/AnswerText&gt;
            &lt;/Answer&gt;
            &lt;Answer answer_id=&quot;SCL&quot; is_correct=&quot;true&quot;&gt;
              &lt;AnswerText&gt;Sales Excellence Club&lt;/AnswerText&gt;
            &lt;/Answer&gt;
            &lt;Answer answer_id=&quot;SER&quot; is_correct=&quot;true&quot;&gt;
              &lt;AnswerText&gt;Service Award&lt;/AnswerText&gt;
            &lt;/Answer&gt;
            &lt;Answer answer_id=&quot;SFT&quot; is_correct=&quot;true&quot;&gt;
              &lt;AnswerText&gt;Safety Prevention Award&lt;/AnswerText&gt;
            &lt;/Answer&gt;
            &lt;Answer answer_id=&quot;SPY&quot; is_correct=&quot;true&quot;&gt;
              &lt;AnswerText&gt;Sales Person of the Year&lt;/AnswerText&gt;
            &lt;/Answer&gt;
            &lt;Answer answer_id=&quot;TECHY&quot; is_correct=&quot;true&quot;&gt;
              &lt;AnswerText&gt;Techy Gold Award&lt;/AnswerText&gt;
            &lt;/Answer&gt;
            &lt;Answer answer_id=&quot;TST&quot; is_correct=&quot;true&quot;&gt;
              &lt;AnswerText&gt;Toastmasters&lt;/AnswerText&gt;
            &lt;/Answer&gt;
            &lt;Answer answer_id=&quot;VYA&quot; is_correct=&quot;true&quot;&gt;
              &lt;AnswerText&gt;Volunteer of the Year Award&lt;/AnswerText&gt;
            &lt;/Answer&gt;
          &lt;/Answers&gt;
        &lt;/Question&gt;
  &lt;Question active=&quot;true&quot; question_id=&quot;EEO_CommunityNI&quot; read_only=&quot;false&quot; show_on_profile=&quot;false&quot; type=&quot;multiple_choice_single_answer&quot;&gt;
          &lt;QuestionText&gt;What is your Community Religion (NI)?&lt;/QuestionText&gt;
          &lt;Answers sort_by=&quot;text&quot;&gt;
            &lt;Answer answer_id=&quot;CA&quot; is_correct=&quot;true&quot;&gt;
              &lt;AnswerText&gt;Catholic&lt;/AnswerText&gt;
            &lt;/Answer&gt;
            &lt;Answer answer_id=&quot;PR&quot; is_correct=&quot;true&quot;&gt;
              &lt;AnswerText&gt;Protestant&lt;/AnswerText&gt;
            &lt;/Answer&gt;
            &lt;Answer answer_id=&quot;UD&quot; is_correct=&quot;true&quot;&gt;
              &lt;AnswerText&gt;Undetermined/Other&lt;/AnswerText&gt;
            &lt;/Answer&gt;
          &lt;/Answers&gt;
        &lt;/Question&gt;
      &lt;/Upsert&gt; 
  </code></pre>
  <p><strong>And this is my xsl</strong></p>
  <pre><code>&lt;xsl:stylesheet version=&quot;1.0&quot;
      xmlns:xsl=&quot;http://www.w3.org/1999/XSL/Transform&quot;
      xmlns=&quot;http://ns.hr-xml.org/2007-04-15&quot;
      xmlns:hr=&quot;http://ns.hr-xml.org/2007-04-15&quot;&gt;
      &lt;xsl:template match=&quot;/&quot;&gt;
          &lt;SOAP-ENV:Envelope xmlns=&quot;&quot;
              xmlns:SOAP-ENV=&quot;http://schemas.xmlsoap.org/soap/envelope/&quot;
              xmlns:SOAP-ENC=&quot;http://schemas.xmlsoap.org/soap/encoding/&quot;
              xmlns:xsi=&quot;http://www.w3.org/2001/XMLSchema-instance&quot;
              xmlns:xsd=&quot;http://www.w3.org/2001/XMLSchema&quot;&gt;
              &lt;SOAP-ENV:Header&gt;
                  &lt;AuthHeader xmlns=&quot;http://talemetry.com/&quot;&gt;
                      &lt;Username&gt;${param_cred_api_client_id}&lt;/Username&gt;
                      &lt;Password&gt;${param_cred_api_client_secret}&lt;/Password&gt;
                  &lt;/AuthHeader&gt;
              &lt;/SOAP-ENV:Header&gt;
              &lt;SOAP-ENV:Body&gt;
              &lt;Delete xmlns=&quot;http://talemetry.com/&quot;&gt;
                  &lt;Locale&gt;
                   &lt;xsl:value-of select=&quot;Upsert/Locale&quot;/&gt;
                  &lt;/Locale&gt;
              &lt;/Delete&gt;   
              &lt;/SOAP-ENV:Body&gt;
          &lt;/SOAP-ENV:Envelope&gt;
      &lt;/xsl:template&gt;
  &lt;/xsl:stylesheet&gt;
  </code></pre>
  <p>I want the output to look like this</p>
  <pre><code>&lt;?xml version=&quot;1.0&quot;?&gt;
  &lt;soap:Envelope xmlns:SOAP-ENC=&quot;http://schemas.xmlsoap.org/soap/encoding/&quot; xmlns:SOAP-ENV=&quot;http://schemas.xmlsoap.org/soap/envelope/&quot; xmlns:hr=&quot;http://ns.hr-xml.org&quot; xmlns:m=&quot;http://peoplesoft.com/HCM/Schema&quot; xmlns:soap=&quot;http://schemas.xmlsoap.org/soap/envelope/&quot; xmlns:xsd=&quot;http://www.w3.org/2001/XMLSchema&quot; xmlns:xsi=&quot;http://www.w3.org/2001/XMLSchema-instance&quot;&gt;
    &lt;soap:Header&gt;
      &lt;AuthHeader xmlns=&quot;http://talemetry.com/&quot;&gt;
        &lt;Username&gt;blah-blah&lt;/Username&gt;
        &lt;Password&gt;blah-blah&lt;/Password&gt;
      &lt;/AuthHeader&gt;
    &lt;/soap:Header&gt;
    &lt;soap:Body&gt;
      &lt;Delete xmlns=&quot;http://talemetry.com/&quot;&gt;
        &lt;Locale&gt;fr&lt;/Locale&gt;
        &lt;LanguageAware&gt;true&lt;/LanguageAware&gt;
        &lt;Question active=&quot;true&quot; question_id=&quot;NOV22-Question&quot; read_only=&quot;false&quot; show_on_profile=&quot;true&quot; type=&quot;multiple_choice_multi_answer&quot;&gt;
  &lt;Question active=&quot;true&quot; question_id=&quot;EEO_CommunityNI&quot; read_only=&quot;false&quot; show_on_profile=&quot;false&quot; type=&quot;multiple_choice_single_answer&quot;&gt;
  &lt;/Delete&gt;
    &lt;/soap:Body&gt;
  &lt;/soap:Envelope&gt;
  </code></pre>