A TEI Project

The Stylebear: XSL stylesheet maker

Location of XSL stylesheets:

Name of output file:

3: Standard page features

Details of this section

department Name of department within institution
homeLabel Name of link to home page of application
homeURL Project Home
homeWords Project
institution Institution
parentURL Institution link
parentWords Name of overall institution
searchURL Link to search application
alignNavigationPanel How to align the navigation panel at the bottom of the page
bottomNavigationPanel Display navigation panel at bottom of pages
feedbackURL Link for feedback
htmlTitlePrefix Fixed string to insert before normal page title in HTML meta <title> element
linkPanel Make a panel with next page/previous page links.

4: Layout

Details of this section

oddWeaveLite Whether to make simplified display of ODD
parIndent Paragraph indentation
parSkip Default spacing between paragraphs
filePerPage Whether we should construct a separate file for each page (based on page breaks)
viewPortWidth When making fixed format epub, width of viewport
viewPortHeight When making fixed format epub, height of viewport
consecutiveFNs Number footnotes consecutively
footnoteBackLink Link back from footnotes to reference
columnHeader [html] Banner for top of column
contentStructure 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 columnbody: use <body> for right-hand column, generate left-hand with a TOC or whatever
divOffset 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>
footnoteFile Make a separate file for footnotes
hdr [html] Header section across top of page
hdr2 [html] Navigation bar
preBreadCrumbPath [html] Text or action to take at the start of the breadcrumb trail
hdr3 [html] Breadcrumb trail
lh-col-bottom [html]Bottom of left-hand columnID of selected section
lh-col-top [html]Top of left-hand column
linksWidth Width of left-hand column when $pageLayout is "Table"
logoPicture [html] Logo
metaHTML [html] Making elements in HTML <head>The text used to create the DC.Title field in the HTML header
navbar [html] Construction of navigation bar 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>
navbarFile XML resource defining a navigation bar. The XML should provide a <list> containing a series of <item> elements, each containing an <xref> link.
pageHeader [html] Banner for top of pagelayout mode
rh-col-bottom [html] Bottom of right-hand columnID of selected section
rh-col-top [html] Top of right-hand column
searchbox [html] Make a search box
singleFileLabel [html] Construct a label for the link which makes a printable version of the document.
autoEndNotes Make all notes into endnotes

5: Headings

Details of this section

autoHead Construct a heading for <div> elements with no <head>
autoMakeHead [common] How to make a heading for section if there is no <head>
headingNumberSuffix Punctuation to insert after a section number
numberSpacer Character to put after number of section header

6: Numbering

Details of this section

numberBackDiv [common] How to number sections in back matter
numberBackFigures Automatically number figures in back matter
numberBackHeadings How to construct heading numbering in back matter
numberBackTables Automatically number tables in back matter
numberBodyDiv [common] How to number sections in main matter
numberBodyHeadings How to construct heading numbering in main matter
numberFigures Automatically number figures
numberFrontDiv [common] How to number sections in front matter
numberFrontFigures Automatically number figures in front matter
numberFrontHeadings How to construct heading numbering in front matter
numberFrontTables Automatically number tables in front matter
numberHeadings Automatically number sections
numberHeadingsDepth Depth to which sections should be numbered
numberTables Automatically number tables
numberParagraphs Use value of "n" attribute to number sections
numberParagraphs Automatically number paragraphs.

7: Output

Details of this section

outputTarget Type of output being generated
REQUEST The complete URL when the document is being delivered from a web server (normally set by Apache or Cocoon)
STDOUT Write to standard output channel
ID An ID passed to the stylesheet to indicate which section to display
requestedID A wrapper around the ID, to allow for other ways of getting it
URLPREFIX A path fragment to put before all internal URLs
outputName The name of the output file
outputDir Directory in which to place generated files.
outputEncoding Encoding of output file(s).
outputMethod Output method for output file(s).
outputSuffix Suffix of output file(s).
doctypePublic Public Doctype of output file(s).
doctypeSystem System Doctype of output file(s).
pageLayout The style of HTML (Simple, CSS or Table) which creates the layout for generated pages. The choice is between Simple: A linear presentation is createdCSS: The page is created as a series of nested <div>s which can be arranged using CSS into a multicolumn layoutTable: The page is created as an HTML table
splitBackmatter Break back matter into separate HTML pages (if splitting enabled).
splitFrontmatter Break front matter into separate HTML pages (if splitting enabled).
splitLevel 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.
standardSuffix Suffix for generated output files.
topNavigationPanel Display navigation panel at top of pages.
urlChunkPrefix 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.
useIDs 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.

