<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet xmlns="http://www.w3.org/1999/xhtml"
                
                xmlns:tei="http://www.tei-c.org/ns/1.0"
                xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
                exclude-result-prefixes="#default tei"
                version="2.0">
  <doc xmlns="http://www.oxygenxml.com/ns/doc/xsl" scope="stylesheet" type="stylesheet">
      <desc>
         <p>
    TEI stylesheet customization module for HTML output.</p>
         <p>
    This library is free software; you can redistribute it and/or
    modify it under the terms of the GNU Lesser General Public
    License as published by the Free Software Foundation; either
    version 2.1 of the License, or (at your option) any later version.

    This library is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
    Lesser General Public License for more details.

    You should have received a copy of the GNU Lesser General Public
    License along with this library; if not, write to the Free Software
    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA

   
   
      </p>
         <p>Author: See AUTHORS</p>
         <p>Id: $Id: tei-param.xsl 7862 2010-07-19 22:09:15Z rahtz $</p>
         <p>Copyright: 2008, TEI Consortium</p>
      </desc>
   </doc>
  <xsl:key name="NOTES" match="tei:note[not(parent::tei:bibl) and not(ancestor::tei:teiHeader)]" use="1"/>

  <doc xmlns="http://www.oxygenxml.com/ns/doc/xsl" class="CSS" type="string">
      <desc>
CSS class for links derived from &lt;ptr&gt;
</desc>
   </doc>
  <xsl:param name="class_ptr">ptr</xsl:param>
  <doc xmlns="http://www.oxygenxml.com/ns/doc/xsl" class="CSS" type="string">
      <desc>
CSS class for links derived from &lt;ref&gt;
</desc>
   </doc>
  <xsl:param name="class_ref">ref</xsl:param>
  <doc xmlns="http://www.oxygenxml.com/ns/doc/xsl" class="CSS" type="string">
      <desc>
CSS class for links derived from &lt;xptr&gt;
</desc>
   </doc>
  <xsl:param name="class_xptr">xptr</xsl:param>
  <doc xmlns="http://www.oxygenxml.com/ns/doc/xsl" class="CSS" type="string">
      <desc>
CSS class for links derived from &lt;xref&gt;
</desc>
   </doc>
  <xsl:param name="class_xref">xref</xsl:param>

  <doc xmlns="http://www.oxygenxml.com/ns/doc/xsl" class="layout" type="boolean">
      <desc>
Number footnotes consecutively
</desc>
   </doc>
  <xsl:param name="consecutiveFNs">false</xsl:param>

  <doc xmlns="http://www.oxygenxml.com/ns/doc/xsl" class="layout" type="boolean">
      <desc>
Link back from footnotes to reference
</desc>
   </doc>
  <xsl:param name="footnoteBackLink">false</xsl:param>

  <doc xmlns="http://www.oxygenxml.com/ns/doc/xsl" class="cssFileInclude"
        type="boolean">
      <desc>
Whether to include CSS by reference or by XInclusion
</desc>
   </doc>
  <xsl:param name="cssFileInclude">false</xsl:param>

  <doc xmlns="http://www.oxygenxml.com/ns/doc/xsl" class="CSS" type="anyURI">
      <desc>
CSS style file to be associated with output file(s)
</desc>
   </doc>
  <xsl:param name="cssFile">http://www.tei-c.org/release/xml/tei/stylesheet/tei.css</xsl:param>
  <doc xmlns="http://www.oxygenxml.com/ns/doc/xsl" class="CSS" type="anyURI">
      <desc>
CSS style file for print; this will be given a media=print attribute.
    </desc>
   </doc>
  <xsl:param name="cssPrintFile">http://www.tei-c.org/release/xml/tei/stylesheet/tei-print.css</xsl:param>
  <doc xmlns="http://www.oxygenxml.com/ns/doc/xsl" class="CSS" type="anyURI">
      <desc>
Secondary CSS style file; this will be given a media=screen attribute,
so that it does not affect printing. It should be used for screen layout.
  </desc>
   </doc>
    <xsl:param name="cssSecondaryFile"/>
  <doc xmlns="http://www.oxygenxml.com/ns/doc/xsl" class="figures" type="integer">
      <desc>
