title: Not getting data to transform Xml
body: <p>I need to transform the following xml :</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8" standalone="no"?&gt;
  &lt;Document&gt;
  &lt;CstmrPmtStsRpt&gt;
  &lt;GrpHdr&gt;
  &lt;MsgId&gt;DATIR0022G12345678100&lt;/MsgId&gt;
  &lt;CreDtTm&gt;2013-07-18T06:00:01&lt;/CreDtTm&gt;
  &lt;InitgPty&gt;
  &lt;Id&gt;
  &lt;OrgId&gt;
  &lt;BICorBEI&gt;BICBICMMXXX&lt;/BICorBEI&gt;
  &lt;/OrgId&gt;
  &lt;/Id&gt;
  &lt;/InitgPty&gt;
  &lt;/GrpHdr&gt;
  &lt;/CstmrPmtStsRpt&gt;
  &lt;/Document&gt;
  </code></pre>
  
  <p>To transform the xml file I am using the following code :</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"
      xmlns:msxsl="urn:schemas-microsoft-com:xslt" exclude-result-prefixes="msxsl"&gt;
      &lt;xsl:output method="xml" indent="yes"/&gt;
      &lt;xsl:template match="/"&gt;
        &lt;root&gt;
        &lt;xsl:for-each select="//GrpHdr"&gt;
          &lt;tblGrpHdr1&gt;
            &lt;xsl:variable name="CurrentHeaderID" select="position()"/&gt;
            &lt;HeaderID&gt;
              &lt;xsl:value-of select="$CurrentHeaderID"/&gt;
            &lt;/HeaderID&gt;
            &lt;MsgId&gt;
              &lt;xsl:value-of select="./MsgId"/&gt;
            &lt;/MsgId&gt;
            &lt;CreDtTm&gt;
              &lt;xsl:value-of select="./CreDtTm"/&gt;
            &lt;/CreDtTm&gt;
            &lt;BICorBEI&gt;
              &lt;xsl:value-of select="./InitgPty/Id/OrgId/BICorBEI"/&gt;
            &lt;/BICorBEI&gt;
          &lt;/tblGrpHdr1&gt;
        &lt;/xsl:for-each&gt;
        &lt;/root&gt;
      &lt;/xsl:template&gt;
  &lt;/xsl:stylesheet&gt;
  </code></pre>
  
  <p>The code works fine when the root-element is <code>&lt;Document&gt;</code>, but it does not work when the root is <code>&lt;Document xmlns="urn:iso:std:iso:20022:tech:xsd:pain.002.001.03"&gt;</code></p>
  
  <p>What I can do?</p>