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