Resolution of images. This is needed to calculate
HTML width and height (in pixels) from supplied dimensions.
</desc>
   </doc>
  <xsl:param name="dpi">96</xsl:param>
  <doc xmlns="http://www.oxygenxml.com/ns/doc/xsl" class="figures" type="boolean">
      <desc>
Display figures.
</desc>
   </doc>
  <xsl:param name="showFigures">true</xsl:param>
  <doc xmlns="http://www.oxygenxml.com/ns/doc/xsl" class="hook">
      <desc>
         <p>[html] Hook where HTML can be inserted just after &lt;body&gt;</p>
         <p>  </p>
      </desc>
   </doc>
  <xsl:template name="bodyHook"/>
  <doc xmlns="http://www.oxygenxml.com/ns/doc/xsl" class="hook">
      <desc>
         <p>[html] Hook where HTML can be inserted just before the
    &lt;body&gt; ends.</p>
         <p>This can be used to add a page-wide footer block.</p>
      </desc>
   </doc>
  <xsl:template name="bodyEndHook"/>
  <doc xmlns="http://www.oxygenxml.com/ns/doc/xsl" class="hook">
      <desc>[html] Hook where Javascript calls can be inserted  just after &lt;body&gt;</desc>
   </doc>
  <xsl:template name="bodyJavascriptHook"/>
  <doc xmlns="http://www.oxygenxml.com/ns/doc/xsl" class="hook">
      <desc>
         <p>[html] Hook where extra CSS can be inserted</p>
         <p>  </p>
      </desc>
   </doc>
  <xsl:template name="cssHook"/>
  <doc xmlns="http://www.oxygenxml.com/ns/doc/xsl" class="hook">
      <desc>
         <p>[html] Hook where code can be added to the HTML &lt;head&gt;.</p>
         <p>This would be used insert &lt;meta&gt; tags.</p>
      </desc>
   </doc>
  <xsl:template name="headHook"/>
  <doc xmlns="http://www.oxygenxml.com/ns/doc/xsl" class="hook">
      <desc>[html] Hook where HTML can be inserted when creating an &lt;img&gt;</desc>
   </doc>
  <xsl:template name="imgHook"/>
  <doc xmlns="http://www.oxygenxml.com/ns/doc/xsl" class="hook">
      <desc>[html] Hook where HTML can be inserted when processing a
    figure</desc>
   </doc>
  <xsl:template name="figureHook"/>
  <doc xmlns="http://www.oxygenxml.com/ns/doc/xsl" class="hook">
      <desc>[html] Hook where extra Javascript functions can be defined</desc>
   </doc>
  <xsl:template name="javascriptHook"/>
  <doc xmlns="http://www.oxygenxml.com/ns/doc/xsl" class="hook">
      <desc>[html] Hook where HTML can be inserted just before the &lt;address&gt;</desc>
   </doc>
  <xsl:template name="preAddressHook"/>
  <doc xmlns="http://www.oxygenxml.com/ns/doc/xsl" class="hook">
      <desc>[html] Hook where HTML can be inserted at the start of
    processing each section</desc>
   </doc>
  <xsl:template name="startDivHook"/>
  <doc xmlns="http://www.oxygenxml.com/ns/doc/xsl" class="hook">
      <desc>[html] Hook where HTML can be inserted at the beginning
    of the main text, after the header</desc>
   </doc>
  <xsl:template name="startHook"/>
  <doc xmlns="http://www.oxygenxml.com/ns/doc/xsl" class="hook">
      <desc>[html] Hook where HTML can be inserted after processing &lt;TEI&gt;</desc>
   </doc>
  <xsl:template name="teiEndHook"/>
  <doc xmlns="http://www.oxygenxml.com/ns/doc/xsl" class="hook">
      <desc>[html] Hook where HTML can be inserted before processing &lt;TEI&gt;</desc>
   </doc>
  <xsl:template name="teiStartHook"/>
  <doc xmlns="http://www.oxygenxml.com/ns/doc/xsl" class="hook">
      <desc>[html] Hook where HTML can be inserted when creating an
    &lt;a&gt; element</desc>
   </doc>
  <xsl:template name="xrefHook"/>

  <doc xmlns="http://www.oxygenxml.com/ns/doc/xsl" class="i18n">
      <desc>[html] Make a copyright claim</desc>
   </doc>
  <xsl:template name="copyrightStatement">This page is copyrighted</xsl:template>
  <doc xmlns="http://www.oxygenxml.com/ns/doc/xsl" class="layout">
      <desc>[html] Banner for top of column</desc>
   </doc>
  <xsl:template name="columnHeader">
