<?xml version="1.0"?>
<xsl:stylesheet version="1.0"
                xmlns:xsl="http://www.w3.org/1999/XSL/Transform" >

<xsl:template match="book">
<html>
<head>
</head>
<body>
   <xsl:apply-templates/>
</body>
</html>
</xsl:template>

<xsl:template match="chapter/heading">
<h2><xsl:apply-templates/></h2>
</xsl:template>

<xsl:template match="section/heading">
<h4><xsl:apply-templates/></h4>
</xsl:template>

</xsl:stylesheet>