Statistics
| Revision:

root / tmp / org.txm.core / res / org / txm / xml / xsl / tei / xhtml2 / tei-param.xsl @ 187

History | View | Annotate | Download (31.2 kB)

1
<?xml version="1.0" encoding="utf-8"?>
2
<xsl:stylesheet xmlns="http://www.w3.org/1999/xhtml"                 
3
    xmlns:html="http://www.w3.org/1999/xhtml"                
4
    xmlns:xs="http://www.w3.org/2001/XMLSchema"                
5
    xmlns:tei="http://www.tei-c.org/ns/1.0"
6
    xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
7
    exclude-result-prefixes="tei html xs"
8
    version="2.0">
9
  <doc xmlns="http://www.oxygenxml.com/ns/doc/xsl" scope="stylesheet" type="stylesheet">
10
      <desc>     <p>
11
    TEI stylesheet customization module for HTML output.</p>
12
         <p>This software is dual-licensed:
13

    
14
1. Distributed under a Creative Commons Attribution-ShareAlike 3.0
15
Unported License http://creativecommons.org/licenses/by-sa/3.0/ 
16

    
17
2. http://www.opensource.org/licenses/BSD-2-Clause
18
		
19
All rights reserved.
20

    
21
Redistribution and use in source and binary forms, with or without
22
modification, are permitted provided that the following conditions are
23
met:
24

    
25
* Redistributions of source code must retain the above copyright
26
notice, this list of conditions and the following disclaimer.
27

    
28
* Redistributions in binary form must reproduce the above copyright
29
notice, this list of conditions and the following disclaimer in the
30
documentation and/or other materials provided with the distribution.
31

    
32
This software is provided by the copyright holders and contributors
33
"as is" and any express or implied warranties, including, but not
34
limited to, the implied warranties of merchantability and fitness for
35
a particular purpose are disclaimed. In no event shall the copyright
36
holder or contributors be liable for any direct, indirect, incidental,
37
special, exemplary, or consequential damages (including, but not
38
limited to, procurement of substitute goods or services; loss of use,
39
data, or profits; or business interruption) however caused and on any
40
theory of liability, whether in contract, strict liability, or tort
41
(including negligence or otherwise) arising in any way out of the use
42
of this software, even if advised of the possibility of such damage.
43
</p>
44
         <p>Author: See AUTHORS</p>
45
         <p>Id: $Id: tei-param.xsl 10057 2012-01-21 16:57:14Z rahtz $</p>
46
         <p>Copyright: 2011, TEI Consortium</p>
47
      </desc>
48
   </doc>
49
  <xsl:key name="INDEX" use="1" match="tei:index"/>
50
  <xsl:key name="PB" match="tei:pb" use="1"/>
51
  <xsl:key name="NOTES" use="1"
52
	   match="tei:note[@place='foot' or @place='bottom' or @place='end'
53
		  and not(parent::tei:bibl or ancestor::tei:teiHeader)]"/>
54
  <xsl:key name="ALLNOTES" use="1"
55
	   match="tei:note[not(@place='margin' or @place='inline' or @place='display')
56
		  and not(parent::tei:bibl or  ancestor::tei:teiHeader)]"/>
57

    
58
  <xsl:key name="TAGREND" match="tei:tagUsage[@render]" use="@gi"/>
59

    
60
  <doc xmlns="http://www.oxygenxml.com/ns/doc/xsl" class="CSS" type="string">
61
    <desc>  CSS class for links derived from &lt;ptr&gt;    </desc>
62
  </doc>
63
  <xsl:param name="class_ptr">ptr</xsl:param>
64
  <doc xmlns="http://www.oxygenxml.com/ns/doc/xsl" class="CSS" type="string">
65
      <desc>CSS class for links derived from &lt;ref&gt;</desc>
66

    
67
   </doc>
68
  <xsl:param name="class_ref">ref</xsl:param>
69

    
70
  <doc xmlns="http://www.oxygenxml.com/ns/doc/xsl" class="layout" type="boolean">
71
      <desc>Whether we should construct a separate file for each page
72
      (based on page breaks)</desc>
73
   </doc>
74
  <xsl:param name="filePerPage">false</xsl:param>
75
  <doc xmlns="http://www.oxygenxml.com/ns/doc/xsl" class="layout" type="number">
76
      <desc>When making fixed format epub, width of viewport</desc>
77
  </doc>
78
  <xsl:param name="viewPortWidth">1200</xsl:param>
79
  <doc xmlns="http://www.oxygenxml.com/ns/doc/xsl" class="layout" type="number">
80
      <desc>When making fixed format epub, height of viewport</desc>
81
  </doc>
82
  <xsl:param name="viewPortHeight">1700</xsl:param>
83

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

    
89
  <doc xmlns="http://www.oxygenxml.com/ns/doc/xsl" class="layout" type="boolean">
90
      <desc>Link back from footnotes to reference</desc>