</xsl:template>
  <doc xmlns="http://www.oxygenxml.com/ns/doc/xsl" class="layout" type="string">
      <desc>
         <p>How to use the front/body/back matter in creating
columns.</p>
         <p>
The choice is between
<ul xmlns="http://www.w3.org/1999/xhtml">
               <li>
                  <b>all</b>: use &lt;front&gt; for left-hand column,
use &lt;body&gt; for centre column, and use &lt;back&gt; for
right-hand column</li>
               <li>
                  <b>body</b>: use &lt;body&gt; for right-hand column,
 generate left-hand with a TOC or whatever</li>
            </ul>
         </p>
      </desc>
   </doc>
  <xsl:param name="contentStructure">body</xsl:param>
  <doc xmlns="http://www.oxygenxml.com/ns/doc/xsl" class="layout" type="integer">
      <desc>
         <p>The difference between TEI div levels and HTML.
headings.</p>
         <p>TEI &lt;div&gt;s are implicitly or explicitly numbered from 0
upwards; this offset is added to that number to produce an HTML
&lt;Hn&gt; element. So a value of 2 here means that a &lt;div1&gt;
will generate an &lt;h2&gt;</p>
      </desc>
   </doc>
  <xsl:param name="divOffset">2</xsl:param>
  <doc xmlns="http://www.oxygenxml.com/ns/doc/xsl" class="layout" type="boolean">
      <desc>
Make a separate file for footnotes
</desc>
   </doc>
  <xsl:param name="footnoteFile">false</xsl:param>
  <doc xmlns="http://www.oxygenxml.com/ns/doc/xsl" class="layout">
      <desc>[html] Header section across top of page </desc>
   </doc>
  <xsl:template name="hdr">
      <xsl:call-template name="pageHeader">
         <xsl:with-param name="mode"/>
      </xsl:call-template>
  </xsl:template>
  <doc xmlns="http://www.oxygenxml.com/ns/doc/xsl" class="layout">
      <desc>[html] Navigation bar </desc>
   </doc>
  <xsl:template name="hdr2">
      <xsl:call-template name="navbar"/>
  </xsl:template>
  <doc xmlns="http://www.oxygenxml.com/ns/doc/xsl" class="layout">
      <desc>[html] Text or action to take at the start of the
    breadcrumb trail </desc>
   </doc>
  <xsl:template name="preBreadCrumbPath"/>
  <doc xmlns="http://www.oxygenxml.com/ns/doc/xsl" class="layout">
      <desc>[html] Breadcrumb trail </desc>
   </doc>
  <xsl:template name="hdr3">
      <a href="#rh-column" title="Go to main page content" class="skiplinks">Skip links</a>
      <a class="hide">|</a>
      <xsl:call-template name="crumbPath"/>
      <a class="hide">|</a>
      <a class="bannerright" href="{$parentURL}" title="Go to home page">
         <xsl:value-of select="$parentWords"/>
      </a>
  </xsl:template>
  <doc xmlns="http://www.oxygenxml.com/ns/doc/xsl" class="layout">
      <desc>[html]Bottom of left-hand column<param name="currentID">ID of selected section</param>
      </desc>
   </doc>
  <xsl:template name="lh-col-bottom">
      <xsl:param name="currentID"/>
      <xsl:call-template name="leftHandFrame">
         <xsl:with-param name="currentID" select="$currentID"/>
      </xsl:call-template>
  </xsl:template>
  <doc xmlns="http://www.oxygenxml.com/ns/doc/xsl" class="layout">
      <desc>[html]Top of left-hand column </desc>
   </doc>
  <xsl:template name="lh-col-top">
      <xsl:call-template name="searchbox"/>
      <xsl:call-template name="printLink"/>
  </xsl:template>
  <doc xmlns="http://www.oxygenxml.com/ns/doc/xsl" class="layout" type="string">
      <desc>
