Statistics
| Revision:

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

 1       

  TEI stylesheet customization module for HTML output.

 

This software is dual-licensed:  1. Distributed under a Creative Commons Attribution-ShareAlike 3.0  Unported License http://creativecommons.org/licenses/by-sa/3.0/  2. http://www.opensource.org/licenses/BSD-2-Clause    All rights reserved.  Redistribution and use in source and binary forms, with or without  modification, are permitted provided that the following conditions are  met:  * Redistributions of source code must retain the above copyright  notice, this list of conditions and the following disclaimer.  * Redistributions in binary form must reproduce the above copyright  notice, this list of conditions and the following disclaimer in the  documentation and/or other materials provided with the distribution.  This software is provided by the copyright holders and contributors  "as is" and any express or implied warranties, including, but not  limited to, the implied warranties of merchantability and fitness for  a particular purpose are disclaimed. In no event shall the copyright  holder or contributors be liable for any direct, indirect, incidental,  special, exemplary, or consequential damages (including, but not  limited to, procurement of substitute goods or services; loss of use,  data, or profits; or business interruption) however caused and on any  theory of liability, whether in contract, strict liability, or tort  (including negligence or otherwise) arising in any way out of the use  of this software, even if advised of the possibility of such damage.  

 

Author: See AUTHORS

 

Id: $Id: tei-param.xsl 10057 2012-01-21 16:57:14Z rahtz$

 

 
 
              CSS class for links derived from <ptr>     ptr     CSS class for links derived from <ref>     ref     Whether we should construct a separate file for each page   (based on page breaks)     false     When making fixed format epub, width of viewport     1200     When making fixed format epub, height of viewport     1700     Number footnotes consecutively     false     Link back from footnotes to reference     false     Whether to include CSS by reference or by XInclusion     false     CSS style file to be associated with output file(s)     http://www.tei-c.org/release/xml/tei/stylesheet/tei.css     CSS style file for print; this will be given a media=print attribute.       http://www.tei-c.org/release/xml/tei/stylesheet/tei-print.css     Secondary CSS style file; this will be given a media=screen attribute,  so that it does not affect printing. It should be used for screen layout.           CSS file to include in the output file directly         Resolution of images. This is needed to calculate  HTML width and height (in pixels) from supplied dimensions.     96     Display figures.     true     [html] Hook where HTML can be inserted just after <body>        

[html] Hook where HTML can be inserted just before the   <body> ends.

 

This can be used to add a page-wide footer block.

 
 
      [html] Hook where Javascript calls can be inserted just after <body>        

[html] Hook where extra CSS can be inserted

 

 
 
     

 

This would be used to insert <meta> tags.

 
 
      [html] Hook where HTML can be inserted when creating an <img>         [html] Hook where HTML can be inserted when processing a   figure         [html] Hook where extra Javascript functions can be defined         [html] Hook where HTML can be inserted just before the <address>         [html] Hook where HTML can be inserted at the start of   processing each section         [html] Hook where HTML can be inserted at the beginning   of the main text, after the header         [html] Hook where HTML can be inserted after processing <TEI>         [html] Hook where HTML can be inserted before processing <TEI>         [html] Hook where HTML can be inserted when creating an   <a> element         [html] Make a copyright claim     This page is copyrighted     [html] Banner for top of column          

How to use the front/body/back matter in creating  columns.

 

  The choice is between  

 
•   all: use <front> for left-hand column,   use <body> for centre column, and use <back> for   right-hand column
•  
•   body: use <body> for right-hand column,   generate left-hand with a TOC or whatever
•  
 

 
 
  body    

The difference between TEI div levels and HTML.  headings.

 

TEI <div>s are implicitly or explicitly numbered from 0  upwards; this offset is added to that number to produce an HTML  <Hn> element. So a value of 2 here means that a <div1>  will generate an <h2>

 
 
  2     Make a separate file for footnotes     false     [html] Header section across top of page                 [html] Navigation bar             [html] Text or action to take at the start of the   breadcrumb trail         [html] Breadcrumb trail       Skip links   |     |             [html]Bottom of left-hand columnID of selected section                     [html]Top of left-hand column               Width of left-hand column when \$pageLayout is "Table"     15%     [html] Logo             [html] Making elements in HTML <head>The text used to create the DC.Title field   in the HTML header                                                              

 

