<?xml version="1.0"?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:output method="html"/> <xsl:template match="/"> <xsl:apply-templates/> </xsl:template> <xsl:template match="top"> <html> <body> <h1>Matched the root node</h1> <xsl:value-of select="."/> </body> </html> </xsl:template> </xsl:stylesheet>