91

    
92
   </doc>
93
  <xsl:param name="footnoteBackLink">false</xsl:param>
94

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

    
99
   </doc>
100
  <xsl:param name="cssFileInclude">false</xsl:param>
101

    
102
  <doc xmlns="http://www.oxygenxml.com/ns/doc/xsl" class="CSS" type="anyURI">
103
      <desc>CSS style file to be associated with output file(s)</desc>
104

    
105
   </doc>
106
  <xsl:param name="cssFile" as="xs:string">http://www.tei-c.org/release/xml/tei/stylesheet/tei.css</xsl:param>
107
  <doc xmlns="http://www.oxygenxml.com/ns/doc/xsl" class="CSS" type="anyURI">
108
      <desc>CSS style file for print; this will be given a media=print attribute.
109
    </desc>
110
   </doc>
111
  <xsl:param name="cssPrintFile" as="xs:string">http://www.tei-c.org/release/xml/tei/stylesheet/tei-print.css</xsl:param>
112
  <doc xmlns="http://www.oxygenxml.com/ns/doc/xsl" class="CSS" type="anyURI">
113
      <desc>Secondary CSS style file; this will be given a media=screen attribute,
114
so that it does not affect printing. It should be used for screen layout.
115
  </desc>
116
   </doc>
117
    <xsl:param name="cssSecondaryFile"  as="xs:string" select="''"/>
118
  <doc xmlns="http://www.oxygenxml.com/ns/doc/xsl" class="CSS" type="anyURI">
119
      <desc>CSS file to include in the output file directly</desc>
120
   </doc>
121
    <xsl:param name="cssInlineFile"  as="xs:string" select="''"/>
122
  <doc xmlns="http://www.oxygenxml.com/ns/doc/xsl" class="figures" type="integer">
123
      <desc>Resolution of images. This is needed to calculate
124
HTML width and height (in pixels) from supplied dimensions.</desc>
125

    
126
   </doc>
127
  <xsl:param name="dpi">96</xsl:param>
128
  <doc xmlns="http://www.oxygenxml.com/ns/doc/xsl" class="figures" type="boolean">
129
      <desc>Display figures.</desc>
130

    
131
   </doc>
132
  <xsl:param name="showFigures">true</xsl:param>
133
  <doc xmlns="http://www.oxygenxml.com/ns/doc/xsl" class="hook">
134
      <desc>[html] Hook where HTML can be inserted just after &lt;body&gt;</desc>
135
   </doc>
136
  <xsl:template name="bodyHook"/>
137
  <doc xmlns="http://www.oxygenxml.com/ns/doc/xsl" class="hook">
138
      <desc>     <p>[html] Hook where HTML can be inserted just before the
139
    &lt;body&gt; ends.</p>
140
         <p>This can be used to add a page-wide footer block.</p>
141
      </desc>
142
   </doc>
143
  <xsl:template name="bodyEndHook"/>
144
  <doc xmlns="http://www.oxygenxml.com/ns/doc/xsl" class="hook">
145
      <desc>[html] Hook where Javascript calls can be inserted  just after &lt;body&gt;</desc>
146
   </doc>
147
  <xsl:template name="bodyJavascriptHook"/>
148
  <doc xmlns="http://www.oxygenxml.com/ns/doc/xsl" class="hook">
149
      <desc>     <p>[html] Hook where extra CSS can be inserted</p>
150
         <p>&#160; </p>
151
      </desc>
152
   </doc>
153
  <xsl:template name="cssHook"/>
154
  <doc xmlns="http://www.oxygenxml.com/ns/doc/xsl" class="hook">
155
      <desc>     <p>[html] Hook where code can be added to the HTML &lt;head&gt;.</p>
156
         <p>This would be used to insert &lt;meta&gt; tags.</p>
157
      </desc>
158
   </doc>
159
  <xsl:template name="headHook"/>
160
  <doc xmlns="http://www.oxygenxml.com/ns/doc/xsl" class="hook">
161
      <desc>[html] Hook where HTML can be inserted when creating an &lt;img&gt;</desc>
162
   </doc>
163
  <xsl:template name="imgHook"/>
164
  <doc xmlns="http://www.oxygenxml.com/ns/doc/xsl" class="hook">
165
      <desc>[html] Hook where HTML can be inserted when processing a
166
    figure</desc>
167
   </doc>
168
  <xsl:template name="figureHook"/>
169
  <doc xmlns="http://www.oxygenxml.com/ns/doc/xsl" class="hook">
170
      <desc>[html] Hook where extra Javascript functions can be defined</desc>
171
   </doc>
172
  <xsl:template name="javascriptHook"/>
173
  <doc xmlns="http://www.oxygenxml.com/ns/doc/xsl" class="hook">
174
      <desc>[html] Hook where HTML can be inserted just before the &lt;address&gt;</desc>
175
   </doc>
