<!-- $Date: 2008-07-15 09:20:53 +0100 (Tue, 15 Jul 2008) $, $Author: rahtz $, $Revision: 4713 $ -->
<TEI xmlns="http://www.tei-c.org/ns/1.0">
  <teiHeader>
    <fileDesc>
      <titleStmt>
        <title>TEI XSL Customization Handbook</title>
        <author>Sebastian Rahtz</author>
      </titleStmt>
      <publicationStmt>
        <p> </p>
      </publicationStmt>
      <sourceDesc>
        <p/>
      </sourceDesc>
    </fileDesc>
    <revisionDesc>
         <change>
            <date>$Date: 2008-07-15 09:20:53 +0100 (Tue, 15 Jul 2008) $.</date>
            <respStmt>
               <name>$Author: rahtz $</name>
            </respStmt>
            <item>$Revision: 4713 $</item>
         </change>
    </revisionDesc>
  </teiHeader>
  <text>
<body>

<div>
 <head>Introduction</head>

<p>This section describes how to produce a customization of the TEI
stylesheets. It describes all the parameters which you can set, the
templates which are designed to be changed, and the empty templates
provided into which you can add your own code.</p>

<p> There are 13 areas for customization. In most cases there are
parameters and templates which are specific to one of the three
output methods (HTML, FO and LaTeX), and those which are common to all
three.</p>

</div>


<div><head>Making HTML: example</head>
<p>
You can simply refer to the specification <code>html/tei.xsl</code>
directly with your XSL processor, or install it locally on your own
server.  For more flexibility, you may prefer to reference the
specifications from an XSL wrapper of your own. The minimal
specification would look like this:
<eg>

&lt;xsl:stylesheet 
   xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"&gt;
  &lt;xsl:import href="html/tei.xsl"/&gt;
&lt;/xsl:stylesheet&gt;

</eg>
You can customize the result by adding to this wrapper file.  The normal result will be a single stream of HTML
which you can save in a file. You can also configure it to produce
multiple output files, one per top-level <gi>div</gi> or <gi>div1</gi>.
</p>

</div>

<div xml:id="links">
<head>Standard page features</head>
<p>The default behaviour of the system is to construct each HTML page
with per-page navigation bars top and bottom, and a standard set of
navigation links underneath. </p>
<div><head>Variables</head><table rend="rules" preamble="P{0.1\textwidth}|P{0.25\textwidth}|P{0.36\textwidth}|P{0.22\textwidth}|"><row role="label"><cell>Type</cell><cell>Name</cell><cell>Description</cell><cell>Default</cell></row><row><cell/><cell><hi>department</hi></cell><cell> Name of department within institution [<code>string</code>]
	</cell><cell/></row><row><cell/><cell><hi>homeLabel</hi></cell><cell> Name of link to home page of application [<code>string</code>]
	</cell><cell>Home</cell></row><row><cell/><cell><hi>homeURL</hi></cell><cell>Project Home [<code>anyURI</code>]
	</cell><cell>http://www.tei-c.org/</cell></row><row><cell/><cell><hi>homeWords</hi></cell><cell>Project [<code>string</code>]
	</cell><cell>TEI</cell></row><row><cell/><cell><hi>institution</hi></cell><cell> Institution [<code>string</code>]
	</cell><cell>A TEI Project</cell></row><row><cell/><cell><hi>parentURL</hi></cell><cell> Institution link [<code>anyURI</code>]
	</cell><cell>http://www.tei-c.org/</cell></row><row><cell/><cell><hi>parentWords</hi></cell><cell> Name of overall institution [<code>string</code>]
	</cell><cell>Parent Institution</cell></row><row><cell/><cell><hi>searchURL</hi></cell><cell> Link to search application [<code>anyURI</code>]
	</cell><cell>http://www.google.com</cell></row><row><cell>html</cell><cell><hi>alignNavigationPanel</hi></cell><cell>
How to align the navigation panel at the bottom of the page
 [<code>string</code>]
	</cell><cell>right</cell></row><row><cell>html</cell><cell><hi>bottomNavigationPanel</hi></cell><cell>
Display navigation panel at bottom of pages
 [<code>boolean</code>]
	</cell><cell>true</cell></row><row><cell>html</cell><cell><hi>feedbackURL</hi></cell><cell>
Link for feedback
 [<code>anyURI</code>]
	</cell><cell>mailto:feedback</cell></row><row><cell>html</cell><cell><hi>htmlTitlePrefix</hi></cell><cell>
Fixed string to insert before normal page title in HTML meta
&lt;title&gt; element
 [<code>string</code>]
	</cell><cell/></row><row><cell>html</cell><cell><hi>linkPanel</hi></cell><cell>
Make a panel with next page/previous page links [<code>boolean</code>]
	</cell><cell>true</cell></row></table></div><div><head>Templates</head><list type="gloss"/><list type="gloss"/></div></div>

<div xml:id="layout">
<head>Layout</head>
<p>There are three ways to provide a constant navigation aid. You can
either make the whole page into a table, where the first column has a table
of contents, or you can make an HTML frameset, or you can just have 
a table of links on the left or right</p>
<p>Hypertext links present special problems, as we have to choose
whether they should start a new window, occupy all of the current
window, or stay within the frame. These stylesheets implement the
following rules:
<list type="ordered">
<item>Any <gi>ref</gi> or <gi>ptr</gi> link stays within the frame</item>
<item>Any link containing <q>://</q> uses the whole browser window</item>
<item>Any link starting <q>.</q> uses the whole browser window</item>
<item>If the stylesheet sets no splitting of the document,
any <gi>ref</gi> or <gi>ptr</gi> link  uses the whole browser
window</item>
<item>If a <gi>ref</gi> or <gi>ptr</gi> link has a
<ident>rend</ident> attribute value of <q>noframe</q>, the whole browser
window is used</item>
<item>If a <gi>ref</gi> or <gi>ptr</gi> link has a
<ident>rend</ident> attribute value of <q>new</q>, a new browser window
is started</item>
</list>
</p>
<div><head>Variables</head><table rend="rules" preamble="P{0.1\textwidth}|P{0.25\textwidth}|P{0.36\textwidth}|P{0.22\textwidth}|"><row role="label"><cell>Type</cell><cell>Name</cell><cell>Description</cell><cell>Default</cell></row><row><cell>html</cell><cell><hi>consecutiveFootnoteNumbers</hi></cell><cell>
Number footnotes consecutively
 [<code>boolean</code>]
	</cell><cell>false</cell></row><row><cell>html</cell><cell><hi>footnoteBackLink</hi></cell><cell>
Link back from footnotes to reference
 [<code>boolean</code>]
	</cell><cell>false</cell></row><row><cell>html</cell><cell><hi>contentStructure</hi></cell><cell>How to use the front/body/back matter in creating
columns. [<code>string</code>]
	</cell><cell>body</cell></row><row><cell>html</cell><cell><hi>divOffset</hi></cell><cell>The difference between TEI div levels and HTML.
headings. [<code>integer</code>]
	</cell><cell>2</cell></row><row><cell>html</cell><cell><hi>footnoteFile</hi></cell><cell>
Make a separate file for footnotes
 [<code>boolean</code>]
	</cell><cell>false</cell></row><row><cell>html</cell><cell><hi>linksWidth</hi></cell><cell>
Width of left-hand column when $pageLayout is "Table"
 [<code>string</code>]
	</cell><cell>15%</cell></row><row><cell>html</cell><cell><hi>navbarFile</hi></cell><cell>XML resource defining a navigation bar. [<code>anyURI</code>]
	</cell><cell/></row><row><cell>html</cell><cell><hi>autoEndNotes</hi></cell><cell>
    Make all notes into endnotes
   [<code>boolean</code>]
	</cell><cell>false</cell></row><row><cell>fo</cell><cell><hi>backMulticolumns</hi></cell><cell>
Put back matter in multiple columns
 [<code>boolean</code>]
	</cell><cell>false</cell></row><row><cell>fo</cell><cell><hi>bodyMarginBottom</hi></cell><cell>
Margin at bottom of text body
 [<code>string</code>]
	</cell><cell>24pt</cell></row><row><cell>fo</cell><cell><hi>bodyMarginTop</hi></cell><cell>
Margin at top of text body
 [<code>string</code>]
	</cell><cell>24pt</cell></row><row><cell>fo</cell><cell><hi>bodyMulticolumns</hi></cell><cell>
Put body matter in multiple columns
 [<code>boolean</code>]
	</cell><cell>false</cell></row><row><cell>fo</cell><cell><hi>bulletFour</hi></cell><cell>
Symbol for 4th level itemized list
 [<code>string</code>]
	</cell><cell>+</cell></row><row><cell>fo</cell><cell><hi>bulletOne</hi></cell><cell>
Symbol for top-level itemized list
 [<code>string</code>]
	</cell><cell>•</cell></row><row><cell>fo</cell><cell><hi>bulletThree</hi></cell><cell>
Symbol for 3rd level itemized list
 [<code>string</code>]
	</cell><cell>*</cell></row><row><cell>fo</cell><cell><hi>bulletTwo</hi></cell><cell>
Symbol for 2nd level itemized list
 [<code>string</code>]
	</cell><cell>–</cell></row><row><cell>fo</cell><cell><hi>columnCount</hi></cell><cell>
Number of columns, when multiple-column work is requested
 [<code>integer</code>]
	</cell><cell>1</cell></row><row><cell>fo</cell><cell><hi>distanceBetweenStarts</hi></cell><cell>
XSL FO "provisional-distance-between starts"
 [<code>string</code>]
	</cell><cell>18pt</cell></row><row><cell>fo</cell><cell><hi>distanceBetweenGlossStarts</hi></cell><cell>
XSL FO "provisional-distance-between starts" for gloss lists
 [<code>string</code>]
	</cell><cell>42pt</cell></row><row><cell>fo</cell><cell><hi>distanceBetweenBiblStarts</hi></cell><cell>
XSL FO "provisional-distance-between starts" for bibliographies
 [<code>string</code>]
	</cell><cell>50pt</cell></row><row><cell>fo</cell><cell><hi>divRunningheads</hi></cell><cell>
Display section headings in running heads
 [<code>boolean</code>]
	</cell><cell>false</cell></row><row><cell>fo</cell><cell><hi>exampleAfter</hi></cell><cell>
Space below examples
 [<code>string</code>]
	</cell><cell>4pt</cell></row><row><cell>fo</cell><cell><hi>exampleBefore</hi></cell><cell>
Space above examples
 [<code>string</code>]
	</cell><cell>4pt</cell></row><row><cell>fo</cell><cell><hi>exampleMargin</hi></cell><cell>
Left margin for examples
 [<code>string</code>]
	</cell><cell>12pt</cell></row><row><cell>fo</cell><cell><hi>flowMarginLeft</hi></cell><cell>
Left margin of flow
 [<code>string</code>]
	</cell><cell/></row><row><cell>fo</cell><cell><hi>forcePageMaster</hi></cell><cell>
Which named page master name to use
 [<code>string</code>]
	</cell><cell/></row><row><cell>fo</cell><cell><hi>formatBackpage</hi></cell><cell>
How to format page numbers in back matter (use XSLT number format)
 [<code>string</code>]
	</cell><cell>1</cell></row><row><cell>fo</cell><cell><hi>formatBodypage</hi></cell><cell>
How to format page numbers in main matter (use XSLT number format)
 [<code>string</code>]
	</cell><cell>1</cell></row><row><cell>fo</cell><cell><hi>formatFrontpage</hi></cell><cell>
How to format page numbers in front matter (use XSLT number format)
 [<code>string</code>]
	</cell><cell>i</cell></row><row><cell>fo</cell><cell><hi>frontMulticolumns</hi></cell><cell>
Put front matter in multiple columns
 [<code>boolean</code>]
	</cell><cell>false</cell></row><row><cell>fo</cell><cell><hi>labelSeparation</hi></cell><cell>
XSL FO "provisional-label-separation"
 [<code>string</code>]
	</cell><cell>6pt</cell></row><row><cell>fo</cell><cell><hi>listAbove-1</hi></cell><cell>
Space above lists at top level
 [<code>string</code>]
	</cell><cell>6pt</cell></row><row><cell>fo</cell><cell><hi>listAbove-2</hi></cell><cell>
Space above lists at 2nd level
 [<code>string</code>]
	</cell><cell>4pt</cell></row><row><cell>fo</cell><cell><hi>listAbove-3</hi></cell><cell>
Space above lists at 3rd level
 [<code>string</code>]
	</cell><cell>0pt</cell></row><row><cell>fo</cell><cell><hi>listAbove-4</hi></cell><cell>
Space above lists at 4th level
 [<code>string</code>]
	</cell><cell>0pt</cell></row><row><cell>fo</cell><cell><hi>listBelow-1</hi></cell><cell>
