</xslt:copy>
</xslt:template>
<xslt:template match="@书社:destination|@书社:disable-output-wrapping|@书社:archived-as[../ancestor::*[not(self::书社:apply-attributes-to-root or self::书社:apply-attributes)]]" mode="书社:application" priority="1"/>
- <xslt:template match="书社:archive" mode="书社:application">
+ <xslt:template match="书社:archive" mode="书社:application" priority="1">
<xslt:copy>
<xslt:for-each select="@*|node()">
<xslt:choose>
</xslt:template>
<xslt:template match="书社:apply-attributes" mode="书社:application" priority="1">
<xslt:variable name="children">
- <xslt:apply-templates select="node()" mode="书社:application"/>
+ <xslt:apply-templates mode="书社:application"/>
</xslt:variable>
<xslt:call-template name="书社:apply-attributes">
<xslt:with-param name="context-nodes" select="."/>
</xslt:call-template>
</xslt:template>
<xslt:template match="书社:apply-attributes-to-root" mode="书社:application" priority="1">
- <xslt:apply-templates select="node()" mode="书社:application"/>
+ <xslt:apply-templates mode="书社:application"/>
</xslt:template>
<xslt:template match="/node()" mode="书社:expand" priority="0">
<xslt:copy>
<xslt:template match="text()" mode="书社:header"/>
<xslt:template match="text()" mode="书社:footer"/>
<xslt:template match="text()" mode="书社:metadata"/>
- <xslt:output method="xml" encoding="UTF-8" cdata-section-elements="html:script html:style html:textarea"/>
+ <xslt:output method="xml" encoding="UTF-8" cdata-section-elements="html:script html:style html:textarea 书社:raw-output 书社:raw-text"/>
</xslt:transform>
</template>
<output method="xml" encoding="UTF-8"/>