Width of left-hand column when $pageLayout is "Table"
</desc>
   </doc>
  <xsl:param name="linksWidth">15%</xsl:param>
  <doc xmlns="http://www.oxygenxml.com/ns/doc/xsl" class="layout">
      <desc>[html] Logo</desc>
   </doc>
  <xsl:template name="logoPicture">
      <a class="framelogo" href="http://www.tei-c.org/Stylesheets/teic/">
         <img src="http://www.tei-c.org/Stylesheets/teic/teixsl.png" vspace="5" width="124"
              height="161"
              border="0"
              alt="created by TEI XSL Stylesheets"/>
      </a>
  </xsl:template>
  <doc xmlns="http://www.oxygenxml.com/ns/doc/xsl" class="layout">
      <desc>[html] Making elements in HTML &lt;head&gt;<param name="title">The text used to create the DC.Title field
    in the HTML header</param>
      </desc>
   </doc>
  <xsl:template name="metaHTML">
      <xsl:param name="title"/>
      <meta name="author">
         <xsl:attribute name="content">
            <xsl:call-template name="generateAuthor"/>
         </xsl:attribute>
      </meta>
      <meta name="generator" content="Text Encoding Initiative Consortium XSLT stylesheets"/>
      <meta name="DC.Title" content="{$title}"/>
      <meta name="DC.Type" content="Text"/>
      <meta name="DC.Format" content="text/html"/>
      <meta http-equiv="Content-Type" content="text/html; charset={$outputEncoding}"/>
  </xsl:template>
  <doc xmlns="http://www.oxygenxml.com/ns/doc/xsl" class="layout">
      <desc>
         <p>[html] Construction of navigation bar </p>
         <p>A file is looked for relative to the <i xmlns="http://www.w3.org/1999/xhtml">stylesheet</i> (the
    second parameter of the document function), which is expected to
    contain a TEI &lt;list&gt; where each &lt;item&gt; has an embedded
    &lt;xref&gt;</p>
      </desc>
   </doc>
  <xsl:template name="navbar">
      <xsl:if test="not($navbarFile='')">
         <xsl:for-each select="document($navbarFile,document(''))">
            <xsl:for-each select="tei:list/tei:item">
               <span class="navbar">
                  <a href="{$URLPREFIX}{tei:xref/@url}" class="navbar">
                     <xsl:apply-templates select="tei:xref/text()"/>
                  </a>
               </span>
               <xsl:if test="following-sibling::tei:item"> | </xsl:if>
            </xsl:for-each>
         </xsl:for-each>
      </xsl:if>
  </xsl:template>
  <doc xmlns="http://www.oxygenxml.com/ns/doc/xsl" class="layout" type="anyURI">
      <desc>
         <p>XML resource defining a navigation bar.</p>
         <p>The XML should provide a &lt;list&gt; containing a series
