title: XSLT Pass current context in call-template
body: <p>In XSLT 1.0, what is the shortest/cleanest/recommended way to pass the current context node to a called template and have that node become the context node inside the called template?</p>
  
  <p>It would be nice (it would, right?) if a template with no xsl:param and called by an empty call-template would simply pick up the caller's context node, but the best I can think of is this:</p>
  
  <pre><code>    &lt;xsl:call-template name="sub"&gt;
          &lt;xsl:with-param name="context" select="." /&gt; 
      &lt;/xsl:call-template&gt;
  </code></pre>
  
  <p>with </p>
  
  <pre><code>&lt;xsl:template name="sub"&gt;
      &lt;xsl:param name="context" /&gt;
      &lt;xsl:for-each select="$context"&gt;
  
      &lt;/xsl:for-each&gt;
  &lt;/xsl:template&gt;
  </code></pre>