176
  <xsl:template name="preAddressHook"/>
177
  <doc xmlns="http://www.oxygenxml.com/ns/doc/xsl" class="hook">
178
      <desc>[html] Hook where HTML can be inserted at the start of
179
    processing each section</desc>
180
   </doc>
181
  <xsl:template name="startDivHook"/>
182
  <doc xmlns="http://www.oxygenxml.com/ns/doc/xsl" class="hook">
183
      <desc>[html] Hook where HTML can be inserted at the beginning
184
    of the main text, after the header</desc>
185
   </doc>
186
  <xsl:template name="startHook"/>
187
  <doc xmlns="http://www.oxygenxml.com/ns/doc/xsl" class="hook">
188
      <desc>[html] Hook where HTML can be inserted after processing &lt;TEI&gt;</desc>
189
   </doc>
190
  <xsl:template name="teiEndHook"/>
191
  <doc xmlns="http://www.oxygenxml.com/ns/doc/xsl" class="hook">
192
      <desc>[html] Hook where HTML can be inserted before processing &lt;TEI&gt;</desc>
193
   </doc>
194
  <xsl:template name="teiStartHook"/>
195
  <doc xmlns="http://www.oxygenxml.com/ns/doc/xsl" class="hook">
196
      <desc>[html] Hook where HTML can be inserted when creating an
197
    &lt;a&gt; element</desc>
198
   </doc>
199
  <xsl:template name="xrefHook"/>
200

    
201
  <doc xmlns="http://www.oxygenxml.com/ns/doc/xsl" class="i18n">
202
      <desc>[html] Make a copyright claim</desc>
203
   </doc>
204
  <xsl:template name="copyrightStatement">This page is copyrighted</xsl:template>
205
  <doc xmlns="http://www.oxygenxml.com/ns/doc/xsl" class="layout">
206
      <desc>[html] Banner for top of column</desc>
207
   </doc>
208
  <xsl:template name="columnHeader">
209
</xsl:template>
210
  <doc xmlns="http://www.oxygenxml.com/ns/doc/xsl" class="layout" type="string">
211
      <desc>     <p>How to use the front/body/back matter in creating
212
columns.</p>
213
         <p>
214
	   The choice is between
215
	   <ul xmlns="http://www.w3.org/1999/xhtml">
216
	     <li>
217
	       <b>all</b>: use &lt;front&gt; for left-hand column,
218
	       use &lt;body&gt; for centre column, and use &lt;back&gt; for
219
	     right-hand column</li>
220
	     <li>
221
	       <b>body</b>: use &lt;body&gt; for right-hand column,
222
	     generate left-hand with a TOC or whatever</li>
223
	   </ul>
224
         </p>
225
      </desc>
226
  </doc>
227
  <xsl:param name="contentStructure">body</xsl:param>
228
  <doc xmlns="http://www.oxygenxml.com/ns/doc/xsl" class="layout" type="integer">
229
      <desc>     <p>The difference between TEI div levels and HTML.
230
headings.</p>
231
         <p>TEI &lt;div&gt;s are implicitly or explicitly numbered from 0
232
upwards; this offset is added to that number to produce an HTML
233
&lt;Hn&gt; element. So a value of 2 here means that a &lt;div1&gt;
234
will generate an &lt;h2&gt;</p>
235
      </desc>
236
   </doc>
237
  <xsl:param name="divOffset">2</xsl:param>
238
  <doc xmlns="http://www.oxygenxml.com/ns/doc/xsl" class="layout" type="boolean">
239
      <desc>Make a separate file for footnotes</desc>
240

    
241
   </doc>
242
  <xsl:param name="footnoteFile">false</xsl:param>
243
  <doc xmlns="http://www.oxygenxml.com/ns/doc/xsl" class="layout">
244
      <desc>[html] Header section across top of page </desc>
245
   </doc>
246
  <xsl:template name="hdr">
247
      <xsl:call-template name="pageHeader">
248
         <xsl:with-param name="mode"/>
249
      </xsl:call-template>
250
  </xsl:template>
251
  <doc xmlns="http://www.oxygenxml.com/ns/doc/xsl" class="layout">
252
      <desc>[html] Navigation bar </desc>
253
   </doc>
254
  <xsl:template name="hdr2">
255
      <xsl:call-template name="navbar"/>
256
  </xsl:template>
257
  <doc xmlns="http://www.oxygenxml.com/ns/doc/xsl" class="layout">
258
      <desc>[html] Text or action to take at the start of the
259
    breadcrumb trail </desc>
260
   </doc>
261
  <xsl:template name="preBreadCrumbPath"/>
262
  <doc xmlns="http://www.oxygenxml.com/ns/doc/xsl" class="layout">
263
      <desc>[html] Breadcrumb trail </desc>
264
   </doc>
265
  <xsl:template name="hdr3">
266
      <a href="#rh-col" title="Go to main page content" class="skiplinks">Skip links</a>
