title: I wrote a request xsl that transforms an xml request to another one but it doesn't work as expected
body: <p>The Request in xml is :</p>
  
  <pre><code> &lt;NS2:BookTicket xmlns:NS2="http://station.com.ph/schemas/bookTicket"&gt;
        &lt;NS2:transaction_header&gt;
          &lt;NS3:Ticket_id xmlns:NS3="http://station.com.ph/schemas/common-types"&gt;
          1993&lt;/NS3:Ticket_id&gt;
          &lt;NS4:request_datetime xmlns:NS4="http://station.com.ph/schemas/common-types"&gt;
          2014-11-04T15:26:27&lt;/NS4:request_datetime&gt;
          &lt;NS5:request_reference_no xmlns:NS5="http://smarthub.com.ph/schemas/common-types"&gt;
          141104165416&lt;/NS5:request_reference_no&gt;
          &lt;NS6:send_sms xmlns:NS6="http://smarthub.com.ph/schemas/common-types"&gt;
          N&lt;/NS6:send_sms&gt;
          &lt;NS7:send_sms_language xmlns:NS7="http://smarthub.com.ph/schemas/common-types"&gt;
          en&lt;/NS7:send_sms_language&gt;
        &lt;/NS2:transaction_header&gt;
        &lt;NS2:transaction_body&gt;
   &lt;NS2:idn&gt;00201220202121&lt;/NS2:idn&gt;
          &lt;sss&gt;2570778508&lt;/sss&gt;
                &lt;/NS2:transaction_body&gt;
      &lt;/NS2:BookTicket&gt;
  </code></pre>
  
  <p>The output xml that is expected (That I want) is : </p>
  
  <pre><code>&lt;Root&gt;
  &lt;numberid1&gt;00201220202121&lt;/numberid1&gt;
  &lt;numberid2&gt;2570778508&lt;/numberid2&gt;
  &lt;/Root&gt;
  </code></pre>
  
  <p>(I want to extract the value inside idn and put it in a new element in the transformed xml request called  also I want to extract the value insides sss and put it in a new element in the transformed xml request called ) </p>
  
  <p>I wrote this request xslt:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
      version="1.0"
      xmlns:xalan="http://xml.apache.org/xslt"&gt;
      &lt;xsl:template match="/"&gt;
          &lt;xsl:element name="Root"&gt;
              &lt;xsl:choose&gt;
                 &lt;xsl:when test="*//BookTicket"&gt;
                      &lt;xsl:element name="numberid1"&gt;
                          &lt;xsl:value-of select="*//idn" /&gt;
                      &lt;/xsl:element&gt;
                                 &lt;xsl:element name="numberid2"&gt;
                          &lt;xsl:value-of select="*//sss" /&gt;
                      &lt;/xsl:element&gt;
                  &lt;/xsl:when&gt;
              &lt;/xsl:choose&gt;
          &lt;/xsl:element&gt;
      &lt;/xsl:template&gt;
  &lt;/xsl:stylesheet&gt;
  </code></pre>
  
  <p>The Actual transformed xml after applying xsl is : 
  Why can't it find the BookTicket or create the new elements? is it something related to namespaces?</p>