of &lt;item&gt; elements, each containing an &lt;xref&gt; link.</p>
      </desc>
   </doc>
  <xsl:param name="navbarFile"/>
  <doc xmlns="http://www.oxygenxml.com/ns/doc/xsl" class="layout">
      <desc>[html] Banner for top of page<param name="mode">layout mode</param>
      </desc>
   </doc>
  <xsl:template name="pageHeader">
      <xsl:param name="mode"/>
      <xsl:choose>
         <xsl:when test="$mode='table'">
            <table width="100%" border="0">
               <tr>
                  <td height="98" class="bgimage" onclick="window.location='{$homeURL}'"
                      cellpadding="0">

	                    <xsl:call-template name="makeHTMLHeading">
		                      <xsl:with-param name="class">subtitle</xsl:with-param>
		                      <xsl:with-param name="text">
		                         <xsl:call-template name="generateSubTitle"/>
		                      </xsl:with-param>
		                      <xsl:with-param name="level">2</xsl:with-param>
	                    </xsl:call-template>

	                    <xsl:call-template name="makeHTMLHeading">
		                      <xsl:with-param name="class">title</xsl:with-param>
		                      <xsl:with-param name="text">
		                         <xsl:call-template name="generateTitle"/>
		                      </xsl:with-param>
		                      <xsl:with-param name="level">1</xsl:with-param>
	                    </xsl:call-template>

                  </td>
                  <td valign="top"/>
               </tr>
            </table>
         </xsl:when>
         <xsl:otherwise>
	           <xsl:call-template name="makeHTMLHeading">
	              <xsl:with-param name="class">subtitle</xsl:with-param>
	              <xsl:with-param name="text">
	                 <xsl:call-template name="generateSubTitle"/>
	              </xsl:with-param>
	              <xsl:with-param name="level">2</xsl:with-param>
	           </xsl:call-template>
	
	           <xsl:call-template name="makeHTMLHeading">
	              <xsl:with-param name="class">title</xsl:with-param>
	              <xsl:with-param name="text">
	                 <xsl:call-template name="generateTitle"/>
	              </xsl:with-param>
	              <xsl:with-param name="level">1</xsl:with-param>
	           </xsl:call-template>
         </xsl:otherwise>
      </xsl:choose>
  </xsl:template>

  <doc xmlns="http://www.oxygenxml.com/ns/doc/xsl">
      <desc>[html] Make a heading, if there some text to display<param name="text">Heading title</param>
         <param name="class">CSS class</param>
         <param name="level">Heading level</param>
      </desc>
   </doc>
  <xsl:template name="makeHTMLHeading">
      <xsl:param name="text"/>
      <xsl:param name="class">title</xsl:param>
      <xsl:param name="level">1</xsl:param>
      <xsl:if test="not($text='')">
         <xsl:element name="h{$level}" xmlns="http://www.w3.org/1999/xhtml">
	   <xsl:attribute name="class">
	     <xsl:value-of select="$class"/>
	   </xsl:attribute>
	   <xsl:copy-of select="$text"/>
         </xsl:element>
      </xsl:if>
  </xsl:template>

  <doc xmlns="http://www.oxygenxml.com/ns/doc/xsl">
      <desc>[html] Make a link saying how to get printable version
    of file</desc>
   </doc>
  <xsl:template name="printLink"/>
  <doc xmlns="http://www.oxygenxml.com/ns/doc/xsl" class="layout">
      <desc>[html] Bottom of right-hand column<param name="currentID">ID of selected section</param>
      </desc>
   </doc>
  <xsl:template name="rh-col-bottom">
      <xsl:param name="currentID"/>
      <xsl:call-template name="mainFrame">
         <xsl:with-param name="currentID" select="$currentID"/>
      </xsl:call-template>
  </xsl:template>
  <doc xmlns="http://www.oxygenxml.com/ns/doc/xsl" class="layout">
      <desc>[html] Top of right-hand column</desc>
   </doc>
  <xsl:template name="rh-col-top">
      <xsl:call-template name="columnHeader"/>
  </xsl:template>
  <doc xmlns="http://www.oxygenxml.com/ns/doc/xsl" class="layout">
      <desc>[html] Make a search box</desc>
   </doc>
  <xsl:template name="searchbox"/>
  <doc xmlns="http://www.oxygenxml.com/ns/doc/xsl" class="layout">
      <desc>[html] Construct a label for the link which makes a
    printable version of the document.</desc>
   </doc>
  <xsl:template name="singleFileLabel">For Printing</xsl:template>
  <doc xmlns="http://www.oxygenxml.com/ns/doc/xsl" class="links" type="string">
      <desc>
How to align the navigation panel at the bottom of the page
</desc>
   </doc>
  <xsl:param name="alignNavigationPanel">right</xsl:param>
  <doc xmlns="http://www.oxygenxml.com/ns/doc/xsl" class="links" type="boolean">
      <desc>
Display navigation panel at bottom of pages
</desc>
   </doc>
  <xsl:param name="bottomNavigationPanel">true</xsl:param>
  <doc xmlns="http://www.oxygenxml.com/ns/doc/xsl" class="links" type="anyURI">
      <desc>