267
      <a class="hide">|</a>
268
      <xsl:call-template name="crumbPath"/>
269
      <a class="hide">|</a>
270
      <a class="bannerright" href="{$parentURL}" title="Go to home page">
271
         <xsl:value-of select="$parentWords"/>
272
      </a>
273
  </xsl:template>
274
  <doc xmlns="http://www.oxygenxml.com/ns/doc/xsl" class="layout">
275
      <desc>[html]Bottom of left-hand column<param name="currentID">ID of selected section</param>
276
      </desc>
277
   </doc>
278
  <xsl:template name="lh-col-bottom">
279
      <xsl:param name="currentID"/>
280
      <xsl:call-template name="leftHandFrame">
281
         <xsl:with-param name="currentID" select="$currentID"/>
282
      </xsl:call-template>
283
  </xsl:template>
284
  <doc xmlns="http://www.oxygenxml.com/ns/doc/xsl" class="layout">
285
      <desc>[html]Top of left-hand column </desc>
286
   </doc>
287
  <xsl:template name="lh-col-top">
288
      <xsl:call-template name="searchbox"/>
289
      <xsl:call-template name="printLink"/>
290
  </xsl:template>
291
  <doc xmlns="http://www.oxygenxml.com/ns/doc/xsl" class="layout" type="string">
292
      <desc>Width of left-hand column when $pageLayout is "Table"</desc>
293

    
294
   </doc>
295
  <xsl:param name="linksWidth">15%</xsl:param>
296
  <doc xmlns="http://www.oxygenxml.com/ns/doc/xsl" class="layout">
297
      <desc>[html] Logo</desc>
298
   </doc>
299
  <xsl:template name="logoPicture">
300
      <a class="framelogo" href="http://www.tei-c.org/Stylesheets/">
301
         <img src="http://www.tei-c.org/release/common2/doc/tei-xsl-common/teixsl.png" vspace="5" width="124"
302
              height="161"
303
              border="0"
304
              alt="created by TEI XSL Stylesheets"/>
305
      </a>
306
  </xsl:template>
307
  <doc xmlns="http://www.oxygenxml.com/ns/doc/xsl" class="layout">
308
      <desc>[html] Making elements in HTML &lt;head&gt;<param name="title">The text used to create the DC.Title field
309
    in the HTML header</param>
310
      </desc>
311
   </doc>
312
  <xsl:template name="metaHTML">
313
      <xsl:param name="title"/>
314
      <meta name="author">
315
         <xsl:attribute name="content">
316
            <xsl:call-template name="generateAuthor"/>
317
         </xsl:attribute>
318
      </meta>
319
      <xsl:if test="$filePerPage='true'">
320
	<meta name="viewport" content="width={$viewPortWidth}, height={$viewPortHeight}"/>
321
      </xsl:if>
322
      <meta name="generator" content="Text Encoding Initiative Consortium XSLT stylesheets"/>
323
      <xsl:choose>
324
	<xsl:when test="$outputTarget='html5' or $outputTarget='epub3'">
325
	  <meta charset="utf-8" />
326
	</xsl:when>
327
	<xsl:otherwise>
328
	  <meta http-equiv="Content-Type" content="text/html; charset={$outputEncoding}"/>
329
	  <meta name="DC.Title">
330
	    <xsl:attribute name="content">
331
	      <xsl:value-of select="normalize-space(translate($title,'&lt;&gt;','&#x2329;&#x3009;'))"/>
332
	    </xsl:attribute>
333
	  </meta>
334
	  <meta name="DC.Type" content="Text"/>
335
	  <meta name="DC.Format" content="text/html"/>
336
	</xsl:otherwise>
337
      </xsl:choose>
338
  </xsl:template>
339

    
340
	<doc xmlns="http://www.oxygenxml.com/ns/doc/xsl" class="layout">
341
      <desc>     <p>[html] Construction of navigation bar </p>
342
         <p>A file is looked for relative to the <i xmlns="http://www.w3.org/1999/xhtml">stylesheet</i> (the
343
    second parameter of the document function), which is expected to
344
    contain a TEI &lt;list&gt; where each &lt;item&gt; has an embedded
345
    &lt;xref&gt;</p>
346
      </desc>
347
   </doc>
348
  <xsl:template name="navbar">
349
    <xsl:choose>
350
      <xsl:when test="$navbarFile=''">
351
	<xsl:comment>no nav bar</xsl:comment>
352
      </xsl:when>
353
      <xsl:otherwise>
354
	<xsl:element name="{if ($outputTarget='html5') then 'nav' else 'div'}">
355
	  <xsl:for-each select="document($navbarFile,document(''))">
356
	    <xsl:for-each select="tei:list/tei:item">
357
	      <span class="navbar">
358
		<a href="{$URLPREFIX}{tei:xref/@url}" class="navbar">
