title: handling different namespaces for call-template in xslt
body: <p>I am working on call-template, where the source looks like this.</p>
  
  <p>Source:</p>
  
  <pre><code>    &lt;Content&gt;
           &lt;first&gt;
                  &lt;text&gt;
                  Text
              &lt;/text&gt;
              &lt;link xmlns="Some namespace"&gt;
                  &lt;AA&gt;abcd&lt;/AA&gt;
                  &lt;BB&gt;hi all&lt;/BB&gt;
              &lt;/link&gt;
           &lt;/first&gt;
  
           &lt;second&gt;
           &lt;link xmlns="Some other namespace"&gt;
                  &lt;AA&gt;abcd1&lt;/AA&gt;
                  &lt;BB&gt;hi all21&lt;/BB&gt;
              &lt;/link&gt;
           &lt;/second&gt;
  
            &lt;three&gt;
           &lt;link xmlns="other namespace"&gt;
                  &lt;AA&gt;abcd2&lt;/AA&gt;
                  &lt;BB&gt;hi all33&lt;/BB&gt;
              &lt;/link&gt;
           &lt;/three&gt;
      &lt;/Content&gt;
  </code></pre>
  
  <p>XSLT written:</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:n1="Some namespace" xmlns:n2="Some other namespace" xmlns:n3="other namespace"&gt;
          &lt;xsl:output method="xml" indent="yes"/&gt;
  
        &lt;xsl:template match="Content"&gt;
         &lt;xsl:call-template name="process"&gt;
           &lt;xsl:with-param name="item" select="first/n1:link" /&gt;
      &lt;/xsl:call-template&gt;
           &lt;xsl:call-template name="process"&gt;
           &lt;xsl:with-param name="item" select="second/n2:link" /&gt;
      &lt;/xsl:call-template&gt;
           &lt;xsl:call-template name="process"&gt;
           &lt;xsl:with-param name="item" select="three/n3:link" /&gt;
      &lt;/xsl:call-template&gt;
  
  
        &lt;/xsl:template&gt;
  
        &lt;xsl:template name="process"&gt;
          &lt;xsl:param name="item" /&gt;
          &lt;xsl:value-of select="$item/AA" /&gt;
        &lt;/xsl:template&gt;
  
      &lt;/xsl:stylesheet&gt;
  </code></pre>
  
  <p>I am getting blank output.I know the reason because i didn't append the namespace prefix for it. like "n1:A" like that.</p>
  
  <p>As the  is coming multiple times. I wrote a template and called where ever needed. But the name space of each link is diffrent. How to do I modify my code so that I can reuse the template "process". </p>
  
  <p>Can any one help, how Do I modify the "process" template accordingly to handle  with diffrent namespace but same structure.</p>
  
  <p>Thank you.</p>