<xsl:stylesheet version='1.0'
  xmlns:xsl='http://www.w3.org/1999/XSL/Transform'
  xmlns:db='http://docbook.org/ns/docbook'>

  <!-- Copyright (c) 2009 Packaged Press
       http://www.packagedpress.com/

       This XSL stylesheet may be used for any non-commercial use,
       such as for the purpose of evaluation, education or personal use.
       Any commerical use is not permitted except with prior written permission.

  -->

  <xsl:output method='html' indent='yes'/>
  <xsl:strip-space elements='*'/>

  <xsl:template match="db:article">
    <html>
      <head>
        <xsl:apply-templates select='db:info/db:title'
          mode='head'/>
      </head>
      <xsl:apply-templates/>
    </html>
  </xsl:template>
  <xsl:template match="db:title" mode='head'>
    <title>
      <xsl:apply-templates mode='head'/>
    </title>
  </xsl:template>
  <xsl:template match="db:title">
    <h1>
      <xsl:apply-templates/>
    </h1>
  </xsl:template>
  <xsl:template match="db:subtitle">
    <h2>
      <xsl:apply-templates/>
    </h2>
  </xsl:template>
  <xsl:template match="db:para">
    <p>
      <xsl:apply-templates/>
    </p>
  </xsl:template>
  <xsl:template match="db:emphasis">
    <i>
      <xsl:apply-templates/>
    </i>
  </xsl:template>
</xsl:stylesheet>