Space below lists at top level
 [<code>string</code>]
	</cell><cell>6pt</cell></row><row><cell>fo</cell><cell><hi>listBelow-2</hi></cell><cell>
Space below lists at 2nd level
 [<code>string</code>]
	</cell><cell>4pt</cell></row><row><cell>fo</cell><cell><hi>listBelow-3</hi></cell><cell>
Space below lists at 3rd level
 [<code>string</code>]
	</cell><cell>0pt</cell></row><row><cell>fo</cell><cell><hi>listBelow-4</hi></cell><cell>
Space below lists at 4th level
 [<code>string</code>]
	</cell><cell>0pt</cell></row><row><cell>fo</cell><cell><hi>listItemsep</hi></cell><cell>
Spacing between list items
 [<code>string</code>]
	</cell><cell>4pt</cell></row><row><cell>fo</cell><cell><hi>listLeftGlossIndent</hi></cell><cell>
Left margin for gloss lists
 [<code>string</code>]
	</cell><cell>0.5in</cell></row><row><cell>fo</cell><cell><hi>listLeftGlossInnerIndent</hi></cell><cell>
Left margin for nested gloss lists
 [<code>string</code>]
	</cell><cell>0.25in</cell></row><row><cell>fo</cell><cell><hi>listLeftIndent</hi></cell><cell>
Indentation for lists
 [<code>string</code>]
	</cell><cell>0pt</cell></row><row><cell>fo</cell><cell><hi>listRightMargin</hi></cell><cell>
Right margin for lists
 [<code>string</code>]
	</cell><cell>10pt</cell></row><row><cell>fo</cell><cell><hi>pageHeight</hi></cell><cell>
Paper height
 [<code>string</code>]
	</cell><cell>297mm</cell></row><row><cell>fo</cell><cell><hi>pageMarginBottom</hi></cell><cell>
Margin at bottom of text area
 [<code>string</code>]
	</cell><cell>100pt</cell></row><row><cell>fo</cell><cell><hi>pageMarginLeft</hi></cell><cell>
Left margin
 [<code>string</code>]
	</cell><cell>80pt</cell></row><row><cell>fo</cell><cell><hi>pageMarginRight</hi></cell><cell>
Right margin
 [<code>string</code>]
	</cell><cell>150pt</cell></row><row><cell>fo</cell><cell><hi>pageMarginTop</hi></cell><cell>
Margin at top of text area
 [<code>string</code>]
	</cell><cell>75pt</cell></row><row><cell>fo</cell><cell><hi>pageWidth</hi></cell><cell>
Paper width
 [<code>string</code>]
	</cell><cell>211mm</cell></row><row><cell>fo</cell><cell><hi>parIndent</hi></cell><cell>
Paragraph indentation
 [<code>string</code>]
	</cell><cell>1em</cell></row><row><cell>fo</cell><cell><hi>parSkip</hi></cell><cell>
Default spacing between paragraphs
 [<code>string</code>]
	</cell><cell>0pt</cell></row><row><cell>fo</cell><cell><hi>parSkipmax</hi></cell><cell>
Maximum space allowed between paragraphs
 [<code>string</code>]
	</cell><cell>12pt</cell></row><row><cell>fo</cell><cell><hi>readColSpecFile</hi></cell><cell>
External XML file containing specifications for column sizes for
tables in document
 [<code>anyURI</code>]
	</cell><cell/></row><row><cell>fo</cell><cell><hi>regionAfterExtent</hi></cell><cell>
Region after
 [<code>string</code>]
	</cell><cell>14pt</cell></row><row><cell>fo</cell><cell><hi>regionBeforeExtent</hi></cell><cell>
Region before
 [<code>string</code>]
	</cell><cell>14pt</cell></row><row><cell>fo</cell><cell><hi>sectionHeaders</hi></cell><cell>
Construct running headers from page number and section headings
 [<code>boolean</code>]
	</cell><cell>true</cell></row><row><cell>fo</cell><cell><hi>spaceAfterBibl</hi></cell><cell>
Space after bibliography
 [<code>string</code>]
	</cell><cell>0pt</cell></row><row><cell>fo</cell><cell><hi>spaceAroundTable</hi></cell><cell>
Space above and below a table
 [<code>string</code>]
	</cell><cell>8pt</cell></row><row><cell>fo</cell><cell><hi>spaceBeforeBibl</hi></cell><cell>
Space above bibliography
 [<code>string</code>]
	</cell><cell>4pt</cell></row><row><cell>fo</cell><cell><hi>spaceBelowCaption</hi></cell><cell>
Space below caption of figure or table
 [<code>string</code>]
	</cell><cell>4pt</cell></row><row><cell>fo</cell><cell><hi>titlePage</hi></cell><cell>
Make title page
 [<code>boolean</code>]
	</cell><cell>true</cell></row><row><cell>fo</cell><cell><hi>twoSided</hi></cell><cell>
Make 2-page spreads
 [<code>boolean</code>]
	</cell><cell>true</cell></row><row><cell>latex</cell><cell><hi>classParameters</hi></cell><cell>
Optional parameters for documentclass
 [<code>string</code>]
	</cell><cell>11pt</cell></row><row><cell>latex</cell><cell><hi>latexLogo</hi></cell><cell>
Logo graphics file
 [<code>string</code>]
	</cell><cell/></row><row><cell>latex</cell><cell><hi>pagebreakStyle</hi></cell><cell>
When processing a "pb" element, decide what to generate: "active" generates a page break; "visible" genrates a bracketed number (with scissors), and "bracketsonly" generates a bracketed number (without scissors) [<code>float</code>]
	</cell><cell/></row><row><cell>latex</cell><cell><hi>tableMaxWidth</hi></cell><cell>
When making a table, what width must be constrained to fit,
as a proportion of the page width [<code>float</code>]
	</cell><cell>0.85</cell></row><row><cell>latex</cell><cell><hi>verseNumbering</hi></cell><cell>
Whether to number lines of poetry
 [<code>boolean</code>]
	</cell><cell>false</cell></row><row><cell>latex</cell><cell><hi>everyHowManyLines</hi></cell><cell>
When numbering poetry, how often to put in a line number
 [<code>integer</code>]
	</cell><cell>5</cell></row><row><cell>latex</cell><cell><hi>resetVerseLineNumbering</hi></cell><cell>
When numbering poetry, when to restart the sequence;
this must be the name of a TEI element
 [<code>string</code>]
	</cell><cell>div1</cell></row></table></div><div><head>Templates</head><list type="gloss"><label><hi>columnHeader</hi></label><item>
	     (for html)
	       Banner for top of column
</item><label><hi>hdr</hi></label><item>
	     (for html)
	       Header section across top of page <egXML xmlns="http://www.tei-c.org/ns/Examples">
    <xsl:call-template xmlns:xd="http://www.pnp-software.com/XSLTdoc" xmlns:tei="http://www.tei-c.org/ns/1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" name="pageHeader">
      <xsl:with-param name="mode"/>
    </xsl:call-template>
  </egXML></item><label><hi>hdr2</hi></label><item>
	     (for html)
	       Navigation bar <egXML xmlns="http://www.tei-c.org/ns/Examples">
    <xsl:call-template xmlns:xd="http://www.pnp-software.com/XSLTdoc" xmlns:tei="http://www.tei-c.org/ns/1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" name="navbar"/>
  </egXML></item><label><hi>preBreadCrumbPath</hi></label><item>
	     (for html)
	       Text or action to take at the start of the
    breadcrumb trail </item><label><hi>hdr3</hi></label><item>
	     (for html)
	       Breadcrumb trail <egXML xmlns="http://www.tei-c.org/ns/Examples">
    <a xmlns:xd="http://www.pnp-software.com/XSLTdoc" xmlns:tei="http://www.tei-c.org/ns/1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns="" href="#rh-column" title="Go to main page content" class="skiplinks">Skip links</a>
    <a xmlns:xd="http://www.pnp-software.com/XSLTdoc" xmlns:tei="http://www.tei-c.org/ns/1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns="" class="hide">|</a>
    <xsl:call-template xmlns:xd="http://www.pnp-software.com/XSLTdoc" xmlns:tei="http://www.tei-c.org/ns/1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" name="crumbPath"/>
    <a xmlns:xd="http://www.pnp-software.com/XSLTdoc" xmlns:tei="http://www.tei-c.org/ns/1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns="" class="hide">|</a>
    <a xmlns:xd="http://www.pnp-software.com/XSLTdoc" xmlns:tei="http://www.tei-c.org/ns/1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns="" class="bannerright" href="{$parentURL}" title="Go to home page">
      <xsl:value-of select="$parentWords"/>
    </a>
  </egXML></item><label><hi>lh-col-bottom</hi></label><item>
	     (for html)
	      Bottom of left-hand column<egXML xmlns="http://www.tei-c.org/ns/Examples">
    <xsl:param xmlns:xd="http://www.pnp-software.com/XSLTdoc" xmlns:tei="http://www.tei-c.org/ns/1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" name="currentID"/>
    <xsl:call-template xmlns:xd="http://www.pnp-software.com/XSLTdoc" xmlns:tei="http://www.tei-c.org/ns/1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" name="leftHandFrame">
      <xsl:with-param name="currentID" select="$currentID"/>
    </xsl:call-template>
  </egXML></item><label><hi>lh-col-top</hi></label><item>
	     (for html)
	      Top of left-hand column <egXML xmlns="http://www.tei-c.org/ns/Examples">
    <xsl:call-template xmlns:xd="http://www.pnp-software.com/XSLTdoc" xmlns:tei="http://www.tei-c.org/ns/1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" name="searchbox"/>
    <xsl:call-template xmlns:xd="http://www.pnp-software.com/XSLTdoc" xmlns:tei="http://www.tei-c.org/ns/1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" name="printLink"/>
  </egXML></item><label><hi>logoPicture</hi></label><item>
	     (for html)
	       Logo<egXML xmlns="http://www.tei-c.org/ns/Examples">
    <a xmlns:xd="http://www.pnp-software.com/XSLTdoc" xmlns:tei="http://www.tei-c.org/ns/1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns="" 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>
  </egXML></item><label><hi>metaHTML</hi></label><item>
	     (for html)
	       Making elements in HTML &lt;head&gt;<egXML xmlns="http://www.tei-c.org/ns/Examples">
    <xsl:param xmlns:xd="http://www.pnp-software.com/XSLTdoc" xmlns:tei="http://www.tei-c.org/ns/1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" name="title"/>
    <meta xmlns:xd="http://www.pnp-software.com/XSLTdoc" xmlns:tei="http://www.tei-c.org/ns/1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns="" name="author">
      <xsl:attribute name="content">
        <xsl:call-template name="generateAuthor"/>
      </xsl:attribute>
    </meta>
    <meta xmlns:xd="http://www.pnp-software.com/XSLTdoc" xmlns:tei="http://www.tei-c.org/ns/1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns="" name="generator" content="Text Encoding Initiative Consortium XSLT stylesheets"/>
    <meta xmlns:xd="http://www.pnp-software.com/XSLTdoc" xmlns:tei="http://www.tei-c.org/ns/1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns="" name="DC.Title" content="{$title}"/>
    <meta xmlns:xd="http://www.pnp-software.com/XSLTdoc" xmlns:tei="http://www.tei-c.org/ns/1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns="" name="DC.Type" content="Text"/>
    <meta xmlns:xd="http://www.pnp-software.com/XSLTdoc" xmlns:tei="http://www.tei-c.org/ns/1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns="" name="DC.Format" content="text/html"/>
    <meta xmlns:xd="http://www.pnp-software.com/XSLTdoc" xmlns:tei="http://www.tei-c.org/ns/1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns="" http-equiv="Content-Type" content="text/html; charset={$outputEncoding}"/>
  </egXML></item><label><hi>navbar</hi></label><item>
	     (for html)
	       Construction of navigation bar <egXML xmlns="http://www.tei-c.org/ns/Examples">
    <xsl:if xmlns:xd="http://www.pnp-software.com/XSLTdoc" xmlns:tei="http://www.tei-c.org/ns/1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" test="not($navbarFile='')">
      <xsl:for-each select="document($navbarFile,document(''))">
        <xsl:for-each select="tei:list/tei:item">
          <span xmlns="" 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>
  </egXML></item><label><hi>pageHeader</hi></label><item>
	     (for html)
	       Banner for top of page<egXML xmlns="http://www.tei-c.org/ns/Examples">
    <xsl:param xmlns:xd="http://www.pnp-software.com/XSLTdoc" xmlns:tei="http://www.tei-c.org/ns/1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" name="mode"/>
    <xsl:choose xmlns:xd="http://www.pnp-software.com/XSLTdoc" xmlns:tei="http://www.tei-c.org/ns/1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
      <xsl:when test="$mode='table'">
        <table xmlns="" 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>
  </egXML></item><label><hi>rh-col-bottom</hi></label><item>
	     (for html)
	       Bottom of right-hand column<egXML xmlns="http://www.tei-c.org/ns/Examples">
    <xsl:param xmlns:xd="http://www.pnp-software.com/XSLTdoc" xmlns:tei="http://www.tei-c.org/ns/1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" name="currentID"/>
    <xsl:call-template xmlns:xd="http://www.pnp-software.com/XSLTdoc" xmlns:tei="http://www.tei-c.org/ns/1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" name="mainFrame">
      <xsl:with-param name="currentID" select="$currentID"/>
    </xsl:call-template>
  </egXML></item><label><hi>rh-col-top</hi></label><item>
	     (for html)
	       Top of right-hand column<egXML xmlns="http://www.tei-c.org/ns/Examples">
    <xsl:call-template xmlns:xd="http://www.pnp-software.com/XSLTdoc" xmlns:tei="http://www.tei-c.org/ns/1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" name="columnHeader"/>
  </egXML></item><label><hi>searchbox</hi></label><item>
	     (for html)
	       Make a search box</item><label><hi>singleFileLabel</hi></label><item>
	     (for html)
	       Construct a label for the link which makes a
    printable version of the document.For Printing</item></list><list type="gloss"/><list type="gloss"><label><hi>latexPackages</hi></label><item>
	     (for latex)
	      <egXML xmlns="http://www.tei-c.org/ns/Examples">
