I have two templates matching the same attributes, both with different modes (shown below). Is there a way that I can avoid writing the attributes twice, one for each template, and instead store those attributes in say a variable? So instead of the match statements below I would have a match like match=$styleAttributes, and styleAttributes would be set to all the attributes. This would be using version 2.0 (Saxon 9.1.0.7). Thanks.
<xsl:template match="@width|@height|@visible|@vAlign|@hAlign|@zOrder|@hOffset|@vOffset|@color|@fontSize" mode="styles">
<!-- Do something -->
</xsl:template>
<!-- Do nothing -->
<xsl:template match="@width|@height|@visible|@vAlign|@hAlign|@zOrder|@hOffset|@vOffset|@color|@fontSize" mode="common" />