title: How to find the second child node using XSLT and change the node name
body: <p>I have the following  input xml . I need to do couple of steps to get the desired out put. I am not well versed in XSLT. I can do basic templates. I am stuck on the following task</p>
  
  <p>I need to change <code>&lt;WorkCompPolicyQuoteInqRq&gt;</code> to <code>&lt;WorkCompPolicyQuoteInqRs&gt;</code>. The issue here is the name of the tag may vary it could be <code>&lt;XXXYRq&gt; &lt;AbCRq&gt;</code> But the position stays the same (the second child of <code>InsuranceSvcRq</code>)  and the last two characters are always "Rq".
  I am not sure how to do this. I would appreciate any guidance. Thanks!</p>
  
  <p>Input XML</p>
  
  <pre><code>&lt;DATA&gt;
     &lt;SignonRq&gt;
     &lt;/SignonRq&gt;
     &lt;InsuranceSvcRq&gt;
        &lt;RqUID&gt;6D76AF16-56C0-4108-BD82-83985EDD6888&lt;/RqUID&gt;
        &lt;WorkCompPolicyQuoteInqRq&gt;
           &lt;RqUID&gt;8CB1B8A1-83B2-4D94-8A9A-D5E801DD2E32&lt;/RqUID&gt;
           &lt;TransactionRequestDt&gt;2012-12-26T12:14:18&lt;/TransactionRequestDt&gt;
           &lt;TransactionEffectiveDt&gt;2012-10-01&lt;/TransactionEffectiveDt&gt;
           &lt;CurCd&gt;USD&lt;/CurCd&gt;
        &lt;/WorkCompPolicyQuoteInqRq&gt;
     &lt;/InsuranceSvcRq&gt;
  &lt;/DATA&gt;
  </code></pre>
  
  <p>Desired Output</p>
  
  <pre><code>&lt;DATA&gt;
     &lt;Status&gt;
        &lt;StatusCd&gt;0&lt;/StatusCd&gt;
        &lt;StatusDesc&gt;ACORD Success&lt;/StatusDesc&gt;
     &lt;/Status&gt;
     &lt;InsuranceSvcRs&gt;
        &lt;RqUID&gt;6D76AF16-56C0-4108-BD82-83985EDD6888&lt;/RqUID&gt;
        &lt;WorkCompPolicyQuoteInqRs&gt;
           &lt;RqUID&gt;8CB1B8A1-83B2-4D94-8A9A-D5E801DD2E32&lt;/RqUID&gt;
           &lt;TransactionRequestDt&gt;2012-12-26T12:14:18&lt;/TransactionRequestDt&gt;
           &lt;TransactionEffectiveDt&gt;2012-10-01&lt;/TransactionEffectiveDt&gt;
           &lt;CurCd&gt;USD&lt;/CurCd&gt;
           &lt;MsgStatus&gt;
              &lt;MsgStatusCd&gt;Error&lt;/MsgStatusCd&gt;
              &lt;MsgErrorCd&gt;DataError&lt;/MsgErrorCd&gt;
              &lt;MsgStatusDesc&gt;Request Failed&lt;/MsgStatusDesc&gt;
              &lt;ExtendedStatus&gt;
                 &lt;ExtendedStatusCd&gt;DataInvalid&lt;/ExtendedStatusCd&gt;
                 &lt;ExtendedStatusDesc&gt;Message&lt;/ExtendedStatusDesc&gt;
              &lt;/ExtendedStatus&gt;
           &lt;/MsgStatus&gt;
        &lt;/WorkCompPolicyQuoteInqRs&gt;
     &lt;/InsuranceSvcRs&gt;
  &lt;/DATA&gt;
  </code></pre>