Link for feedback
</desc>
   </doc>
  <xsl:param name="feedbackURL">mailto:feedback</xsl:param>
  <doc xmlns="http://www.oxygenxml.com/ns/doc/xsl" class="links" type="string">
      <desc>
Fixed string to insert before normal page title in HTML meta
&lt;title&gt; element
</desc>
   </doc>
  <xsl:param name="htmlTitlePrefix"/>
  <doc xmlns="http://www.oxygenxml.com/ns/doc/xsl" class="links" type="boolean">
      <desc>
Make a panel with next page/previous page links.
</desc>
   </doc>
  <xsl:param name="linkPanel">true</xsl:param>
  <doc xmlns="http://www.oxygenxml.com/ns/doc/xsl" class="misc" type="boolean">
      <desc>
Generate a unique ID for all paragraphs
</desc>
   </doc>
  <xsl:param name="generateParagraphIDs">true</xsl:param>
  <doc xmlns="http://www.oxygenxml.com/ns/doc/xsl" class="misc" type="string">
      <desc>
         <p>Character separating values in a rend attribute.</p>
         <p>Some projects use multiple values in <tt xmlns="http://www.w3.org/1999/xhtml">rend</tt>
attributes. These are handled, but the separator character must
be specified.</p>
      </desc>
   </doc>
  <xsl:param name="rendSeparator">;</xsl:param>
  <doc xmlns="http://www.oxygenxml.com/ns/doc/xsl" class="misc" type="boolean">
      <desc>
Show a title and author at start of document
</desc>
   </doc>
  <xsl:param name="showTitleAuthor">false</xsl:param>
  <doc xmlns="http://www.oxygenxml.com/ns/doc/xsl" class="misc" type="boolean">
      <desc>
Be talkative while working.
</desc>
   </doc>

  <xsl:param name="verbose">false</xsl:param>

  <doc xmlns="http://www.oxygenxml.com/ns/doc/xsl" class="layout" type="boolean">
      <desc>
    Make all notes into endnotes
  </desc>
   </doc>
  <xsl:param name="autoEndNotes">false</xsl:param>


  <doc xmlns="http://www.oxygenxml.com/ns/doc/xsl" class="output" type="string">
      <desc>
An ID passed to the stylesheet to indicate which section to display
</desc>
   </doc>
  <xsl:param name="ID"/>

  <doc xmlns="http://www.oxygenxml.com/ns/doc/xsl" class="output" type="string">
      <desc>
A wrapper around the ID, to allow for other ways of getting it
</desc>
   </doc>
  <xsl:param name="requestedID">
      <xsl:value-of select="$ID"/>
  </xsl:param>

  <doc xmlns="http://www.oxygenxml.com/ns/doc/xsl" class="output" type="string">
      <desc>
A path fragment to put before all internal URLs 
</desc>
   </doc>
  <xsl:param name="URLPREFIX"/>
  <doc xmlns="http://www.oxygenxml.com/ns/doc/xsl" class="output" type="string">
      <desc>
The name of the output file
</desc>
   </doc>
  <xsl:param name="outputName"/>
  <doc xmlns="http://www.oxygenxml.com/ns/doc/xsl" class="output" type="string">
      <desc>
Directory in which to place generated files.
</desc>
   </doc>
  <xsl:param name="outputDir"/>
  <doc xmlns="http://www.oxygenxml.com/ns/doc/xsl" class="output" type="string">
      <desc>
Encoding of output file(s).
</desc>
   </doc>
  <xsl:param name="outputEncoding">utf-8</xsl:param>
  <doc xmlns="http://www.oxygenxml.com/ns/doc/xsl" class="output" type="string">
      <desc>
Output method for output file(s).
</desc>
   </doc>
  <xsl:param name="outputMethod">html</xsl:param>
  <doc xmlns="http://www.oxygenxml.com/ns/doc/xsl" class="output" type="string">
      <desc>
