title: How to differentiate two templates in XSL?
body: <p>This is what I'm trying to do in XSL:</p>
  
  <pre><code>&lt;xsl:apply-templates select="document('a.xml')//row"/&gt;
  &lt;xsl:apply-templates select="document('b.xml')//row"/&gt;
  
  &lt;xsl:template match="row"&gt;
    &lt;!-- for document a.xml --&gt;
  &lt;/xsl:template&gt;
  
  &lt;xsl:template match="row"&gt;
    &lt;!-- for document b.xml --&gt;
  &lt;/xsl:template&gt;
  </code></pre>
  
  <p>Doesn't work as is now, for obvious reasons. How can I differentiate these two templates? Document <code>a.xml</code> and <code>b.xml</code> are absolutely identical in terms of XML structure.</p>