title: XSL macros - how to create a macro that will replace "call-template" - "with-param" code
body: <p>I'm trying to find a solution for how to replace standard 3-line code of type "call-template" - "with-param" with one single line.</p>
  
  <p>For example I have the following piece of code:</p>
  
  <pre><code>&lt;xsl:call-template name="do_job"&gt;
      &lt;xsl:with-param name="str"&gt;data1&lt;/xsl:with-param&gt;
  &lt;/xsl:call-template&gt;
  </code></pre>
  
  <p>that i want to replace with something like this:</p>
  
  <pre><code>&lt;myNs:tr name="data1"/&gt;
  </code></pre>