Suffix of output file(s).
</desc>
   </doc>
  <xsl:param name="outputSuffix">.html</xsl:param>
  <doc xmlns="http://www.oxygenxml.com/ns/doc/xsl" class="output" type="string">
      <desc>
Public Doctype of output file(s).
</desc>
   </doc>

  <xsl:param name="doctypePublic">-//W3C//DTD XHTML 1.0 Transitional//EN</xsl:param>
  <doc xmlns="http://www.oxygenxml.com/ns/doc/xsl" class="output" type="string">
      <desc>
System Doctype of output file(s).
</desc>
   </doc>
  <xsl:param name="doctypeSystem">http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd</xsl:param>
  <doc xmlns="http://www.oxygenxml.com/ns/doc/xsl" class="output" type="string">
      <desc>
         <p>The style of HTML (Simple, CSS or Table) which creates the layout for generated pages.</p>
         <p>The choice is between
<ul xmlns="http://www.w3.org/1999/xhtml">
               <li>
                  <b>Simple</b>: A linear presentation is created</li>
               <li>
                  <b>CSS</b>: The page is created as a series of nested
 &lt;div&gt;s which can be arranged using CSS into a multicolumn
layout</li>
               <li>
                  <b>Table</b>: The page is created as an HTML table</li>
            </ul>
         </p>
      </desc>
   </doc>
  <xsl:param name="pageLayout">Simple</xsl:param>

  <doc xmlns="http://www.oxygenxml.com/ns/doc/xsl" class="output" type="boolean">
      <desc>
Break back matter into separate HTML pages (if splitting enabled).
</desc>
   </doc>
  <xsl:param name="splitBackmatter">true</xsl:param>
  <doc xmlns="http://www.oxygenxml.com/ns/doc/xsl" class="output" type="boolean">
      <desc>
Break front matter into separate HTML pages (if splitting enabled).
</desc>
   </doc>
  <xsl:param name="splitFrontmatter">true</xsl:param>
  <doc xmlns="http://www.oxygenxml.com/ns/doc/xsl" class="output" type="integer">
      <desc>
         <p>Level at which to split sections.</p>
         <p>When processing a &lt;div&gt; or &lt;div[0-5]&gt;, compare
the nesting depth and see whether to start a new HTML page. Since the
TEI starts with &lt;div1&gt;, setting this parameter to 0 will cause
top-level sections to be split apart. The default is not to split at
all.
</p>
      </desc>
   </doc>
  <xsl:param name="splitLevel">-1</xsl:param>
  <doc xmlns="http://www.oxygenxml.com/ns/doc/xsl" class="output" type="string">
      <desc>
Suffix for generated output files.
</desc>
   </doc>
  <xsl:param name="standardSuffix">
      <xsl:choose>
         <xsl:when test="tei:teiCorpus">.html</xsl:when>
         <xsl:when test="$STDOUT='true'"/>
         <xsl:otherwise>
	           <xsl:value-of select="$outputSuffix"/>
         </xsl:otherwise>
      </xsl:choose>
  </xsl:param>
  <doc xmlns="http://www.oxygenxml.com/ns/doc/xsl" class="output" type="boolean">
      <desc>
Display navigation panel at top of pages.
</desc>
   </doc>
  <xsl:param name="topNavigationPanel">true</xsl:param>
  <doc xmlns="http://www.oxygenxml.com/ns/doc/xsl" class="output" type="string">
      <desc>
How to specify infra-document links. When a document is split,
links need to be constructed between parts of the document. 
The default is to use a query parameter on the URL.
</desc>
   </doc>
  <xsl:param name="urlChunkPrefix">?ID=</xsl:param>
  <doc xmlns="http://www.oxygenxml.com/ns/doc/xsl" class="output" type="boolean">
      <desc>
         <p>Construct links using existing ID values.</p>
         <p>It is often nice if, when making separate files, their names
correspond to the ID attribute of the &gt;div&lt;. Alternatively, you
	  can let the system choose names.</p>
      </desc>
   </doc>
  <xsl:param name="useIDs">true</xsl:param>
  <doc xmlns="http://www.oxygenxml.com/ns/doc/xsl" class="style" type="string">
      <desc>
