1<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
2 <!-- trivial XSLT which removes the refentrycontainer layer -->
3 <xsl:output method="xml" encoding="UTF-8" indent="yes" doctype-public="-//OASIS//DTD DocBook V4.5//EN" doctype-system="http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" />
4 <xsl:strip-space elements="*"/>
5
6 <!-- Whenever you match any node but refentrycontainer or any attribute -->
7 <xsl:template match="node()[not(self::refentrycontainer)]|@*">
8 <!-- Copy the current node -->
9  <xsl:copy>
10    <!-- Including any attributes it has and any child nodes -->
11   <xsl:apply-templates select="node()|@*"/>
12  </xsl:copy>
13 </xsl:template>
14</xsl:stylesheet>
15