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="*"/>
6 <!-- Whenever you match any node but refentrycontainer or any attribute -->
7 <xsl:template match="node()[not(self::refentrycontainer)]|@*">
8 <!-- Copy the current node -->
10 <!-- Including any attributes it has and any child nodes -->
11 <xsl:apply-templates select="node()|@*"/>