DTBook to OBFL

	Description
	Provides a base stylesheet for DTBook. The stylesheet must be extended. 
	The minimum requirement is to implement a template with the name 
	insertLayoutMaster. This template should add layout definition elements,
	see http://code.google.com/p/obfl/. The extending stylesheet can also benefit from the 
	processing modes to refine layout. See below.
	
	Parameters
		None

	Format (input -> output)
		DTBook -> OBFL
    
	Author: Joel HÃ¥kansson

Processing modes

Sequence modes

Use "sequence-mode" to override default sequence element processing and "apply-sequence-attributes" to override default sequence attributes

Block modes

Use "block-mode" to override default block element processing and "apply-block-attributes" to override default element attributes

Inline modes

Use "inline-mode" to override default inline processing

Element groups

This stylesheet categorizes DTBook elements into five groups: sequence, block, inline, special and no-op. The first three (sequence, block and inline) can easily be customized using the processing modes.

sequence

bodymatter, frontmatter, rearmatter

block

no text
level, level1, level2, level3, level4, level5, level6
can be surrounded by text, does not contain text
list, blockquote, linegroup, poem, div, annotation, dl, imggroup, note
can contain text, but cannot be surrounded by text
bridgehead, caption, covertitle, docauthor, doctitle, li, h1, h2, h3, h4, h5, h6
can be surrounded by text and contain text
author, address, hd, line, p, sidebar, byline, dateline, epigraph, prodnote

inline/block

The following elemnts may be treated as inline or block depending on context:

a, cite, kbd, samp

Treat as block element if parent is level1, level2, level3, level4, level5, level6, level, div or annotation. Treat as inline otherwise.

inline

code, bdo, em, strong, span, sub, sup, abbr, acronym, dfn, q, noteref, annoref, sent, w, linenum, lic, dd, dt

special

br, pagenum

no-op

book, dtbook, head, meta, link, img

Unhandled elements

table, col, colgroup, tbody, td, tfoot, th, thead, title, tr

Summary

Sequence Block (type 1) Block (type 2) Block (type 3) Block (type 4) Block or Inline Inline Special No-op Not supported
bodymatter level annotation bridgehead address a abbr br book col
frontmatter level1 blockquote caption author cite acronym pagenum dtbook colgroup
rearmatter level2 div covertitle byline kbd annoref head
level3 dl docauthor dateline samp bdo img table
level4 imggroup doctitle epigraph code link tbody
level5 linegroup h1 hd dd meta td
level6 list h2 line dfn tfoot
poem h3 p dt th
note h4 prodnote em thead
h5 sidebar lic title
h6 linenum tr
li noteref
q
sent
span
strong
sub
sup
w