HTML element to put around visible text of display URLs
</desc>
   </doc>
  <xsl:param name="urlMarkup">span</xsl:param>
  <doc xmlns="http://www.oxygenxml.com/ns/doc/xsl" class="output" type="boolean">
      <desc>
Whether to make split pages appear virtually
as layers in HTML, or physically as separate
pages or server requests.
</desc>
   </doc>
  <xsl:param name="virtualPages">false</xsl:param>
  <doc xmlns="http://www.oxygenxml.com/ns/doc/xsl" class="toc" type="boolean">
      <desc>
Make an automatic table of contents
</desc>
   </doc>
  <xsl:param name="autoToc">true</xsl:param>
  <doc xmlns="http://www.oxygenxml.com/ns/doc/xsl" class="toc" type="string">
      <desc>
CSS class for second-level TOC entries
</desc>
   </doc>
  <xsl:param name="class_subtoc">subtoc</xsl:param>
  <doc xmlns="http://www.oxygenxml.com/ns/doc/xsl" class="toc" type="integer">
      <desc>
         <p>Depth at which to stop doing a recursive table of
contents.</p>
         <p>You can have a mini table of contents at the start
of each section. The default is only to construct a TOC at the
top level; a value of -1 here means no subtoc at all. </p>
      </desc>
   </doc>
  <xsl:param name="subTocDepth">-1</xsl:param>
  <doc xmlns="http://www.oxygenxml.com/ns/doc/xsl" class="toc" type="boolean">
      <desc>
Include the back matter in the table of contents.
</desc>
   </doc>
  <xsl:param name="tocBack">true</xsl:param>

  <doc xmlns="http://www.oxygenxml.com/ns/doc/xsl" class="toc" type="string">
      <desc>
Depth to which table of contents is constructed.
</desc>
   </doc>
  <xsl:param name="tocDepth">5</xsl:param>
  <doc xmlns="http://www.oxygenxml.com/ns/doc/xsl" class="toc" type="boolean">
      <desc>
Include the front matter in the table of contents.
</desc>
   </doc>
  <xsl:param name="tocFront">true</xsl:param>
  <doc xmlns="http://www.oxygenxml.com/ns/doc/xsl" class="toc" type="string">
      <desc>
Which HTML element to wrap each TOCs entry in.
</desc>
   </doc>
  <xsl:param name="tocElement">p</xsl:param>
  <doc xmlns="http://www.oxygenxml.com/ns/doc/xsl" class="toc" type="string">
      <desc>
Which HTML element to wrap each TOC sections in.
</desc>
   </doc>
  <xsl:param name="tocContainerElement">div</xsl:param>


  <doc xmlns="http://www.oxygenxml.com/ns/doc/xsl" class="toc" type="string">
      <desc>
Text to link back to from foot of ODD reference pages
  </desc>
   </doc>
   <xsl:param name="refDocFooterText">TEI Guidelines</xsl:param>

  <doc xmlns="http://www.oxygenxml.com/ns/doc/xsl" class="toc" type="anyURI">
      <desc>
URL to link back to from foot of ODD reference pages
  </desc>
   </doc>
   <xsl:param name="refDocFooterURL">index.html</xsl:param>

   <xsl:template name="navInterSep">
      <xsl:text>: </xsl:text>
   </xsl:template>

  <doc xmlns="http://www.oxygenxml.com/ns/doc/xsl" class="hook">
      <desc>[html] Hooks where HTML can be inserted when processing
    &lt;egXML&gt; element</desc>
   </doc>
   <xsl:template name="egXMLStartHook"/>
   <xsl:template name="egXMLEndHook"/>

   <xsl:template name="emphasize">
      <xsl:param name="class"/>
      <xsl:param name="content"/>
      <xsl:choose>
         <xsl:when test="$class='titlea'">
            <q class="titlea">
	              <xsl:copy-of select="$content"/>
            </q>
         </xsl:when>
         <xsl:otherwise>
            <span class="{$class}">
	              <xsl:copy-of select="$content"/>
            </span>
         </xsl:otherwise>
      </xsl:choose>
   </xsl:template>



</xsl:stylesheet>