A file is looked for relative to the stylesheet (the   second parameter of the document function), which is expected to   contain a TEI <list> where each <item> has an embedded   <xref>

 
 
        no nav bar                       |                

XML resource defining a navigation bar.

 

The XML should provide a <list> containing a series  of <item> elements, each containing an <xref> link.

 
 
      [html] Banner for top of pagelayout mode                
    subtitle         2       title         1      
              subtitle         2         title         1             [html] Make a heading, if there some text to displayHeading title   CSS class   Heading level           title   1        
   
 
                 
 
 
    [html] Make a link saying how to get printable version   of file         [html] Bottom of right-hand columnID of selected section                     [html] Top of right-hand column             [html] Make a search box         [html] Construct a label for the link which makes a   printable version of the document.     For Printing     How to align the navigation panel at the bottom of the page     right     Display navigation panel at bottom of pages     true     Link for feedback     mailto:feedback     Fixed string to insert before normal page title in HTML meta  <title> element         Make a panel with next page/previous page links.     true     Generate a unique ID for all paragraphs     false    

Character separating values in a rend attribute.

 

Some projects use multiple values in rend   attributes. These are handled, but the separator character(s)   must be specified.

 
 
  ;     Show a title and author at start of document     false     Be talkative while working.     false     Make all notes into endnotes       false     An ID passed to the stylesheet to indicate which section to display         A wrapper around the ID, to allow for other ways of getting it             A path fragment to put before all internal URLs         The name of the output file         Directory in which to place generated files.         Encoding of output file(s).     utf-8   http://www.w3.org/1999/xhtml     Output method for output file(s).     xhtml     Suffix of output file(s).     .html     Public Doctype of output file(s).     -//W3C//DTD XHTML 1.0 Transitional//EN     System Doctype of output file(s).     http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd    

The style of HTML (Simple, CSS or Table) which creates the layout for generated pages.

 

The choice is between  

 
•   Simple: A linear presentation is created
•  
•   CSS: The page is created as a series of nested   <div>s which can be arranged using CSS into a multicolumn  layout
•  
•   Table: The page is created as an HTML table
•  
 

 
 
  Simple     Break back matter into separate HTML pages (if splitting enabled).     true     Break front matter into separate HTML pages (if splitting enabled).     true    

Level at which to split sections.

 

When processing a <div> or <div[0-5]>, compare  the nesting depth and see whether to start a new HTML page. Since the  TEI starts with <div1>, setting this parameter to 0 will cause  top-level sections to be split apart. The default is not to split at  all.  

 
 
  -1     Suffix for generated output files.         .html                 Display navigation panel at top of pages.     true     How to specify infra-document links. When a document is split,  links need to be constructed between parts of the document.  The default is to use a query parameter on the URL.     ?ID=    

Construct links using existing ID values.

 

It is often nice if, when making separate files, their names  correspond to the ID attribute of the >div<. Alternatively, you   can let the system choose names.

 
 
  true     HTML element to put around visible text of display URLs     span     Make an automatic table of contents     true     CSS class for second-level TOC entries     subtoc      

 
You can have a mini table of contents at the start of each   section. The default is only to construct a TOC at the top   level; a value of -1 here means no subtoc at all.
 
 
  -1     Include the back matter in the table of contents.     true     Depth to which table of contents is constructed.     5     Include the front matter in the table of contents.     true     Which HTML element to wrap each TOCs entry in.     p     Which HTML element to wrap each TOC sections in.     div     Text to link back to from foot of ODD reference pages       TEI Guidelines     URL to link back to from foot of ODD reference pages       index.html     Gap between elements in navigation list       :       Whether it should be attempted to make quotes into block   quotes if they are over a certain length   false     Length beyond which a quote is a block quote   150     [html] Hooks where HTML can be inserted when processing   <egXML> element                                         false