The easiest way to deal with this is to add a default rule.
Example:
xml
<xsl:template match="*">
<xsl:copy>
<xsl:copy-of select="@*"/>
<xsl:apply-templates select="* | text()"/>
</xsl:copy>
</xsl:template>
<xsl:template match="text()">
<xsl:copy-of select="."/>
</xsl:template>
The default rule should have a priority lower than the rules that match specific elements, so that it will only be invoked if no other rules fit. Rule priorities can be manually adjusted, by the way.
It might be even better to have the resume tags in a separate namespace for error checking purposes, as you can then have:
xml
<xsl:template match="ns:*">
<xsl:message terminate="yes">Unexpected element in the ns namespace: <xsl:value-of select="name()"/>.
</xsl:message>
</xsl:template>
This post has been edited by perfectly.insane: 31 Jul, 2008 - 02:06 PM