rendered paste body### xpy input
xsl:stylesheet (xmlns:xsl="http://www.w3c.org/1999/XSL/Transform",
version="1.0"):
xsl:output method="html", media-type="text/html", encoding="ASCII"/
xsl:template match="/":
html:
head:
title: "Document"
body:
h1: "Heading"
xsl:apply-templates/
hr/
"Footer"
xsl:template match="para":
div class="paragraph":
xsl:apply-templates/
### xml output (pased through 'tidy -xml')
<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3c.org/1999/XSL/Transform">
<xsl:output encoding="ASCII" media-type="text/html"
method="html" />
<xsl:template match="/">
<html>
<head>
<title>Document</title>
</head>
<body>
<h1>Heading</h1>
<xsl:apply-templates />
<hr />
Footer</body>
</html>
</xsl:template>
<xsl:template match="para">
<div class="paragraph">
<xsl:apply-templates />
</div>
</xsl:template>
</xsl:stylesheet>