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, table
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, title

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, col, colgroup

Unhandled elements

table, tbody, td, tfoot, th, thead, 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
  • frontmatter
  • rearmatter
  • level
  • level1
  • level2
  • level3
  • level4
  • level5
  • level6
  • annotation
  • blockquote
  • div
  • dl
  • imggroup
  • linegroup
  • list
  • poem
  • note
  • bridgehead
  • caption
  • covertitle
  • docauthor
  • doctitle
  • h1
  • h2
  • h3
  • h4
  • h5
  • h6
  • li
  • address
  • author
  • byline
  • dateline
  • epigraph
  • hd
  • line
  • p
  • prodnote
  • sidebar
  • title
  • a
  • cite
  • kbd
  • samp
  • abbr
  • acronym
  • annoref
  • bdo
  • code
  • dd
  • dfn
  • dt
  • em
  • lic
  • linenum
  • noteref
  • q
  • sent
  • span
  • strong
  • sub
  • sup
  • w
  • br
  • pagenum
  • book
  • col
  • colgroup
  • dtbook
  • head
  • img
  • link
  • meta
  • table
  • tbody
  • td
  • tfoot
  • th
  • thead
  • title
  • tr