359
		  <xsl:apply-templates select="tei:xref/text()"/>
360
		</a>
361
	      </span>
362
	      <xsl:if test="following-sibling::tei:item"> | </xsl:if>
363
	    </xsl:for-each>
364
	  </xsl:for-each>
365
	</xsl:element>
366
      </xsl:otherwise>
367
    </xsl:choose>
368
  </xsl:template>
369
  <doc xmlns="http://www.oxygenxml.com/ns/doc/xsl" class="layout" type="anyURI">
370
      <desc>     <p>XML resource defining a navigation bar.</p>
371
         <p>The XML should provide a &lt;list&gt; containing a series
372
of &lt;item&gt; elements, each containing an &lt;xref&gt; link.</p>
373
      </desc>
374
   </doc>
375
  <xsl:param name="navbarFile"/>
376
  <doc xmlns="http://www.oxygenxml.com/ns/doc/xsl" class="layout">
377
      <desc>[html] Banner for top of page<param name="mode">layout mode</param>
378
      </desc>
379
   </doc>
380
  <xsl:template name="pageHeader">
381
      <xsl:param name="mode"/>
382
      <xsl:choose>
383
         <xsl:when test="$mode='table'">
384
            <table width="100%" border="0">
385
               <tr>
386
                  <td height="98" class="bgimage" onclick="window.location='{$homeURL}'"
387
                      cellpadding="0">
388

    
389
	                    <xsl:call-template name="makeHTMLHeading">
390
		                      <xsl:with-param name="class">subtitle</xsl:with-param>
391
		                      <xsl:with-param name="text">
392
		                         <xsl:call-template name="generateSubTitle"/>
393
		                      </xsl:with-param>
394
		                      <xsl:with-param name="level">2</xsl:with-param>
395
	                    </xsl:call-template>
396

    
397
	                    <xsl:call-template name="makeHTMLHeading">
398
		                      <xsl:with-param name="class">title</xsl:with-param>
399
		                      <xsl:with-param name="text">
400
		                         <xsl:call-template name="generateTitle"/>
401
		                      </xsl:with-param>
402
		                      <xsl:with-param name="level">1</xsl:with-param>
403
	                    </xsl:call-template>
404

    
405
                  </td>
406
                  <td style="vertical-align:top;"/>
407
               </tr>
408
            </table>
409
         </xsl:when>
410
         <xsl:otherwise>
411
	           <xsl:call-template name="makeHTMLHeading">
412
	              <xsl:with-param name="class">subtitle</xsl:with-param>
413
	              <xsl:with-param name="text">
414
	                 <xsl:call-template name="generateSubTitle"/>
415
	              </xsl:with-param>
416
	              <xsl:with-param name="level">2</xsl:with-param>
417
	           </xsl:call-template>
418
	
419
	           <xsl:call-template name="makeHTMLHeading">
420
	              <xsl:with-param name="class">title</xsl:with-param>
421
	              <xsl:with-param name="text">
422
	                 <xsl:call-template name="generateTitle"/>
423
	              </xsl:with-param>
424
	              <xsl:with-param name="level">1</xsl:with-param>
425
	           </xsl:call-template>
426
         </xsl:otherwise>
427
      </xsl:choose>
428
  </xsl:template>
429

    
430
  <doc xmlns="http://www.oxygenxml.com/ns/doc/xsl">
431
      <desc>[html] Make a heading, if there some text to display<param name="text">Heading title</param>
432
         <param name="class">CSS class</param>
433
         <param name="level">Heading level</param>
434
      </desc>
435
   </doc>
436
  <xsl:template name="makeHTMLHeading">
437
      <xsl:param name="text"/>
438
      <xsl:param name="class">title</xsl:param>
439
      <xsl:param name="level">1</xsl:param>
440
      <xsl:if test="not($text='')">
441
	<xsl:choose>
442
	<xsl:when test="$level &gt; 6">
443
	  <div class="h{$level}">
444
            <xsl:copy-of select="$text"/>
445
	  </div>
446
	</xsl:when>
447
	<xsl:otherwise>
448
         <xsl:element name="h{$level}">
449
	   <xsl:attribute name="class">
450
	     <xsl:value-of select="$class"/>
451
	   </xsl:attribute>
452
	   <xsl:copy-of select="$text"/>
453
         </xsl:element>
454
	</xsl:otherwise>
455
	</xsl:choose>
456
      </xsl:if>
457
  </xsl:template>
458

    
459
  <doc xmlns="http://www.oxygenxml.com/ns/doc/xsl">
460
      <desc>[html] Make a link saying how to get printable version
461
    of file</desc>
462
   </doc>
463
  <xsl:template name="printLink"/>
464
  <doc xmlns="http://www.oxygenxml.com/ns/doc/xsl" class="layout">
465
      <desc>[html] Bottom of right-hand column<param name="currentID">ID of selected section</param>
466
      </desc>
