by processing all of its children instead of specific elements.
<xsl:template match="epigraph">
<fo:block>
<xsl:call-template name="anchor"/>
- <xsl:apply-templates select="para|simpara|formalpara|literallayout"/>
+ <xsl:apply-templates select="node()[not(local-name(attribution))]"/>
<xsl:if test="attribution">
<fo:inline>
<xsl:text>—</xsl:text>
<div>
<xsl:call-template name="common.html.attributes"/>
<xsl:call-template name="id.attribute"/>
- <xsl:apply-templates select="para|simpara|formalpara|literallayout"/>
+ <xsl:apply-templates select="node()[not(local-name(attribution))]"/>
<xsl:if test="attribution">
<div class="attribution">
<span>—<xsl:apply-templates select="attribution"/></span>