DAISY XHTML Element Usage Requirements

Original Author(s): Markus Gylling

This is a list of grammatical requirements for XHTML documents created for use in DAISY 2.02 DTBs. Note that the XHTML 1.0 DTD does not enforce these requirements in itself.

The first heading

Must be an <h1> with a class attribute valued "title".

<h1 class="title">A Farewell to Arms by Ernest Hemingway</h1>

Heading sequence

Heading levels must not be skipped.

The following example is forbidden:


  <h1>Chapter 1</h1>
  <p>Paragraph text</p>
  <h3>Chapter 1.1.1</h3>
  <p>Paragraph text</p>

The following example is correct:


  <h1>Chapter 1</h1>
  <p>Paragraph text</p>
  <h2>Chapter 1.1</h2>
  <p>Paragraph text</p>

Normal Pages

Must be expressed using the span element with a class attribute valued "page-normal";

<span class="page-normal">23</span>

The text of the normal page element must be a number. Alphanumeric characters are not allowed.

Front Pages

Must be expressed using the span element with a class attribute valued "page-front";

<span class="page-front">IV</span>

The text of the front page element is normally a roman numeral.

Special Pages

Must be expressed using the span element with a class attribute valued "page-special";

<span class="page-special">A12</span>

The text of the front page element is normally non-numeric.

Must be expressed using the span element with a class attribute valued "sidebar";

<span class="sidebar">sidebar text</span>
 

Optional Producers notes

Must be expressed using the span element with a class attribute valued "optional-prodnote";

<span class="optional-prodnote">producer note text</span>
 

For non-optional producers notes, it is recommended that the class attribute value "notice" is recommended.

Note references

Must be expressed using the span element with a class attribute valued "noteref";

<span class="noteref">34</span>
 

Note Bodies

Must be expressed using the div element with a class attribute valued "notebody";

<div class="notebody">note text</div>
 

DAISYpedia Categories: 


This page was last edited by PVerma on Friday, August 6, 2010 23:25
Text is available under the terms of the DAISY Consortium Intellectual Property Policy, Licensing, and Working Group Process.