467
   </doc>
468
  <xsl:template name="rh-col-bottom">
469
      <xsl:param name="currentID"/>
470
      <xsl:call-template name="mainFrame">
471
         <xsl:with-param name="currentID" select="$currentID"/>
472
      </xsl:call-template>
473
  </xsl:template>
474
  <doc xmlns="http://www.oxygenxml.com/ns/doc/xsl" class="layout">
475
      <desc>[html] Top of right-hand column</desc>
476
   </doc>
477
  <xsl:template name="rh-col-top">
478
      <xsl:call-template name="columnHeader"/>
479
  </xsl:template>
480
  <doc xmlns="http://www.oxygenxml.com/ns/doc/xsl" class="layout">
481
      <desc>[html] Make a search box</desc>
482
   </doc>
483
  <xsl:template name="searchbox"/>
484
  <doc xmlns="http://www.oxygenxml.com/ns/doc/xsl" class="layout">
485
      <desc>[html] Construct a label for the link which makes a
486
    printable version of the document.</desc>
487
   </doc>
488
  <xsl:template name="singleFileLabel">For Printing</xsl:template>
489
  <doc xmlns="http://www.oxygenxml.com/ns/doc/xsl" class="links" type="string">
490
      <desc>How to align the navigation panel at the bottom of the page</desc>
491

    
492
   </doc>
493
  <xsl:param name="alignNavigationPanel">right</xsl:param>
494
  <doc xmlns="http://www.oxygenxml.com/ns/doc/xsl" class="links" type="boolean">
495
      <desc>Display navigation panel at bottom of pages</desc>
496

    
497
   </doc>
498
  <xsl:param name="bottomNavigationPanel">true</xsl:param>
499
  <doc xmlns="http://www.oxygenxml.com/ns/doc/xsl" class="links" type="anyURI">
500
      <desc>Link for feedback</desc>
501

    
502
   </doc>
503
  <xsl:param name="feedbackURL">mailto:feedback</xsl:param>
504
  <doc xmlns="http://www.oxygenxml.com/ns/doc/xsl" class="links" type="string">
505
      <desc>Fixed string to insert before normal page title in HTML meta
506
&lt;title&gt; element</desc>
507

    
508
   </doc>
509
  <xsl:param name="htmlTitlePrefix"/>
510
  <doc xmlns="http://www.oxygenxml.com/ns/doc/xsl" class="links" type="boolean">
511
      <desc>Make a panel with next page/previous page links.</desc>
512

    
513
   </doc>
514
  <xsl:param name="linkPanel">true</xsl:param>
515
  <doc xmlns="http://www.oxygenxml.com/ns/doc/xsl" class="misc" type="boolean">
516
      <desc>Generate a unique ID for all paragraphs</desc>
517

    
518
   </doc>
519
  <xsl:param name="generateParagraphIDs">false</xsl:param>
520
  <doc xmlns="http://www.oxygenxml.com/ns/doc/xsl" class="misc" type="string">
521
      <desc>     <p>Character separating values in a rend attribute.</p>
522
         <p>Some projects use multiple values in <tt
523
         xmlns="http://www.w3.org/1999/xhtml">rend</tt>
524
         attributes. These are handled, but the separator character(s)
525
         must be specified.</p>
526
      </desc>
527
   </doc>
528
  <xsl:param name="rendSeparator">; </xsl:param>
529
  <doc xmlns="http://www.oxygenxml.com/ns/doc/xsl" class="misc" type="boolean">
530
      <desc>Show a title and author at start of document</desc>
531

    
532
   </doc>
533
  <xsl:param name="showTitleAuthor">false</xsl:param>
534
  <doc xmlns="http://www.oxygenxml.com/ns/doc/xsl" class="misc" type="boolean">
535
      <desc>Be talkative while working.</desc>
536

    
537
   </doc>
538

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

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

    
547

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

    
551
   </doc>
552
  <xsl:param name="ID"/>
553

    
554
  <doc xmlns="http://www.oxygenxml.com/ns/doc/xsl" class="output" type="string">
555
      <desc>A wrapper around the ID, to allow for other ways of getting it</desc>
556

    
557
   </doc>
558
  <xsl:param name="requestedID">
559
      <xsl:value-of select="$ID"/>
560
  </xsl:param>
561

    
562
  <doc xmlns="http://www.oxygenxml.com/ns/doc/xsl" class="output" type="string">
563
      <desc>A path fragment to put before all internal URLs </desc>
564

    
565
   </doc>
566
  <xsl:param name="URLPREFIX"/>
567
  <doc xmlns="http://www.oxygenxml.com/ns/doc/xsl" class="output" type="string">
568
      <desc>The name of the output file</desc>
569

    
570
   </doc>
571
  <xsl:param name="outputName"/>
572
  <doc xmlns="http://www.oxygenxml.com/ns/doc/xsl" class="output" type="string">
