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

        
<!-- 
                Output an XHTML/transitional document (uses html output method
                as Xalan does not support xhtml)
         
-->
        
<xsl:output method="html" indent="yes" version="4.0" encoding="us-ascii" media-type="text/html" doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" doctype-public="-//W3C//DTD XHTML 1.0 Transitional//EN" />

        
<!-- 
                For tutorial purposes, ignore this include.  Its function
                is simply to show xml source in a nice fashion, as browsers
                (at least IE and Opera) don't make a nice job of this.
                
                The pretty printing script is by Oliver Becker, see:
                http://www.informatik.hu-berlin.de/~obecker/XSLT/
                and the script source.
        
-->
        
<xsl:include href="/gnomon/util/xml-source-link.xsl" />

        
<!-- Match the document root -->        
        
<xsl:template match="/document">
                
<!-- Output an html document -->
                
<html>
                        
<!-- Copy the title -->
                        
<head><title><xsl:value-of select="title" /></title></head>
                        
<!-- Process the body -->
                        
<body>
                                
<xsl:apply-templates select="body" />
                        
</body>
                
</html>
        
</xsl:template>
        
        
<!-- Match a heading -->
        
<xsl:template match="heading">
                
<h1><xsl:apply-templates select="node()" /></h1>
        
</xsl:template>
        
        
<!-- Match a sub-heading -->
        
<xsl:template match="sub-heading">
                
<h2><xsl:apply-templates select="node()" /></h2>
        
</xsl:template>
        
        
<!-- Match a paragraph -->
        
<xsl:template match="paragraph">
                
<p><xsl:apply-templates select="node()" /></p>
        
</xsl:template>
                
</xsl:stylesheet>