<xsl:text xmlns:s="http://www.ascc.net/xml/schematron" xmlns:xd="http://www.pnp-software.com/XSLTdoc" xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0" xmlns:edate="http://exslt.org/dates-and-times" xmlns:estr="http://exslt.org/strings" xmlns:exsl="http://exslt.org/common" xmlns:rng="http://relaxng.org/ns/structure/1.0" xmlns:tei="http://www.tei-c.org/ns/1.0" xmlns:teix="http://www.tei-c.org/ns/Examples" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
\usepackage[</xsl:text>
<xsl:value-of xmlns:s="http://www.ascc.net/xml/schematron" xmlns:xd="http://www.pnp-software.com/XSLTdoc" xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0" xmlns:edate="http://exslt.org/dates-and-times" xmlns:estr="http://exslt.org/strings" xmlns:exsl="http://exslt.org/common" xmlns:rng="http://relaxng.org/ns/structure/1.0" xmlns:tei="http://www.tei-c.org/ns/1.0" xmlns:teix="http://www.tei-c.org/ns/Examples" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" select="$latexGeometryOptions"/>
<xsl:text xmlns:s="http://www.ascc.net/xml/schematron" xmlns:xd="http://www.pnp-software.com/XSLTdoc" xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0" xmlns:edate="http://exslt.org/dates-and-times" xmlns:estr="http://exslt.org/strings" xmlns:exsl="http://exslt.org/common" xmlns:rng="http://relaxng.org/ns/structure/1.0" xmlns:tei="http://www.tei-c.org/ns/1.0" xmlns:teix="http://www.tei-c.org/ns/Examples" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">]{geometry}
\usepackage{framed}
\definecolor{shadecolor}{gray}{0.95}
\usepackage{longtable}
\usepackage{colortbl}
\usepackage[normalem]{ulem}
\usepackage{fancyvrb}
\usepackage{fancyhdr}
\usepackage{graphicx}
\usepackage{endnotes}
\def\Gin@extensions{.pdf,.png,.jpg,.mps,.tif}
</xsl:text>
<xsl:if xmlns:s="http://www.ascc.net/xml/schematron" xmlns:xd="http://www.pnp-software.com/XSLTdoc" xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0" xmlns:edate="http://exslt.org/dates-and-times" xmlns:estr="http://exslt.org/strings" xmlns:exsl="http://exslt.org/common" xmlns:rng="http://relaxng.org/ns/structure/1.0" xmlns:tei="http://www.tei-c.org/ns/1.0" xmlns:teix="http://www.tei-c.org/ns/Examples" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" test="$reencode='true'">
<xsl:text>
\IfFileExists{tipa.sty}{\usepackage{tipa}}{}
\usepackage{times}
</xsl:text>
</xsl:if>
<xsl:if xmlns:s="http://www.ascc.net/xml/schematron" xmlns:xd="http://www.pnp-software.com/XSLTdoc" xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0" xmlns:edate="http://exslt.org/dates-and-times" xmlns:estr="http://exslt.org/strings" xmlns:exsl="http://exslt.org/common" xmlns:rng="http://relaxng.org/ns/structure/1.0" xmlns:tei="http://www.tei-c.org/ns/1.0" xmlns:teix="http://www.tei-c.org/ns/Examples" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" test="not($userpackage='')">
  \usepackage{<xsl:value-of select="$userpackage"/>}
</xsl:if>
<xsl:text xmlns:s="http://www.ascc.net/xml/schematron" xmlns:xd="http://www.pnp-software.com/XSLTdoc" xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0" xmlns:edate="http://exslt.org/dates-and-times" xmlns:estr="http://exslt.org/strings" xmlns:exsl="http://exslt.org/common" xmlns:rng="http://relaxng.org/ns/structure/1.0" xmlns:tei="http://www.tei-c.org/ns/1.0" xmlns:teix="http://www.tei-c.org/ns/Examples" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
  \pagestyle{fancy} 
</xsl:text>
</egXML></item><label><hi>latexSetup</hi></label><item>
	     (for latex)
	      <egXML xmlns="http://www.tei-c.org/ns/Examples">
<xsl:choose xmlns:s="http://www.ascc.net/xml/schematron" xmlns:xd="http://www.pnp-software.com/XSLTdoc" xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0" xmlns:edate="http://exslt.org/dates-and-times" xmlns:estr="http://exslt.org/strings" xmlns:exsl="http://exslt.org/common" xmlns:rng="http://relaxng.org/ns/structure/1.0" xmlns:tei="http://www.tei-c.org/ns/1.0" xmlns:teix="http://www.tei-c.org/ns/Examples" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:when test="$reencode='true'">
\IfFileExists{utf8x.def}%
 {\usepackage[utf8x]{inputenc}}%
 {\usepackage[utf8]{inputenc}}
<xsl:call-template name="latexBabel"/>
\usepackage[T1]{fontenc}
\usepackage[]{ucs}
\uc@dclc{8421}{default}{\textbackslash }
\uc@dclc{10100}{default}{\{}
\uc@dclc{10101}{default}{\}}
</xsl:when>
<xsl:otherwise>
\usepackage{fontspec}
\usepackage{xunicode}
\catcode`⃥=\active \def⃥{\textbackslash}
\catcode`❴=\active \def❴{\{}
\catcode`❵=\active \def❵{\}}
</xsl:otherwise>
</xsl:choose>
\DeclareTextSymbol{\textpi}{OML}{25}
\usepackage{relsize}
\def\textsubscript#1{%
  \@textsubscript{\selectfont#1}}
\def\@textsubscript#1{%
  {\m@th\ensuremath{_{\mbox{\fontsize\sf@size\z@#1}}}}}
\def\textquoted#1{‘#1’}
\def\textcal#1{\ensuremath{\mathcal{#1}}}
\def\textsmall#1{{\small #1}}
\def\textlarge#1{{\large #1}}
\def\textoverbar#1{\ensuremath{\overline{#1}}}
\def\textgothic#1{\ensuremath{\mathscr{#1}}}
\RequirePackage{array}
\def\@testpach{\@chclass
 \ifnum \@lastchclass=6 \@ne \@chnum \@ne \else
  \ifnum \@lastchclass=7 5 \else
   \ifnum \@lastchclass=8 \tw@ \else
    \ifnum \@lastchclass=9 \thr@@
   \else \z@
   \ifnum \@lastchclass = 10 \else
   \edef\@nextchar{\expandafter\string\@nextchar}%
   \@chnum
   \if \@nextchar c\z@ \else
    \if \@nextchar l\@ne \else
     \if \@nextchar r\tw@ \else
   \z@ \@chclass
   \if\@nextchar |\@ne \else
    \if \@nextchar !6 \else
     \if \@nextchar @7 \else
      \if \@nextchar (8 \else
       \if \@nextchar )9 \else
  10
  \@chnum
  \if \@nextchar m\thr@@\else
   \if \@nextchar p4 \else
    \if \@nextchar b5 \else
   \z@ \@chclass \z@ \@preamerr \z@ \fi \fi \fi \fi
   \fi \fi  \fi  \fi  \fi  \fi  \fi \fi \fi \fi \fi \fi}

\gdef\arraybackslash{\let\\=\@arraycr}
\def\Panel#1#2#3#4{\multicolumn{#3}{){\columncolor{#2}}#4}{#1}}
\gdef\arraybackslash{\let\\=\@arraycr}
<xsl:text xmlns:s="http://www.ascc.net/xml/schematron" xmlns:xd="http://www.pnp-software.com/XSLTdoc" xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0" xmlns:edate="http://exslt.org/dates-and-times" xmlns:estr="http://exslt.org/strings" xmlns:exsl="http://exslt.org/common" xmlns:rng="http://relaxng.org/ns/structure/1.0" xmlns:tei="http://www.tei-c.org/ns/1.0" xmlns:teix="http://www.tei-c.org/ns/Examples" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" disable-output-escaping="yes">
\newcolumntype{L}[1]{){\raggedright\arraybackslash}p{#1}}
\newcolumntype{C}[1]{){\centering\arraybackslash}p{#1}}
\newcolumntype{R}[1]{){\raggedleft\arraybackslash}p{#1}}
\newcolumntype{P}[1]{){\arraybackslash}p{#1}}
\newcolumntype{B}[1]{){\arraybackslash}b{#1}}
\newcolumntype{M}[1]{){\arraybackslash}m{#1}}
\IfFileExists{xcolor.sty}%
  {\RequirePackage{xcolor}}%
  {\RequirePackage{color}}
\definecolor{label}{gray}{0.75}
\newenvironment{reflist}{%
  \begin{raggedright}\begin{list}{}
  {%
   \setlength{\topsep}{0pt}%
   \setlength{\rightmargin}{0.25in}%
   \setlength{\itemsep}{0pt}%
   \setlength{\itemindent}{0pt}%
   \setlength{\parskip}{0pt}%
   \setlength{\parsep}{2pt}%
   \def\makelabel##1{\itshape ##1}}%
  }
  {\end{list}\end{raggedright}}
\newenvironment{sansreflist}{%
  \begin{raggedright}\begin{list}{}
  {%
   \setlength{\topsep}{0pt}%
   \setlength{\rightmargin}{0.25in}%
   \setlength{\itemindent}{0pt}%
   \setlength{\parskip}{0pt}%
   \setlength{\itemsep}{0pt}%
   \setlength{\parsep}{2pt}%
   \def\makelabel##1{\upshape\sffamily ##1}}%
  }
  {\end{list}\end{raggedright}}
\newenvironment{specHead}[2]%
 {\vspace{20pt}\hrule\vspace{10pt}%
  \hypertarget{#1}{}%
  \markright{#1}%
  \pdfbookmark[1]{#2}{#1}%
  \hspace{-0.75in}{\bfseries\fontsize{16pt}{18pt}\selectfont#2}%
  }{}
\DeclareRobustCommand*{\xref}{\hyper@normalise\xref@}
\def\xref@#1#2{\hyper@linkurl{#2}{#1}}
\def\Div[#1]#2{\section*{#2}}
\catcode`\_=12\relax
\def\exampleFontSet{\ttfamily\small\selectfont}
</xsl:text>

</egXML></item><label><hi>latexBabel</hi></label><item>
	     (for latex)
	      
\usepackage[english]{babel}
</item><label><hi>latexLayout</hi></label><item>
	     (for latex)
	      <egXML xmlns="http://www.tei-c.org/ns/Examples">
\paperwidth211mm
\paperheight297mm
\def\@pnumwidth{1.55em}
\def\@tocrmarg {2.55em}
\def\@dotsep{4.5}
\setcounter{tocdepth}{3}
\clubpenalty=8000
\emergencystretch 3em
\hbadness=4000
\hyphenpenalty=400
\pretolerance=750
\tolerance=2000
\vbadness=4000
\widowpenalty=10000
<xsl:if xmlns:s="http://www.ascc.net/xml/schematron" xmlns:xd="http://www.pnp-software.com/XSLTdoc" xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0" xmlns:edate="http://exslt.org/dates-and-times" xmlns:estr="http://exslt.org/strings" xmlns:exsl="http://exslt.org/common" xmlns:rng="http://relaxng.org/ns/structure/1.0" xmlns:tei="http://www.tei-c.org/ns/1.0" xmlns:teix="http://www.tei-c.org/ns/Examples" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" test="not($docClass='letter')">
\renewcommand\section{\@startsection {section}{1}{\z@}%
     {-1.75ex \@plus -0.5ex \@minus -.2ex}%
     {0.5ex \@plus .2ex}%
     {\reset@font\Large\bfseries\sffamily}}
\renewcommand\subsection{\@startsection{subsection}{2}{\z@}%
     {-1.75ex\@plus -0.5ex \@minus- .2ex}%
     {0.5ex \@plus .2ex}%
     {\reset@font\Large\sffamily}}
\renewcommand\subsubsection{\@startsection{subsubsection}{3}{\z@}%
     {-1.5ex\@plus -0.35ex \@minus -.2ex}%
     {0.5ex \@plus .2ex}%
     {\reset@font\large\sffamily}}
\renewcommand\paragraph{\@startsection{paragraph}{4}{\z@}%
     {-1ex \@plus-0.35ex \@minus -0.2ex}%
     {0.5ex \@plus .2ex}%
     {\reset@font\normalsize\sffamily}}
\renewcommand\subparagraph{\@startsection{subparagraph}{5}{\parindent}%
     {1.5ex \@plus1ex \@minus .2ex}%
     {-1em}%
     {\reset@font\normalsize\bfseries}}

</xsl:if>
\def\l@section#1#2{\addpenalty{\@secpenalty} \addvspace{1.0em plus 1pt}
 \@tempdima 1.5em \begingroup
 \parindent \z@ \rightskip \@pnumwidth 
 \parfillskip -\@pnumwidth 
 \bfseries \leavevmode #1\hfil \hbox to\@pnumwidth{\hss #2}\par
 \endgroup}
\def\l@subsection{\@dottedtocline{2}{1.5em}{2.3em}}
\def\l@subsubsection{\@dottedtocline{3}{3.8em}{3.2em}}
\def\l@paragraph{\@dottedtocline{4}{7.0em}{4.1em}}
\def\l@subparagraph{\@dottedtocline{5}{10em}{5em}}
\@ifundefined{c@section}{\newcounter{section}}{}
\@ifundefined{c@chapter}{\newcounter{chapter}}{}
\newif\if@mainmatter 
\@mainmattertrue
\def\chaptername{Chapter}
\def\frontmatter{%
  \pagenumbering{roman}
  \def\thechapter{\@roman\c@chapter}
  \def\theHchapter{\alph{chapter}}
  \def\@chapapp{}%
}
\def\mainmatter{%
  \cleardoublepage
  \def\thechapter{\@arabic\c@chapter}
  \setcounter{chapter}{0}
  \setcounter{section}{0}
  \pagenumbering{arabic}
  \setcounter{secnumdepth}{6}
  \def\@chapapp{\chaptername}%
  \def\theHchapter{\arabic{chapter}}
}
\def\backmatter{%
  \cleardoublepage
  \setcounter{chapter}{0}
  \setcounter{section}{0}
  \setcounter{secnumdepth}{0}
  \def\@chapapp{\appendixname}%
  \def\thechapter{\@Alph\c@chapter}
  \def\theHchapter{\Alph{chapter}}
  \appendix
}
\newenvironment{bibitemlist}[1]{%
   \list{\@biblabel{\@arabic\c@enumiv}}%
       {\settowidth\labelwidth{\@biblabel{#1}}%
        \leftmargin\labelwidth
        \advance\leftmargin\labelsep
        \@openbib@code
        \usecounter{enumiv}%
        \let\p@enumiv\@empty
        \renewcommand\theenumiv{\@arabic\c@enumiv}%
	}%
  \sloppy
  \clubpenalty4000
  \@clubpenalty \clubpenalty
  \widowpenalty4000%
  \sfcode`\.\@m}%
  {\def\@noitemerr
    {\@latex@warning{Empty `bibitemlist' environment}}%
    \endlist}

\def\tableofcontents{\section*{\contentsname}\@starttoc{toc}}
\usepackage[pdftitle={<xsl:call-template xmlns:s="http://www.ascc.net/xml/schematron" xmlns:xd="http://www.pnp-software.com/XSLTdoc" xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0" xmlns:edate="http://exslt.org/dates-and-times" xmlns:estr="http://exslt.org/strings" xmlns:exsl="http://exslt.org/common" xmlns:rng="http://relaxng.org/ns/structure/1.0" xmlns:tei="http://www.tei-c.org/ns/1.0" xmlns:teix="http://www.tei-c.org/ns/Examples" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" name="generateSimpleTitle"/>},
 pdfauthor={<xsl:call-template xmlns:s="http://www.ascc.net/xml/schematron" xmlns:xd="http://www.pnp-software.com/XSLTdoc" xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0" xmlns:edate="http://exslt.org/dates-and-times" xmlns:estr="http://exslt.org/strings" xmlns:exsl="http://exslt.org/common" xmlns:rng="http://relaxng.org/ns/structure/1.0" xmlns:tei="http://www.tei-c.org/ns/1.0" xmlns:teix="http://www.tei-c.org/ns/Examples" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" name="generateAuthor"/>}]{hyperref}
\hyperbaseurl{<xsl:value-of xmlns:s="http://www.ascc.net/xml/schematron" xmlns:xd="http://www.pnp-software.com/XSLTdoc" xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0" xmlns:edate="http://exslt.org/dates-and-times" xmlns:estr="http://exslt.org/strings" xmlns:exsl="http://exslt.org/common" xmlns:rng="http://relaxng.org/ns/structure/1.0" xmlns:tei="http://www.tei-c.org/ns/1.0" xmlns:teix="http://www.tei-c.org/ns/Examples" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" select="$baseURL"/>}
<xsl:call-template xmlns:s="http://www.ascc.net/xml/schematron" xmlns:xd="http://www.pnp-software.com/XSLTdoc" xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0" xmlns:edate="http://exslt.org/dates-and-times" xmlns:estr="http://exslt.org/strings" xmlns:exsl="http://exslt.org/common" xmlns:rng="http://relaxng.org/ns/structure/1.0" xmlns:tei="http://www.tei-c.org/ns/1.0" xmlns:teix="http://www.tei-c.org/ns/Examples" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" name="latexPreambleHook"/>
</egXML></item><label><hi>latexBegin</hi></label><item>
	     (for latex)
	      <egXML xmlns="http://www.tei-c.org/ns/Examples">
<xsl:text xmlns:s="http://www.ascc.net/xml/schematron" xmlns:xd="http://www.pnp-software.com/XSLTdoc" xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0" xmlns:edate="http://exslt.org/dates-and-times" xmlns:estr="http://exslt.org/strings" xmlns:exsl="http://exslt.org/common" xmlns:rng="http://relaxng.org/ns/structure/1.0" xmlns:tei="http://www.tei-c.org/ns/1.0" xmlns:teix="http://www.tei-c.org/ns/Examples" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">\makeatletter
\thispagestyle{plain}</xsl:text>
<xsl:if xmlns:s="http://www.ascc.net/xml/schematron" xmlns:xd="http://www.pnp-software.com/XSLTdoc" xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0" xmlns:edate="http://exslt.org/dates-and-times" xmlns:estr="http://exslt.org/strings" xmlns:exsl="http://exslt.org/common" xmlns:rng="http://relaxng.org/ns/structure/1.0" xmlns:tei="http://www.tei-c.org/ns/1.0" xmlns:teix="http://www.tei-c.org/ns/Examples" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" test="not(tei:text/tei:front/tei:titlePage)">
  <xsl:call-template name="printTitleAndLogo"/>
</xsl:if>
<xsl:text xmlns:s="http://www.ascc.net/xml/schematron" xmlns:xd="http://www.pnp-software.com/XSLTdoc" xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0" xmlns:edate="http://exslt.org/dates-and-times" xmlns:estr="http://exslt.org/strings" xmlns:exsl="http://exslt.org/common" xmlns:rng="http://relaxng.org/ns/structure/1.0" xmlns:tei="http://www.tei-c.org/ns/1.0" xmlns:teix="http://www.tei-c.org/ns/Examples" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">\markright{\@title}%
\markboth{\@title}{\@author}%
\makeatother
\fvset{frame=single,numberblanklines=false,xleftmargin=5mm,xrightmargin=5mm}
\fancyhf{} 
\setlength{\headheight}{14pt}
\fancyhead[LE]{\bfseries\leftmark} 
\fancyhead[RO]{\bfseries\rightmark} 
\fancyfoot[RO]{\TheFullDate}
\fancyfoot[CO]{\thepage}
\fancyfoot[LO]{\TheID}
\fancyfoot[LE]{\TheFullDate}
\fancyfoot[CE]{\thepage}
\fancyfoot[RE]{\TheID}
\fancypagestyle{plain}{\fancyhead{}\renewcommand{\headrulewidth}{0pt}}</xsl:text>
<xsl:call-template xmlns:s="http://www.ascc.net/xml/schematron" xmlns:xd="http://www.pnp-software.com/XSLTdoc" xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0" xmlns:edate="http://exslt.org/dates-and-times" xmlns:estr="http://exslt.org/strings" xmlns:exsl="http://exslt.org/common" xmlns:rng="http://relaxng.org/ns/structure/1.0" xmlns:tei="http://www.tei-c.org/ns/1.0" xmlns:teix="http://www.tei-c.org/ns/Examples" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" name="beginDocumentHook"/>
</egXML></item><label><hi>latexEnd</hi></label><item>
	     (for latex)
	      
</item></list></div></div>

<div xml:id="headings">
 <head>Headings</head>
<p>Headings for sections can be customized in various ways.</p>
<div><head>Variables</head><table rend="rules" preamble="P{0.1\textwidth}|P{0.25\textwidth}|P{0.36\textwidth}|P{0.22\textwidth}|"><row role="label"><cell>Type</cell><cell>Name</cell><cell>Description</cell><cell>Default</cell></row><row><cell/><cell><hi>autoHead</hi></cell><cell> Construct a heading 
    for &lt;div&gt; elements with no &lt;head&gt; [<code>boolean</code>]
	</cell><cell/></row><row><cell/><cell><hi>headingNumberSuffix</hi></cell><cell> Punctuation to insert after a section
    number [<code>string</code>]
	</cell><cell><egXML xmlns="http://www.tei-c.org/ns/Examples">
    <xsl:text xmlns:edate="http://exslt.org/dates-and-times" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:tei="http://www.tei-c.org/ns/1.0" xmlns:xd="http://www.pnp-software.com/XSLTdoc" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">.</xsl:text>
    <xsl:value-of xmlns:edate="http://exslt.org/dates-and-times" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:tei="http://www.tei-c.org/ns/1.0" xmlns:xd="http://www.pnp-software.com/XSLTdoc" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" select="$numberSpacer"/>
  </egXML></cell></row><row><cell/><cell><hi>numberSpacer</hi></cell><cell> Character to put after number of
    section header [<code>string</code>]
	</cell><cell><egXML xmlns="http://www.tei-c.org/ns/Examples">
    <xsl:text xmlns:edate="http://exslt.org/dates-and-times" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:tei="http://www.tei-c.org/ns/1.0" xmlns:xd="http://www.pnp-software.com/XSLTdoc" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> </xsl:text>
  </egXML></cell></row></table></div><div><head>Templates</head><list type="gloss"><label><hi>autoMakeHead</hi></label><item>
	     (for common)
	       How to make a heading for section if there is no
      &lt;head&gt;<egXML xmlns="http://www.tei-c.org/ns/Examples">
    <xsl:choose xmlns:edate="http://exslt.org/dates-and-times" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:tei="http://www.tei-c.org/ns/1.0" xmlns:xd="http://www.pnp-software.com/XSLTdoc" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
      <xsl:when test="tei:head">
        <xsl:apply-templates mode="plain" select="tei:head"/>
      </xsl:when>
      <xsl:when test="@type">
        <xsl:value-of select="@type"/>
      </xsl:when>
      <xsl:otherwise>
	<xsl:text> </xsl:text>
     </xsl:otherwise>
    </xsl:choose>
  </egXML></item></list></div></div>

<div xml:id="numbering">
<head>Numbering</head>
<p>Section headings, figures, tables and notes can be numbered
automatically.  We can set the numbering of front matter and back
matter separately. If you prefer to supply your own numbering, using
the <code>n</code> attribute, you can choose this over automatic
numbering.</p>

<p>Normally, heading numbers are followed by <q>. </q>, but you can vary
this. This would let you use eg fixed spaces.</p>
<div><head>Variables</head><table rend="rules" preamble="P{0.1\textwidth}|P{0.25\textwidth}|P{0.36\textwidth}|P{0.22\textwidth}|"><row role="label"><cell>Type</cell><cell>Name</cell><cell>Description</cell><cell>Default</cell></row><row><cell/><cell><hi>numberBackFigures</hi></cell><cell> Automatically number figures in back
    matter [<code>boolean</code>]
	</cell><cell>false</cell></row><row><cell/><cell><hi>numberBackHeadings</hi></cell><cell> How to construct heading numbering in
    back matter [<code>string</code>]
	</cell><cell>A.1</cell></row><row><cell/><cell><hi>numberBackTables</hi></cell><cell> Automatically number tables in back
    matter [<code>boolean</code>]
	</cell><cell>true</cell></row><row><cell/><cell><hi>numberBodyHeadings</hi></cell><cell> How to construct heading numbering in
    main matter [<code>string</code>]
	</cell><cell>1.1.1.1</cell></row><row><cell/><cell><hi>numberFigures</hi></cell><cell> Automatically number figures [<code>boolean</code>]
	</cell><cell>true</cell></row><row><cell/><cell><hi>numberFrontFigures</hi></cell><cell> Automatically number figures in
    front matter [<code>boolean</code>]
	</cell><cell>false</cell></row><row><cell/><cell><hi>numberFrontHeadings</hi></cell><cell> How to construct heading numbering in
    front matter [<code>string</code>]
	</cell><cell/></row><row><cell/><cell><hi>numberFrontTables</hi></cell><cell> Automatically number tables in front
    matter [<code>boolean</code>]
	</cell><cell>true</cell></row><row><cell/><cell><hi>numberHeadings</hi></cell><cell> Automatically number sections [<code>boolean</code>]
	</cell><cell>true</cell></row><row><cell/><cell><hi>numberHeadingsDepth</hi></cell><cell> Depth to which sections should be
    numbered [<code>integer</code>]
	</cell><cell>9</cell></row><row><cell/><cell><hi>numberTables</hi></cell><cell> Automatically number tables [<code>boolean</code>]
	</cell><cell>true</cell></row><row><cell/><cell><hi>prenumberedHeadings</hi></cell><cell> Use value of "n" attribute to number
    sections [<code>boolean</code>]
	</cell><cell>false</cell></row><row><cell>html</cell><cell><hi>numberParagraphs</hi></cell><cell>
Automatically number paragraphs [<code>boolean</code>]
	</cell><cell>false</cell></row></table></div><div><head>Templates</head><list type="gloss"><label><hi>numberBackDiv</hi></label><item>
	     (for common)
	       How to number sections in back matter<egXML xmlns="http://www.tei-c.org/ns/Examples">
    <xsl:if xmlns:edate="http://exslt.org/dates-and-times" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:tei="http://www.tei-c.org/ns/1.0" xmlns:xd="http://www.pnp-software.com/XSLTdoc" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" test="not($numberBackHeadings='')">
      <xsl:number count="tei:div|tei:div0|tei:div1|tei:div2|tei:div3|tei:div4|tei:div5|tei:div6" format="A.1.1.1.1.1" level="multiple"/>
    </xsl:if>
  </egXML></item><label><hi>numberBodyDiv</hi></label><item>
	     (for common)
	       How to number sections in main matter<egXML xmlns="http://www.tei-c.org/ns/Examples">
    <xsl:if xmlns:edate="http://exslt.org/dates-and-times" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:tei="http://www.tei-c.org/ns/1.0" xmlns:xd="http://www.pnp-software.com/XSLTdoc" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" test="$numberHeadings='true'">
      <xsl:number count="tei:div|tei:div0|tei:div1|tei:div2|tei:div3|tei:div4|tei:div5|tei:div6" level="multiple"/>
    </xsl:if>
  </egXML></item><label><hi>numberFrontDiv</hi></label><item>
	     (for common)
	       How to number sections in front matter<egXML xmlns="http://www.tei-c.org/ns/Examples">
    <xsl:param xmlns:edate="http://exslt.org/dates-and-times" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:tei="http://www.tei-c.org/ns/1.0" xmlns:xd="http://www.pnp-software.com/XSLTdoc" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" name="minimal"/>
      <xsl:number xmlns:edate="http://exslt.org/dates-and-times" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:tei="http://www.tei-c.org/ns/1.0" xmlns:xd="http://www.pnp-software.com/XSLTdoc" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" count="tei:div|tei:div0|tei:div1|tei:div2|tei:div3|tei:div4|tei:div5|tei:div6" level="multiple"/>
      <xsl:if xmlns:edate="http://exslt.org/dates-and-times" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:tei="http://www.tei-c.org/ns/1.0" xmlns:xd="http://www.pnp-software.com/XSLTdoc" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" test="$minimal='false'">
	<xsl:value-of select="$numberSpacer"/>
      </xsl:if>
  </egXML></item></list><list type="gloss"/></div></div>


<div xml:id="output">
 <head>Output</head>
<p>You can set a name for the output file(s); if you ask for multiple
output files, this name will be used to create unique filenames for
each section. By default, results will go to wherever your XSLT
processor normally writes (usually standard output).  If you opt to
have files created, you can specify the name of the directory where
the output is to be placed.</p>

<p>If you are making HTML, do you want a single output page, or a
separate one for each section of the document?   You
can decide to have a different splitting policy for front and
back matter.  </p>

<div><head>Variables</head><table rend="rules" preamble="P{0.1\textwidth}|P{0.25\textwidth}|P{0.36\textwidth}|P{0.22\textwidth}|"><row role="label"><cell>Type</cell><cell>Name</cell><cell>Description</cell><cell>Default</cell></row><row><cell/><cell><hi>REQUEST</hi></cell><cell> The complete URL when the document is
    being delivered from a web server (normally set by Apache or Cocoon) [<code>string</code>]
	</cell><cell/></row><row><cell/><cell><hi>STDOUT</hi></cell><cell> Write to standard output channel [<code>boolean</code>]
	</cell><cell>true</cell></row><row><cell>html</cell><cell><hi>ID</hi></cell><cell>
An ID passed to the stylesheet to indicate which section to display
 [<code>string</code>]
	</cell><cell/></row><row><cell>html</cell><cell><hi>requestedID</hi></cell><cell>
A wrapper around the ID, to allow for other ways of getting it
 [<code>string</code>]
	</cell><cell><egXML xmlns="http://www.tei-c.org/ns/Examples">
    <xsl:value-of xmlns:xd="http://www.pnp-software.com/XSLTdoc" xmlns:tei="http://www.tei-c.org/ns/1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" select="$ID"/>
  </egXML></cell></row><row><cell>html</cell><cell><hi>URLPREFIX</hi></cell><cell>
A path fragment to put before all internal URLs 
 [<code>string</code>]
	</cell><cell/></row><row><cell>html</cell><cell><hi>outputName</hi></cell><cell>
The name of the output file
 [<code>string</code>]
	</cell><cell/></row><row><cell>html</cell><cell><hi>outputDir</hi></cell><cell>
Directory in which to place generated files [<code>string</code>]
	</cell><cell/></row><row><cell>html</cell><cell><hi>outputEncoding</hi></cell><cell>
Encoding of output file(s) [<code>string</code>]
	</cell><cell>iso-8859-1</cell></row><row><cell>html</cell><cell><hi>outputMethod</hi></cell><cell>
Output method for output file(s) [<code>string</code>]
	</cell><cell>html</cell></row><row><cell>html</cell><cell><hi>outputSuffix</hi></cell><cell>
Suffix of output file(s) [<code>string</code>]
	</cell><cell>.html</cell></row><row><cell>html</cell><cell><hi>doctypePublic</hi></cell><cell>
Public Doctype of output file(s) [<code>string</code>]
	</cell><cell>-//W3C//DTD HTML 4.0 Transitional//EN</cell></row><row><cell>html</cell><cell><hi>doctypeSystem</hi></cell><cell>
System Doctype of output file(s) [<code>string</code>]
	</cell><cell>http://www.w3.org/TR/html4/loose.dtd</cell></row><row><cell>html</cell><cell><hi>pageLayout</hi></cell><cell>The style of HTML (Simple, CSS or Table) which creates the layout for generated pages. [<code>string</code>]
	</cell><cell>Simple</cell></row><row><cell>html</cell><cell><hi>rawXML</hi></cell><cell>
Pass through input essentially unchanged
 [<code>boolean</code>]
	</cell><cell>false</cell></row><row><cell>html</cell><cell><hi>splitBackmatter</hi></cell><cell>
Break back matter into separate HTML pages (if splitting enabled) [<code>boolean</code>]
	</cell><cell>true</cell></row><row><cell>html</cell><cell><hi>splitFrontmatter</hi></cell><cell>
Break front matter into separate HTML pages (if splitting enabled) [<code>boolean</code>]
	</cell><cell>true</cell></row><row><cell>html</cell><cell><hi>splitLevel</hi></cell><cell>Level at which to split sections. [<code>integer</code>]
	</cell><cell>-1</cell></row><row><cell>html</cell><cell><hi>standardSuffix</hi></cell><cell>
Suffix for generated output files [<code>string</code>]
	</cell><cell><egXML xmlns="http://www.tei-c.org/ns/Examples">
    <xsl:choose xmlns:xd="http://www.pnp-software.com/XSLTdoc" xmlns:tei="http://www.tei-c.org/ns/1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
      <xsl:when test="$rawXML='true'">.xml</xsl:when>
      <xsl:when test="tei:teiCorpus">.html</xsl:when>
      <xsl:when test="$STDOUT='true'"/>
      <xsl:otherwise>
	<xsl:value-of select="$outputSuffix"/>
      </xsl:otherwise>
    </xsl:choose>
  </egXML></cell></row><row><cell>html</cell><cell><hi>topNavigationPanel</hi></cell><cell>
Display navigation panel at top of pages [<code>boolean</code>]
	</cell><cell>true</cell></row><row><cell>html</cell><cell><hi>urlChunkPrefix</hi></cell><cell>
How to specify infra-document links [<code>string</code>]
	</cell><cell>?ID=</cell></row><row><cell>html</cell><cell><hi>useIDs</hi></cell><cell>Construct links using existing ID values. [<code>boolean</code>]
	</cell><cell>true</cell></row><row><cell>html</cell><cell><hi>virtualPages</hi></cell><cell>
Whether to make split pages appear virtually
as layers in HTML, or physically as separate
pages or server requests [<code>boolean</code>]
	</cell><cell>false</cell></row><row><cell>html</cell><cell><hi>xhtml</hi></cell><cell>
Make XHTML-compatible markup
 [<code>boolean</code>]
	</cell><cell>false</cell></row><row><cell>fo</cell><cell><hi>language</hi></cell><cell>
Language (for hyphenation)
 [<code>string</code>]
	</cell><cell>en_US</cell></row><row><cell>fo</cell><cell><hi>foEngine</hi></cell><cell>Name of intended XSL FO engine [<code>string</code>]
	</cell><cell/></row><row><cell>latex</cell><cell><hi>baseURL</hi></cell><cell>
URL root where referenced documents are located
 [<code>string</code>]
	</cell><cell/></row><row><cell>latex</cell><cell><hi>reencode</hi></cell><cell>
Whether or not to load LaTeX packages which attempt to
process the UTF-8 characters [<code>boolean</code>]
	</cell><cell>true</cell></row><row><cell>latex</cell><cell><hi>realFigures</hi></cell><cell>
Use real name of graphics files rather than pointers
 [<code>boolean</code>]
	</cell><cell>true</cell></row></table></div><div><head>Templates</head><list type="gloss"/><list type="gloss"/><list type="gloss"/><list type="gloss"/></div></div>


<div xml:id="toc">
<head>Table of contents generation</head>
<p>You probably want tables of contents built for your document, using
the <gi>div</gi> structure. However, if you have used a <gi>divGen
type="toc"</gi> explicitly, that will also create a table of contents,
so you can suppress the automatic one.  When a table of contents is
created, you choose how many levels of headings it will show.
You can choose whether or not the front and backmatter appear
in the table of contents.</p>
<div><head>Variables</head><table rend="rules" preamble="P{0.1\textwidth}|P{0.25\textwidth}|P{0.36\textwidth}|P{0.22\textwidth}|"><row role="label"><cell>Type</cell><cell>Name</cell><cell>Description</cell><cell>Default</cell></row><row><cell>html</cell><cell><hi>autoToc</hi></cell><cell>
Make an automatic table of contents
 [<code>boolean</code>]
	</cell><cell>true</cell></row><row><cell>html</cell><cell><hi>class_subtoc</hi></cell><cell>
CSS class for second-level TOC entries
 [<code>string</code>]
	</cell><cell>subtoc</cell></row><row><cell>html</cell><cell><hi>subTocDepth</hi></cell><cell>Depth at which to stop doing a recursive table of
contents. [<code>integer</code>]
	</cell><cell>-1</cell></row><row><cell>html</cell><cell><hi>tocBack</hi></cell><cell>
Include the back matter in the table of contents [<code>boolean</code>]
	</cell><cell>true</cell></row><row><cell>html</cell><cell><hi>tocDepth</hi></cell><cell>
Depth to which table of contents is constructed [<code>string</code>]
	</cell><cell>5</cell></row><row><cell>html</cell><cell><hi>tocFront</hi></cell><cell>
Include the front matter in the table of contents [<code>boolean</code>]
	</cell><cell>true</cell></row><row><cell>html</cell><cell><hi>tocElement</hi></cell><cell>
Which HTML element to wrap each TOCs entry in [<code>string</code>]
	</cell><cell>p</cell></row><row><cell>html</cell><cell><hi>tocContainerElement</hi></cell><cell>
Which HTML element to wrap each TOC sections in [<code>string</code>]
	</cell><cell>div</cell></row><row><cell>html</cell><cell><hi>refDocFooterText</hi></cell><cell>
Text to link back to from foot of ODD reference pages
   [<code>string</code>]
	</cell><cell>TEI Guidelines</cell></row><row><cell>html</cell><cell><hi>refDocFooterURL</hi></cell><cell>
URL to link back to from foot of ODD reference pages
   [<code>anyURI</code>]
	</cell><cell>index.html</cell></row><row><cell>fo</cell><cell><hi>div0Tocindent</hi></cell><cell>
Indentation for level 0 TOC entries
 [<code>string</code>]
	</cell><cell>0in</cell></row><row><cell>fo</cell><cell><hi>div1Tocindent</hi></cell><cell>
Indentation for level 1 TOC entries
 [<code>string</code>]
	</cell><cell>0.25in</cell></row><row><cell>fo</cell><cell><hi>div2Tocindent</hi></cell><cell>
Indentation for level 2 TOC entries
 [<code>string</code>]
	</cell><cell>0.5in</cell></row><row><cell>fo</cell><cell><hi>div3Tocindent</hi></cell><cell>
Indentation for level 3 TOC entries
 [<code>string</code>]
	</cell><cell>0.75in</cell></row><row><cell>fo</cell><cell><hi>div4Tocindent</hi></cell><cell>
Indentation for level 4 TOC entries
 [<code>string</code>]
	</cell><cell>1in</cell></row><row><cell>fo</cell><cell><hi>div5Tocindent</hi></cell><cell>
    Indentation for level 5 TOC entries
   [<code>string</code>]
	</cell><cell>1.25in</cell></row><row><cell>fo</cell><cell><hi>tocBack</hi></cell><cell>
Make TOC for sections in &lt;back&gt;
 [<code>boolean</code>]
	</cell><cell>true</cell></row><row><cell>fo</cell><cell><hi>tocFront</hi></cell><cell>
Make TOC for sections in &lt;front&gt;
 [<code>boolean</code>]
	</cell><cell>true</cell></row><row><cell>fo</cell><cell><hi>tocNumberSuffix</hi></cell><cell>
Punctuation to insert after a section number in a TOC
 [<code>string</code>]
	</cell><cell>. </cell></row><row><cell>fo</cell><cell><hi>tocStartPage</hi></cell><cell>
Page number on which TOC should start
 [<code>integer</code>]
	</cell><cell>1</cell></row></table></div><div><head>Templates</head><list type="gloss"/><list type="gloss"/></div></div>



<div xml:id="i18n">
<head>Internationalization</head>
<p>At various places, the system has to create text. You can choose
the words it uses (eg translate them to another language).</p>
<div><head>Variables</head><table rend="rules" preamble="P{0.1\textwidth}|P{0.25\textwidth}|P{0.36\textwidth}|P{0.22\textwidth}|"><row role="label"><cell>Type</cell><cell>Name</cell><cell>Description</cell><cell>Default</cell></row></table></div><div><head>Templates</head><list type="gloss"><label><hi>copyrightStatement</hi></label><item>
	     (for html)
	       Make a copyright claimThis page is copyrighted</item></list></div></div>


<div xml:id="CSS">
 <head>CSS</head>
<p>Setting up material for the CSS file to accompany HTML output.</p>
<div><head>Variables</head><table rend="rules" preamble="P{0.1\textwidth}|P{0.25\textwidth}|P{0.36\textwidth}|P{0.22\textwidth}|"><row role="label"><cell>Type</cell><cell>Name</cell><cell>Description</cell><cell>Default</cell></row><row><cell/><cell><hi>class_toc</hi></cell><cell>CSS class for TOC entries [<code>string</code>]
	</cell><cell>toc</cell></row><row><cell>html</cell><cell><hi>class_ptr</hi></cell><cell>
CSS class for links derived from &lt;ptr&gt;
 [<code>string</code>]
	</cell><cell>ptr</cell></row><row><cell>html</cell><cell><hi>class_ref</hi></cell><cell>
CSS class for links derived from &lt;ref&gt;
 [<code>string</code>]
	</cell><cell>ref</cell></row><row><cell>html</cell><cell><hi>class_xptr</hi></cell><cell>
CSS class for links derived from &lt;xptr&gt;
 [<code>string</code>]
	</cell><cell>xptr</cell></row><row><cell>html</cell><cell><hi>class_xref</hi></cell><cell>
CSS class for links derived from &lt;xref&gt;
 [<code>string</code>]
	</cell><cell>xref</cell></row><row><cell>html</cell><cell><hi>cssFile</hi></cell><cell>
CSS style file to be associated with output file(s)
 [<code>anyURI</code>]
	</cell><cell>http://www.tei-c.org/release/xml/tei/stylesheet/tei.css</cell></row><row><cell>html</cell><cell><hi>cssPrintFile</hi></cell><cell>
CSS style file for print; this will be given a media=print attribute [<code>anyURI</code>]
	</cell><cell>http://www.tei-c.org/release/xml/tei/stylesheet/tei-print.css</cell></row><row><cell>html</cell><cell><hi>cssSecondaryFile</hi></cell><cell>
Secondary CSS style file; this will be given a media=screen attribute,
so that it does not affect printing [<code>anyURI</code>]
	</cell><cell/></row></table></div><div><head>Templates</head><list type="gloss"/><list type="gloss"/></div></div>

<div xml:id="tables">
 <head>Tables</head>
<p>Default behaviour of table elements.</p>
<div><head>Variables</head><table rend="rules" preamble="P{0.1\textwidth}|P{0.25\textwidth}|P{0.36\textwidth}|P{0.22\textwidth}|"><row role="label"><cell>Type</cell><cell>Name</cell><cell>Description</cell><cell>Default</cell></row><row><cell/><cell><hi>cellAlign</hi></cell><cell> Default alignment of table cells [<code>string</code>]
	</cell><cell>left</cell></row><row><cell/><cell><hi>tableAlign</hi></cell><cell> Default alignment of tables [<code>string</code>]
	</cell><cell>left</cell></row><row><cell>fo</cell><cell><hi>defaultCellLabelBackground</hi></cell><cell>
Default colour for background of table cells which are labelling rows
or columns [<code>string</code>]
	</cell><cell>silver</cell></row><row><cell>fo</cell><cell><hi>inlineTables</hi></cell><cell>
Force tables to appear inline
 [<code>boolean</code>]
	</cell><cell>false</cell></row><row><cell>fo</cell><cell><hi>makeTableCaption</hi></cell><cell>
Put a caption on tables  
 [<code>boolean</code>]
	</cell><cell>true</cell></row><row><cell>fo</cell><cell><hi>tableCaptionAlign</hi></cell><cell>
Alignment of table captions
 [<code>string</code>]
	</cell><cell>center</cell></row><row><cell>fo</cell><cell><hi>tableCellPadding</hi></cell><cell>
Default padding on table cells
 [<code>string</code>]
	</cell><cell>2pt</cell></row></table></div><div><head>Templates</head><list type="gloss"/><list type="gloss"><label><hi>tableCaptionstyle</hi></label><item>
	     (for fo)
	       Set attributes for display of table <egXML xmlns="http://www.tei-c.org/ns/Examples">
    <xsl:attribute xmlns:xd="http://www.pnp-software.com/XSLTdoc" xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:tei="http://www.tei-c.org/ns/1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" name="text-align">center</xsl:attribute>
    <xsl:attribute xmlns:xd="http://www.pnp-software.com/XSLTdoc" xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:tei="http://www.tei-c.org/ns/1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" name="font-style">italic</xsl:attribute>
    <xsl:attribute xmlns:xd="http://www.pnp-software.com/XSLTdoc" xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:tei="http://www.tei-c.org/ns/1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" name="end-indent">
      <xsl:value-of select="$exampleMargin"/>
    </xsl:attribute>
    <xsl:attribute xmlns:xd="http://www.pnp-software.com/XSLTdoc" xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:tei="http://www.tei-c.org/ns/1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" name="start-indent">
      <xsl:value-of select="$exampleMargin"/>
    </xsl:attribute>
    <xsl:attribute xmlns:xd="http://www.pnp-software.com/XSLTdoc" xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:tei="http://www.tei-c.org/ns/1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" name="space-before">
      <xsl:value-of select="$spaceAroundTable"/>
    </xsl:attribute>
    <xsl:attribute xmlns:xd="http://www.pnp-software.com/XSLTdoc" xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:tei="http://www.tei-c.org/ns/1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" name="space-after">
      <xsl:value-of select="$spaceBelowCaption"/>
    </xsl:attribute>
    <xsl:attribute xmlns:xd="http://www.pnp-software.com/XSLTdoc" xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:tei="http://www.tei-c.org/ns/1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" name="keep-with-next">always</xsl:attribute>
  </egXML></item></list></div></div>

<div xml:id="figures">
 <head>Figures and graphics</head>
<p>Sometimes you need to prefix the names of all graphics files with 
a directory name or a URL, or provide a default suffix.
You can also tell <gi>figure</gi> elements whether or not to
produce anything.</p>

<div><head>Variables</head><table rend="rules" preamble="P{0.1\textwidth}|P{0.25\textwidth}|P{0.36\textwidth}|P{0.22\textwidth}|"><row role="label"><cell>Type</cell><cell>Name</cell><cell>Description</cell><cell>Default</cell></row><row><cell/><cell><hi>graphicsPrefix</hi></cell><cell>Directory specification to put before names of graphics files,
      unless they start with "./" [<code>string</code>]
	</cell><cell/></row><row><cell/><cell><hi>graphicsSuffix</hi></cell><cell> Default file suffix for graphics files,
    if not directly specified [<code>string</code>]
	</cell><cell>.png</cell></row><row><cell/><cell><hi>standardScale</hi></cell><cell> Scaling of imported graphics [<code>decimal</code>]
	</cell><cell>1</cell></row><row><cell>html</cell><cell><hi>dpi</hi></cell><cell>
Resolution of images [<code>integer</code>]
	</cell><cell>96</cell></row><row><cell>html</cell><cell><hi>showFigures</hi></cell><cell>
Display figures [<code>boolean</code>]
	</cell><cell>true</cell></row><row><cell>fo</cell><cell><hi>autoScaleFigures</hi></cell><cell>
How to scale figures if no width and height specified (pass to XSL FO content-width)
 [<code>string</code>]
	</cell><cell/></row><row><cell>fo</cell><cell><hi>captionInlineFigures</hi></cell><cell>
Put captions on inline figures
 [<code>boolean</code>]
	</cell><cell>false</cell></row><row><cell>fo</cell><cell><hi>showFloatHead</hi></cell><cell>
Show the contents of &lt;head&gt; in a cross-reference to table or figure
 [<code>boolean</code>]
	</cell><cell>false</cell></row><row><cell>fo</cell><cell><hi>showFloatLabel</hi></cell><cell>
Show a title for figures or tables (eg Table or Figure) in a cross-reference
 [<code>boolean</code>]
	</cell><cell>false</cell></row><row><cell>fo</cell><cell><hi>xrefShowPage</hi></cell><cell>
Show the page number in a cross-reference to table or figure
 [<code>boolean</code>]
	</cell><cell>false</cell></row></table></div><div><head>Templates</head><list type="gloss"/><list type="gloss"/><list type="gloss"><label><hi>figureCaptionstyle</hi></label><item>
	     (for fo)
	       Set attributes for display of figures<egXML xmlns="http://www.tei-c.org/ns/Examples">
    <xsl:attribute xmlns:xd="http://www.pnp-software.com/XSLTdoc" xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:tei="http://www.tei-c.org/ns/1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" name="text-align">center</xsl:attribute>
    <xsl:attribute xmlns:xd="http://www.pnp-software.com/XSLTdoc" xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:tei="http://www.tei-c.org/ns/1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" name="font-style">italic</xsl:attribute>
    <xsl:attribute xmlns:xd="http://www.pnp-software.com/XSLTdoc" xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:tei="http://www.tei-c.org/ns/1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" name="end-indent">
      <xsl:value-of select="$exampleMargin"/>
    </xsl:attribute>
    <xsl:attribute xmlns:xd="http://www.pnp-software.com/XSLTdoc" xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:tei="http://www.tei-c.org/ns/1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" name="start-indent">
      <xsl:value-of select="$exampleMargin"/>
    </xsl:attribute>
  </egXML></item></list></div></div>
<div xml:id="style">
<head>Style</head>
<p>You can choose lots of features which affect the font, size, etc
<list>
<item>What font to use for URLs.</item>
<item>Whether titles, dates and authors are shown.</item>
<item>Whether headings of objects are included in cross-references.</item>
</list>
</p>
<div><head>Variables</head><table rend="rules" preamble="P{0.1\textwidth}|P{0.25\textwidth}|P{0.36\textwidth}|P{0.22\textwidth}|"><row role="label"><cell>Type</cell><cell>Name</cell><cell>Description</cell><cell>Default</cell></row><row><cell/><cell><hi>pagebreakStyle</hi></cell><cell> Display of &lt;pb&gt; element [<code>string</code>]
	</cell><cell>visible</cell></row><row><cell/><cell><hi>displayMode</hi></cell><cell> How to display Relax NG schema fragments
    (rnc or rng) [<code>string</code>]
	</cell><cell>rnc</cell></row><row><cell/><cell><hi>minimalCrossRef</hi></cell><cell> Provide minimal context for a link [<code>boolean</code>]
	</cell><cell>false</cell></row><row><cell/><cell><hi>postQuote</hi></cell><cell> Character to insert at end of quote [<code>string</code>]
	</cell><cell>’</cell></row><row><cell/><cell><hi>preQuote</hi></cell><cell> Character to insert at start of quote [<code>string</code>]
	</cell><cell>‘</cell></row><row><cell>html</cell><cell><hi>urlMarkup</hi></cell><cell>
HTML element to put around visible text of display URLs
 [<code>string</code>]
	</cell><cell>span</cell></row><row><cell>fo</cell><cell><hi>activeLinebreaks</hi></cell><cell>
Make &lt;lb&gt; active (ie cause a line break)
 [<code>boolean</code>]
	</cell><cell>true</cell></row><row><cell>fo</cell><cell><hi>alignment</hi></cell><cell>
Alignment of text (ie justified or ragged)
 [<code>string</code>]
	</cell><cell>justify</cell></row><row><cell>fo</cell><cell><hi>authorSize</hi></cell><cell>
Font size for display of author name 
 [<code>string</code>]
	</cell><cell>14pt</cell></row><row><cell>fo</cell><cell><hi>biblSize</hi></cell><cell>
Font size for bibliography
 [<code>string</code>]
	</cell><cell>16pt</cell></row><row><cell>fo</cell><cell><hi>bodyFont</hi></cell><cell>
Default font for body
 [<code>string</code>]
	</cell><cell>Times</cell></row><row><cell>fo</cell><cell><hi>bodyMaster</hi></cell><cell>
Default font size for body (without dimension)
 [<code>string</code>]
	</cell><cell>10</cell></row><row><cell>fo</cell><cell><hi>bodySize</hi></cell><cell>
Calculation of normal body font size (add dimension)
 [<code>string</code>]
	</cell><cell><egXML xmlns="http://www.tei-c.org/ns/Examples">
    <xsl:value-of xmlns:xd="http://www.pnp-software.com/XSLTdoc" xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:tei="http://www.tei-c.org/ns/1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" select="$bodyMaster"/>
    <xsl:text xmlns:xd="http://www.pnp-software.com/XSLTdoc" xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:tei="http://www.tei-c.org/ns/1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">pt</xsl:text>
  </egXML></cell></row><row><cell>fo</cell><cell><hi>dateSize</hi></cell><cell>
Font size for display of date
 [<code>string</code>]
	</cell><cell>14pt</cell></row><row><cell>fo</cell><cell><hi>divFont</hi></cell><cell>
Font for section headings
 [<code>string</code>]
	</cell><cell>Times</cell></row><row><cell>fo</cell><cell><hi>exampleColor</hi></cell><cell>
Colour for display of &lt;eg&gt; blocks [<code>string</code>]
	</cell><cell>black</cell></row><row><cell>fo</cell><cell><hi>exampleBackgroundColor</hi></cell><cell>
Colour for background display of &lt;eg&gt; blocks [<code>string</code>]
	</cell><cell>gray</cell></row><row><cell>fo</cell><cell><hi>exampleSize</hi></cell><cell>
Calculation of font size for examples (add dimension)
 [<code>string</code>]
	</cell><cell><egXML xmlns="http://www.tei-c.org/ns/Examples">
    <xsl:value-of xmlns:xd="http://www.pnp-software.com/XSLTdoc" xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:tei="http://www.tei-c.org/ns/1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" select="$bodyMaster * 0.6"/>
    <xsl:text xmlns:xd="http://www.pnp-software.com/XSLTdoc" xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:tei="http://www.tei-c.org/ns/1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">pt</xsl:text>
  </egXML></cell></row><row><cell>fo</cell><cell><hi>footnoteSize</hi></cell><cell>
Font size for footnotes
 [<code>string</code>]
	</cell><cell>8pt</cell></row><row><cell>fo</cell><cell><hi>footnotenumSize</hi></cell><cell>
Font size for footnote numbers
 [<code>string</code>]
	</cell><cell>7pt</cell></row><row><cell>fo</cell><cell><hi>giColor</hi></cell><cell>
Colour for display of element names
 [<code>string</code>]
	</cell><cell>black</cell></row><row><cell>fo</cell><cell><hi>headingOutdent</hi></cell><cell>
Indentation of headings
 [<code>string</code>]
	</cell><cell>0em</cell></row><row><cell>fo</cell><cell><hi>hyphenate</hi></cell><cell>
Hyphenate text
 [<code>boolean</code>]
	</cell><cell>true</cell></row><row><cell>fo</cell><cell><hi>identColor</hi></cell><cell>
Colour for display of &lt;ident&gt; values
    Customization parameter [<code>string</code>]
	</cell><cell>black</cell></row><row><cell>fo</cell><cell><hi>runFont</hi></cell><cell>
Font family for running header and footer
 [<code>string</code>]
	</cell><cell>sans-serif</cell></row><row><cell>fo</cell><cell><hi>runSize</hi></cell><cell>
Font size for running header and footer
 [<code>string</code>]
	</cell><cell>9pt</cell></row><row><cell>fo</cell><cell><hi>sansFont</hi></cell><cell>
Sans-serif font
 [<code>string</code>]
	</cell><cell>Helvetica</cell></row><row><cell>fo</cell><cell><hi>smallSize</hi></cell><cell>
Calculation of small font size (add dimension)
 [<code>string</code>]
	</cell><cell><egXML xmlns="http://www.tei-c.org/ns/Examples">
    <xsl:value-of xmlns:xd="http://www.pnp-software.com/XSLTdoc" xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:tei="http://www.tei-c.org/ns/1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" select="$bodyMaster * 0.9"/>
    <xsl:text xmlns:xd="http://www.pnp-software.com/XSLTdoc" xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:tei="http://www.tei-c.org/ns/1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">pt</xsl:text>
  </egXML></cell></row><row><cell>fo</cell><cell><hi>tableSize</hi></cell><cell>
Create font size for tables, by reference to $bodyMaster
 [<code>string</code>]
	</cell><cell><egXML xmlns="http://www.tei-c.org/ns/Examples">
    <xsl:value-of xmlns:xd="http://www.pnp-software.com/XSLTdoc" xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:tei="http://www.tei-c.org/ns/1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" select="$bodyMaster * 0.9"/>
    <xsl:text xmlns:xd="http://www.pnp-software.com/XSLTdoc" xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:tei="http://www.tei-c.org/ns/1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">pt</xsl:text>
  </egXML></cell></row><row><cell>fo</cell><cell><hi>titleSize</hi></cell><cell>
Font size for display of title
 [<code>string</code>]
	</cell><cell>16pt</cell></row><row><cell>fo</cell><cell><hi>tocSize</hi></cell><cell>
Font size for TOC heading
 [<code>string</code>]
	</cell><cell>16pt</cell></row><row><cell>fo</cell><cell><hi>typewriterFont</hi></cell><cell>
Font for literal code
 [<code>string</code>]
	</cell><cell>Courier</cell></row></table></div><div><head>Templates</head><list type="gloss"/><list type="gloss"/><list type="gloss"><label><hi>divXRefHeading</hi></label><item>
	     (for fo)
	       How to display section headings in a cross-reference <egXML xmlns="http://www.tei-c.org/ns/Examples">
    <xsl:param xmlns:xd="http://www.pnp-software.com/XSLTdoc" xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:tei="http://www.tei-c.org/ns/1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" name="head">
      <xsl:apply-templates mode="section" select="tei:head"/>
    </xsl:param>
    <xsl:text xmlns:xd="http://www.pnp-software.com/XSLTdoc" xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:tei="http://www.tei-c.org/ns/1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> (</xsl:text>
    <xsl:value-of xmlns:xd="http://www.pnp-software.com/XSLTdoc" xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:tei="http://www.tei-c.org/ns/1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" select="normalize-space($head)"/>
    <xsl:text xmlns:xd="http://www.pnp-software.com/XSLTdoc" xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:tei="http://www.tei-c.org/ns/1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">)</xsl:text>
  </egXML></item><label><hi>linkStyle</hi></label><item>
	     (for fo)
	       Set attributes for display of links<egXML xmlns="http://www.tei-c.org/ns/Examples">
    <xsl:attribute xmlns:xd="http://www.pnp-software.com/XSLTdoc" xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:tei="http://www.tei-c.org/ns/1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" name="text-decoration">underline</xsl:attribute>
  </egXML></item><label><hi>setupDiv0</hi></label><item>
	     (for fo)
	       Set attributes for display of heading for chapters (level 0)<egXML xmlns="http://www.tei-c.org/ns/Examples">
    <xsl:attribute xmlns:xd="http://www.pnp-software.com/XSLTdoc" xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:tei="http://www.tei-c.org/ns/1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" name="font-size">18pt</xsl:attribute>
    <xsl:attribute xmlns:xd="http://www.pnp-software.com/XSLTdoc" xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:tei="http://www.tei-c.org/ns/1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" name="text-align">left</xsl:attribute>
    <xsl:attribute xmlns:xd="http://www.pnp-software.com/XSLTdoc" xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:tei="http://www.tei-c.org/ns/1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" name="font-weight">bold</xsl:attribute>
    <xsl:attribute xmlns:xd="http://www.pnp-software.com/XSLTdoc" xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:tei="http://www.tei-c.org/ns/1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" name="space-after">6pt</xsl:attribute>
    <xsl:attribute xmlns:xd="http://www.pnp-software.com/XSLTdoc" xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:tei="http://www.tei-c.org/ns/1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" name="space-before.optimum">12pt</xsl:attribute>
    <xsl:attribute xmlns:xd="http://www.pnp-software.com/XSLTdoc" xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:tei="http://www.tei-c.org/ns/1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" name="text-indent">
      <xsl:value-of select="$headingOutdent"/>
    </xsl:attribute>
  </egXML></item><label><hi>setupDiv1</hi></label><item>
	     (for fo)
	       Set attributes for display of heading for 1st level sections<egXML xmlns="http://www.tei-c.org/ns/Examples">
    <xsl:attribute xmlns:xd="http://www.pnp-software.com/XSLTdoc" xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:tei="http://www.tei-c.org/ns/1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" name="font-size">14pt</xsl:attribute>
    <xsl:attribute xmlns:xd="http://www.pnp-software.com/XSLTdoc" xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:tei="http://www.tei-c.org/ns/1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" name="text-align">left</xsl:attribute>
    <xsl:attribute xmlns:xd="http://www.pnp-software.com/XSLTdoc" xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:tei="http://www.tei-c.org/ns/1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" name="font-weight">bold</xsl:attribute>
    <xsl:attribute xmlns:xd="http://www.pnp-software.com/XSLTdoc" xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:tei="http://www.tei-c.org/ns/1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" name="space-after">3pt</xsl:attribute>
    <xsl:attribute xmlns:xd="http://www.pnp-software.com/XSLTdoc" xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:tei="http://www.tei-c.org/ns/1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" name="space-before.optimum">9pt</xsl:attribute>
    <xsl:attribute xmlns:xd="http://www.pnp-software.com/XSLTdoc" xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:tei="http://www.tei-c.org/ns/1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" name="text-indent">
      <xsl:value-of select="$headingOutdent"/>
    </xsl:attribute>
  </egXML></item><label><hi>setupDiv2</hi></label><item>
	     (for fo)
	       Set attributes for display of heading for 2nd level sections <egXML xmlns="http://www.tei-c.org/ns/Examples">
    <xsl:attribute xmlns:xd="http://www.pnp-software.com/XSLTdoc" xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:tei="http://www.tei-c.org/ns/1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" name="font-size">12pt</xsl:attribute>
    <xsl:attribute xmlns:xd="http://www.pnp-software.com/XSLTdoc" xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:tei="http://www.tei-c.org/ns/1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" name="text-align">left</xsl:attribute>
    <xsl:attribute xmlns:xd="http://www.pnp-software.com/XSLTdoc" xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:tei="http://www.tei-c.org/ns/1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" name="font-weight">bold</xsl:attribute>
    <xsl:attribute xmlns:xd="http://www.pnp-software.com/XSLTdoc" xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:tei="http://www.tei-c.org/ns/1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" name="font-style">italic</xsl:attribute>
    <xsl:attribute xmlns:xd="http://www.pnp-software.com/XSLTdoc" xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:tei="http://www.tei-c.org/ns/1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" name="space-after">2pt</xsl:attribute>
    <xsl:attribute xmlns:xd="http://www.pnp-software.com/XSLTdoc" xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:tei="http://www.tei-c.org/ns/1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" name="space-before.optimum">4pt</xsl:attribute>
    <xsl:attribute xmlns:xd="http://www.pnp-software.com/XSLTdoc" xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:tei="http://www.tei-c.org/ns/1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" name="text-indent">
      <xsl:value-of select="$headingOutdent"/>
    </xsl:attribute>
  </egXML></item><label><hi>setupDiv3</hi></label><item>
	     (for fo)
	      Set attributes for display of heading for 3rd level sections <egXML xmlns="http://www.tei-c.org/ns/Examples">
    <xsl:attribute xmlns:xd="http://www.pnp-software.com/XSLTdoc" xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:tei="http://www.tei-c.org/ns/1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" name="font-size">10pt</xsl:attribute>
    <xsl:attribute xmlns:xd="http://www.pnp-software.com/XSLTdoc" xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:tei="http://www.tei-c.org/ns/1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" name="text-align">left</xsl:attribute>
    <xsl:attribute xmlns:xd="http://www.pnp-software.com/XSLTdoc" xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:tei="http://www.tei-c.org/ns/1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" name="font-style">italic</xsl:attribute>
    <xsl:attribute xmlns:xd="http://www.pnp-software.com/XSLTdoc" xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:tei="http://www.tei-c.org/ns/1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" name="space-after">0pt</xsl:attribute>
    <xsl:attribute xmlns:xd="http://www.pnp-software.com/XSLTdoc" xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:tei="http://www.tei-c.org/ns/1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" name="space-before.optimum">4pt</xsl:attribute>
    <xsl:attribute xmlns:xd="http://www.pnp-software.com/XSLTdoc" xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:tei="http://www.tei-c.org/ns/1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" name="text-indent">
      <xsl:value-of select="$headingOutdent"/>
    </xsl:attribute>
  </egXML></item><label><hi>setupDiv4</hi></label><item>
	     (for fo)
	       Set attributes for display of heading for 4th level sections <egXML xmlns="http://www.tei-c.org/ns/Examples">
    <xsl:attribute xmlns:xd="http://www.pnp-software.com/XSLTdoc" xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:tei="http://www.tei-c.org/ns/1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" name="font-size">10pt</xsl:attribute>
    <xsl:attribute xmlns:xd="http://www.pnp-software.com/XSLTdoc" xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:tei="http://www.tei-c.org/ns/1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" name="text-align">left</xsl:attribute>
    <xsl:attribute xmlns:xd="http://www.pnp-software.com/XSLTdoc" xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:tei="http://www.tei-c.org/ns/1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" name="font-style">italic</xsl:attribute>
    <xsl:attribute xmlns:xd="http://www.pnp-software.com/XSLTdoc" xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:tei="http://www.tei-c.org/ns/1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" name="space-after">0pt</xsl:attribute>
    <xsl:attribute xmlns:xd="http://www.pnp-software.com/XSLTdoc" xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:tei="http://www.tei-c.org/ns/1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" name="space-before.optimum">4pt</xsl:attribute>
    <xsl:attribute xmlns:xd="http://www.pnp-software.com/XSLTdoc" xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:tei="http://www.tei-c.org/ns/1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" name="text-indent">
      <xsl:value-of select="$headingOutdent"/>
    </xsl:attribute>
  </egXML></item><label><hi>setupDiv5</hi></label><item>
	     (for fo)
	       Set attributes for display of heading for 5th level sections <egXML xmlns="http://www.tei-c.org/ns/Examples">
    <xsl:attribute xmlns:xd="http://www.pnp-software.com/XSLTdoc" xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:tei="http://www.tei-c.org/ns/1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" name="font-size">10pt</xsl:attribute>
    <xsl:attribute xmlns:xd="http://www.pnp-software.com/XSLTdoc" xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:tei="http://www.tei-c.org/ns/1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" name="text-align">left</xsl:attribute>
    <xsl:attribute xmlns:xd="http://www.pnp-software.com/XSLTdoc" xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:tei="http://www.tei-c.org/ns/1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" name="font-style">italic</xsl:attribute>
    <xsl:attribute xmlns:xd="http://www.pnp-software.com/XSLTdoc" xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:tei="http://www.tei-c.org/ns/1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" name="space-after">0pt</xsl:attribute>
    <xsl:attribute xmlns:xd="http://www.pnp-software.com/XSLTdoc" xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:tei="http://www.tei-c.org/ns/1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" name="space-before.optimum">4pt</xsl:attribute>
    <xsl:attribute xmlns:xd="http://www.pnp-software.com/XSLTdoc" xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:tei="http://www.tei-c.org/ns/1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" name="text-indent">
      <xsl:value-of select="$headingOutdent"/>
    </xsl:attribute>
  </egXML></item><label><hi>setupDiv6</hi></label><item>
	     (for fo)
	       Set attributes for display of heading for 6th level sections <egXML xmlns="http://www.tei-c.org/ns/Examples">
    <xsl:attribute xmlns:xd="http://www.pnp-software.com/XSLTdoc" xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:tei="http://www.tei-c.org/ns/1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" name="font-size">10pt</xsl:attribute>
    <xsl:attribute xmlns:xd="http://www.pnp-software.com/XSLTdoc" xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:tei="http://www.tei-c.org/ns/1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" name="text-align">left</xsl:attribute>
    <xsl:attribute xmlns:xd="http://www.pnp-software.com/XSLTdoc" xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:tei="http://www.tei-c.org/ns/1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" name="font-style">italic</xsl:attribute>
    <xsl:attribute xmlns:xd="http://www.pnp-software.com/XSLTdoc" xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:tei="http://www.tei-c.org/ns/1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" name="space-after">0pt</xsl:attribute>
    <xsl:attribute xmlns:xd="http://www.pnp-software.com/XSLTdoc" xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:tei="http://www.tei-c.org/ns/1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" name="space-before.optimum">4pt</xsl:attribute>
    <xsl:attribute xmlns:xd="http://www.pnp-software.com/XSLTdoc" xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:tei="http://www.tei-c.org/ns/1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" name="text-indent">
      <xsl:value-of select="$headingOutdent"/>
    </xsl:attribute>
  </egXML></item><label><hi>showXrefURL</hi></label><item>
	     (for fo)
	       How to display the link text of a &lt;ptr&gt;<egXML xmlns="http://www.tei-c.org/ns/Examples">
    <xsl:param xmlns:xd="http://www.pnp-software.com/XSLTdoc" xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:tei="http://www.tei-c.org/ns/1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" name="dest"/>
    <xsl:value-of xmlns:xd="http://www.pnp-software.com/XSLTdoc" xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:tei="http://www.tei-c.org/ns/1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" select="$dest"/>
  </egXML></item></list></div></div>

<div xml:id="hook">
<head>Hooks</head>
<p>A set of templates which are empty by default; they can be used
to add code at strategic points. The content must be valid XSLT.</p>
<div><head>Variables</head><table rend="rules" preamble="P{0.1\textwidth}|P{0.25\textwidth}|P{0.36\textwidth}|P{0.22\textwidth}|"><row role="label"><cell>Type</cell><cell>Name</cell><cell>Description</cell><cell>Default</cell></row></table></div><div><head>Templates</head><list type="gloss"><label><hi>sectionHeadHook</hi></label><item>
	     (for common)
	       Hook where actions can be inserted when making
     a heading</item></list><list type="gloss"><label><hi>bodyHook</hi></label><item>
	     (for html)
	       Hook where HTML can be inserted just after &lt;body&gt;</item><label><hi>bodyEndHook</hi></label><item>
	     (for html)
	       Hook where HTML can be inserted just before the
    &lt;body&gt; ends.</item><label><hi>bodyJavascriptHook</hi></label><item>
	     (for html)
	       Hook where Javascript calls can be inserted  just after &lt;body&gt;</item><label><hi>cssHook</hi></label><item>
	     (for html)
	       Hook where extra CSS can be inserted</item><label><hi>headHook</hi></label><item>
	     (for html)
	       Hook where code can be added to the HTML &lt;head&gt;.</item><label><hi>imgHook</hi></label><item>
	     (for html)
	       Hook where HTML can be inserted when creating an &lt;img&gt;</item><label><hi>figureHook</hi></label><item>
	     (for html)
	       Hook where HTML can be inserted when processing a
    figure</item><label><hi>javascriptHook</hi></label><item>
	     (for html)
	       Hook where extra Javascript functions can be defined</item><label><hi>preAddressHook</hi></label><item>
	     (for html)
	       Hook where HTML can be inserted just before the &lt;address&gt;</item><label><hi>startDivHook</hi></label><item>
	     (for html)
	       Hook where HTML can be inserted at the start of
    processing each section</item><label><hi>startHook</hi></label><item>
	     (for html)
	       Hook where HTML can be inserted at the beginning
    of the main text, after the header</item><label><hi>teiEndHook</hi></label><item>
	     (for html)
	       Hook where HTML can be inserted after processing &lt;TEI&gt;</item><label><hi>teiStartHook</hi></label><item>
	     (for html)
	       Hook where HTML can be inserted before processing &lt;TEI&gt;</item><label><hi>xrefHook</hi></label><item>
	     (for html)
	       Hook where HTML can be inserted when creating an
    &lt;a&gt; element</item><label><hi>egXMLStartHook</hi></label><item>
	     (for html)
	       Hooks where HTML can be inserted when processing
    &lt;egXML&gt; element</item></list><list type="gloss"><label><hi>afterBodyHook</hi></label><item>
	     (for fo)
	       Hook where extra material can be inserted after the
    &lt;body&gt; has been processed</item><label><hi>blockStartHook</hi></label><item>
	     (for fo)
	       Hook where work can be done at the start of each block</item><label><hi>pageMasterHook</hi></label><item>
	     (for fo)
	       Hook where extra page masters can be defined</item></list><list type="gloss"><label><hi>beginDocumentHook</hi></label><item>
	     (for latex)
	       Hook where LaTeX commands can be inserted after 
the beginning of the document</item><label><hi>latexPreambleHook</hi></label><item>
	     (for latex)
	       Hook where LaTeX commands can be inserted in the
    preamble before the beginning of the document</item></list></div></div>


<div xml:id="misc">
<head>Miscellaneous and advanced</head>
<p>Finally, some miscellaneous or advanced features which you probably won't
use much.</p>
<div><head>Variables</head><table rend="rules" preamble="P{0.1\textwidth}|P{0.25\textwidth}|P{0.36\textwidth}|P{0.22\textwidth}|"><row role="label"><cell>Type</cell><cell>Name</cell><cell>Description</cell><cell>Default</cell></row><row><cell/><cell><hi>teixslHome</hi></cell><cell> The home page for these stylesheets [<code>anyURI</code>]
	</cell><cell>http://www.tei-c.org/Stylesheets/teic/</cell></row><row><cell/><cell><hi>teiP4Compat</hi></cell><cell> Process elements according to assumptions
    of TEI P4 [<code>boolean</code>]
	</cell><cell>false</cell></row><row><cell/><cell><hi>useHeaderFrontMatter</hi></cell><cell> Title, author and date is taken from the
    &lt;teiHeader&gt; rather than looked for in the front matter [<code>boolean</code>]
	</cell><cell>false</cell></row><row><cell>html</cell><cell><hi>generateParagraphIDs</hi></cell><cell>
Generate a unique ID for all paragraphs
 [<code>boolean</code>]
	</cell><cell>true</cell></row><row><cell>html</cell><cell><hi>rendSeparator</hi></cell><cell>Character separating values in a rend attribute. [<code>string</code>]
	</cell><cell>;</cell></row><row><cell>html</cell><cell><hi>showTitleAuthor</hi></cell><cell>
Show a title and author at start of document
 [<code>boolean</code>]
	</cell><cell>false</cell></row><row><cell>html</cell><cell><hi>verbose</hi></cell><cell>
Be talkative while working [<code>boolean</code>]
	</cell><cell>false</cell></row></table></div><div><head>Templates</head><list type="gloss"/><list type="gloss"/></div></div>
</body>
</text>
</TEI>