573
      <desc>Directory in which to place generated files.</desc>
574

    
575
   </doc>
576
  <xsl:param name="outputDir"/>
577
  <doc xmlns="http://www.oxygenxml.com/ns/doc/xsl" class="output" type="string">
578
      <desc>Encoding of output file(s).</desc>
579

    
580
   </doc>
581
  <xsl:param name="outputEncoding">utf-8</xsl:param>
582

    
583
  <xsl:param name="outputNamespace">http://www.w3.org/1999/xhtml</xsl:param>
584

    
585
  <doc xmlns="http://www.oxygenxml.com/ns/doc/xsl" class="output" type="string">
586
      <desc>Output method for output file(s).</desc>
587
   </doc>
588
  <xsl:param name="outputMethod">xhtml</xsl:param>
589
  <doc xmlns="http://www.oxygenxml.com/ns/doc/xsl" class="output" type="string">
590
      <desc>Suffix of output file(s).</desc>
591

    
592
   </doc>
593
  <xsl:param name="outputSuffix">.html</xsl:param>
594
  <doc xmlns="http://www.oxygenxml.com/ns/doc/xsl" class="output" type="string">
595
      <desc>Public Doctype of output file(s).</desc>
596

    
597
   </doc>
598

    
599
  <xsl:param name="doctypePublic">-//W3C//DTD XHTML 1.0 Transitional//EN</xsl:param>
600
  <doc xmlns="http://www.oxygenxml.com/ns/doc/xsl" class="output" type="string">
601
      <desc>System Doctype of output file(s).</desc>
602

    
603
   </doc>
604
  <xsl:param name="doctypeSystem">http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd</xsl:param>
605
  <doc xmlns="http://www.oxygenxml.com/ns/doc/xsl" class="output" type="string">
606
      <desc>     <p>The style of HTML (Simple, CSS or Table) which creates the layout for generated pages.</p>
607
         <p>The choice is between
608
<ul xmlns="http://www.w3.org/1999/xhtml">
609
               <li>
610
                  <b>Simple</b>: A linear presentation is created</li>
611
               <li>
612
                  <b>CSS</b>: The page is created as a series of nested
613
 &lt;div&gt;s which can be arranged using CSS into a multicolumn
614
layout</li>
615
               <li>
616
                  <b>Table</b>: The page is created as an HTML table</li>
617
            </ul>
618
         </p>
619
      </desc>
620
   </doc>
621
  <xsl:param name="pageLayout">Simple</xsl:param>
622

    
623
  <doc xmlns="http://www.oxygenxml.com/ns/doc/xsl" class="output" type="boolean">
624
      <desc>Break back matter into separate HTML pages (if splitting enabled).</desc>
625

    
626
   </doc>
627
  <xsl:param name="splitBackmatter">true</xsl:param>
628
  <doc xmlns="http://www.oxygenxml.com/ns/doc/xsl" class="output" type="boolean">
629
      <desc>Break front matter into separate HTML pages (if splitting enabled).</desc>
630

    
631
   </doc>
632
  <xsl:param name="splitFrontmatter">true</xsl:param>
633
  <doc xmlns="http://www.oxygenxml.com/ns/doc/xsl" class="output" type="integer">
634
      <desc>     <p>Level at which to split sections.</p>
635
         <p>When processing a &lt;div&gt; or &lt;div[0-5]&gt;, compare
636
the nesting depth and see whether to start a new HTML page. Since the
637
TEI starts with &lt;div1&gt;, setting this parameter to 0 will cause
638
top-level sections to be split apart. The default is not to split at
639
all.
640
</p>
641
      </desc>
642
   </doc>
643
  <xsl:param name="splitLevel">-1</xsl:param>
644
  <doc xmlns="http://www.oxygenxml.com/ns/doc/xsl" class="output" type="string">
645
      <desc>Suffix for generated output files.</desc>
646

    
647
   </doc>
648
  <xsl:param name="standardSuffix">
649
      <xsl:choose>
650
         <xsl:when test="tei:teiCorpus">.html</xsl:when>
651
         <xsl:when test="$STDOUT='true'"/>
652
         <xsl:otherwise>
653
	           <xsl:value-of select="$outputSuffix"/>
654
         </xsl:otherwise>
655
      </xsl:choose>
656
  </xsl:param>
657
  <doc xmlns="http://www.oxygenxml.com/ns/doc/xsl" class="output" type="boolean">
658
      <desc>Display navigation panel at top of pages.</desc>
659

    
660
   </doc>
661
  <xsl:param name="topNavigationPanel">true</xsl:param>
662
  <doc xmlns="http://www.oxygenxml.com/ns/doc/xsl" class="output" type="string">
663
      <desc>How to specify infra-document links. When a document is split,
664
links need to be constructed between parts of the document. 
665
The default is to use a query parameter on the URL.</desc>
666

    
667
   </doc>