8: Table of contents generation

Details of this section

autoToc Make an automatic table of contents
class_subtoc CSS class for second-level TOC entries
subTocDepth Depth at which to stop doing a recursive table of contents. 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.
tocBack Include the back matter in the table of contents.
tocDepth Depth to which table of contents is constructed.
tocFront Include the front matter in the table of contents.
tocElement Which HTML element to wrap each TOCs entry in.
tocContainerElement Which HTML element to wrap each TOC sections in.
refDocFooterText Text to link back to from foot of ODD reference pages
refDocFooterURL URL to link back to from foot of ODD reference pages

9: Internationalization

Details of this section

copyrightStatement [html] Make a copyright claim

10: CSS

Details of this section

class_toc CSS class for TOC entries
class_ptr CSS class for links derived from <ptr>
class_ref CSS class for links derived from <ref>
cssFile CSS style file to be associated with output file(s)
cssPrintFile CSS style file for print; this will be given a media=print attribute.
cssSecondaryFile 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.
cssInlineFile CSS file to include in the output file directly

11: Tables

Details of this section

cellAlign Default alignment of table cells
tableAlign Default alignment of tables

12: Figures and graphics

Details of this section

graphicsPrefix Directory specification to put before names of graphics files, unless they start with "./"
graphicsSuffix Default file suffix for graphics files, if not directly specified
standardScale Scaling of imported graphics
dpi Resolution of images. This is needed to calculate HTML width and height (in pixels) from supplied dimensions.
showFigures Display figures.

13: Style

Details of this section

pagebreakStyle Display of <pb> element. Choices are "visible", "active" and "none".
displayMode How to display Relax NG schema fragments (rnc or rng)
minimalCrossRef Provide minimal context for a link
postQuote Character to insert at end of quote.
preQuote Character to insert at start of quote
urlMarkup HTML element to put around visible text of display URLs

14: Hooks

Details of this section

sectionHeadHook [common] Hook where actions can be inserted when making a heading
bodyHook [html] Hook where HTML can be inserted just after <body>
bodyEndHook [html] Hook where HTML can be inserted just before the <body> ends. This can be used to add a page-wide footer block.
bodyJavascriptHook [html] Hook where Javascript calls can be inserted just after <body>
cssHook [html] Hook where extra CSS can be inserted  
headHook [html] Hook where code can be added to the HTML <head>. This would be used to insert <meta> tags.
imgHook [html] Hook where HTML can be inserted when creating an <img>
figureHook [html] Hook where HTML can be inserted when processing a figure
javascriptHook [html] Hook where extra Javascript functions can be defined
preAddressHook [html] Hook where HTML can be inserted just before the <address>
startDivHook [html] Hook where HTML can be inserted at the start of processing each section
startHook [html] Hook where HTML can be inserted at the beginning of the main text, after the header
teiEndHook [html] Hook where HTML can be inserted after processing <TEI>
teiStartHook [html] Hook where HTML can be inserted before processing <TEI>
xrefHook [html] Hook where HTML can be inserted when creating an <a> element
egXMLStartHook [html] Hooks where HTML can be inserted when processing <egXML> element

15: Miscellaneous and advanced

Details of this section

teixslHome The home page for these stylesheets
teiP4Compat Process elements according to assumptions of TEI P4
useHeaderFrontMatter Title, author and date is taken from the <teiHeader> rather than looked for in the front matter
useFixedDate Whether to attempt to work out a current date (set to true for test results which won't differ
generateParagraphIDs Generate a unique ID for all paragraphs
rendSeparator Character separating values in a rend attribute. Some projects use multiple values in rend attributes. These are handled, but the separator character must be specified.
showTitleAuthor Show a title and author at start of document
verbose Be talkative while working.

Time to work!

Sebastian Rahtz. Date: 2011-11-02
This page is copyrighted