668
  <xsl:param name="urlChunkPrefix">?ID=</xsl:param>
669
  <doc xmlns="http://www.oxygenxml.com/ns/doc/xsl" class="output" type="boolean">
670
      <desc>     <p>Construct links using existing ID values.</p>
671
         <p>It is often nice if, when making separate files, their names
672
correspond to the ID attribute of the &gt;div&lt;. Alternatively, you
673
	  can let the system choose names.</p>
674
      </desc>
675
   </doc>
676
  <xsl:param name="useIDs">true</xsl:param>
677
  <doc xmlns="http://www.oxygenxml.com/ns/doc/xsl" class="style" type="string">
678
      <desc>HTML element to put around visible text of display URLs</desc>
679

    
680
   </doc>
681
  <xsl:param name="urlMarkup">span</xsl:param>
682

    
683
  <doc xmlns="http://www.oxygenxml.com/ns/doc/xsl" class="toc" type="boolean">
684
      <desc>Make an automatic table of contents</desc>
685

    
686
   </doc>
687
  <xsl:param name="autoToc">true</xsl:param>
688
  <doc xmlns="http://www.oxygenxml.com/ns/doc/xsl" class="toc" type="string">
689
      <desc>CSS class for second-level TOC entries</desc>
690

    
691
   </doc>
692
  <xsl:param name="class_subtoc">subtoc</xsl:param>
693
  <doc xmlns="http://www.oxygenxml.com/ns/doc/xsl" class="toc" type="integer">
694
      <desc>
695
	<p>Depth at which to stop doing a recursive table of contents.</p>
696
         <p>You can have a mini table of contents at the start of each
697
         section. The default is only to construct a TOC at the top
698
         level; a value of -1 here means no subtoc at all. </p>
699
      </desc>
700
   </doc>
701
  <xsl:param name="subTocDepth">-1</xsl:param>
702
  <doc xmlns="http://www.oxygenxml.com/ns/doc/xsl" class="toc" type="boolean">
703
      <desc>Include the back matter in the table of contents.</desc>
704

    
705
   </doc>
706
  <xsl:param name="tocBack">true</xsl:param>
707

    
708
  <doc xmlns="http://www.oxygenxml.com/ns/doc/xsl" class="toc" type="string">
709
      <desc>Depth to which table of contents is constructed.</desc>
710

    
711
   </doc>
712
  <xsl:param name="tocDepth">5</xsl:param>
713
  <doc xmlns="http://www.oxygenxml.com/ns/doc/xsl" class="toc" type="boolean">
714
      <desc>Include the front matter in the table of contents.</desc>
715

    
716
   </doc>
717
  <xsl:param name="tocFront">true</xsl:param>
718
  <doc xmlns="http://www.oxygenxml.com/ns/doc/xsl" class="toc" type="string">
719
      <desc>Which HTML element to wrap each TOCs entry in.</desc>
720

    
721
   </doc>
722
  <xsl:param name="tocElement">p</xsl:param>
723
  <doc xmlns="http://www.oxygenxml.com/ns/doc/xsl" class="toc" type="string">
724
      <desc>Which HTML element to wrap each TOC sections in.</desc>
725

    
726
   </doc>
727
  <xsl:param name="tocContainerElement">div</xsl:param>
728

    
729

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

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

    
742

    
743
  <doc xmlns="http://www.oxygenxml.com/ns/doc/xsl" class="toc" type="anyURI">
744
      <desc>Gap between elements in navigation list
745
  </desc></doc>
746
   <xsl:template name="navInterSep">
747
      <xsl:text>: </xsl:text>
748
   </xsl:template>
749

    
750
  <doc xmlns="http://www.oxygenxml.com/ns/doc/xsl" class="output" type="boolean">
751
      <desc>Whether it should be attempted to make quotes into block
752
      quotes if they are over a certain length</desc></doc>
753
  <xsl:param name="autoBlockQuote">false</xsl:param>
754

    
755
  <doc xmlns="http://www.oxygenxml.com/ns/doc/xsl" class="output" type="integer">
756
      <desc>Length beyond which a quote is a block quote</desc></doc>
757
  <xsl:param name="autoBlockQuoteLength">150</xsl:param>
758

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

    
766
   <xsl:template name="emphasize">
767
      <xsl:param name="class"/>
768
      <xsl:param name="content"/>
769
      <xsl:choose>
770
         <xsl:when test="$class='titlea'">
771
            <q class="titlea">
772
	              <xsl:copy-of select="$content"/>
773
            </q>
774
         </xsl:when>
775
         <xsl:otherwise>
776
            <span class="{$class}">
777
	              <xsl:copy-of select="$content"/>
778
            </span>
779
         </xsl:otherwise>
780
      </xsl:choose>
781
   </xsl:template>
782

    
783
  <xsl:param name="mediaoverlay">false</xsl:param>
784

    
785

    
786
</xsl:stylesheet>