XML technologies / ePUB / Open Publication Format / The Manifest element / Items referencing foreign XML files

(Excerpt from “E-Books mit ePUB ─ Von Word zum E-Book mit XML” by Dr. Victor Wang)

Foreign XML files can use vocabularies outside OPS, belonging to neither XHTML nor DTBook. Processing these “Out-Of-Line XML Islands” requires extra information. Suppose chapter 1’s appendix, lines 8 and 9 in Fallback item example (XHTML instead of PDF), contains a complex formula to include with MathML markup, XML for mathematical typesetting:

 

<manifest>
  <!-- NCX-Datei -->
  <item id="ncx" href="nav.ncx" media-type="application/x-dtbncx+xml"/>
  <!-- CSS-Stylesheet -->
  <item id="css" href="ebook.css" media-type="text/css"/>
  <item id="css2" href="mathml.css" media-type="text/css"/>   ③
  <!-- Liste der Dokumente -->
  <item id="kap01" href="kap01.htm" media-type="application/xhtml+xml"/>
  <item id="kap01anhangmathml" href="kap01anh.xml" media-type="text/mathml" fallback="kap01anhanghtml" fallback-style="css2" required-namespace="http://www.w3.org/1998/Math/MathML"/>   ①
  <item id="kap01anhanghtml" href="kap01anh.htm" media-type="application/xhtml+xml"/>   ②
  <item id="kap02" href="kap02.htm" media-type="application/xhtml+xml"/>
  <item id="kap03" href="kap03.htm" media-type="application/xhtml+xml"/>
  . . .
</manifest> 

Code example: Fallback item (XHTML instead of MathML)

The procedure follows “Fallback item example (XHTML instead of PDF)”: ① declares the first Item reference, now pointing to MathML with its media type. The attribute fallback again supplies fallback ②. New attributes are fallback-style and required-namespace. Fallback style uses the value css2 to reference the second stylesheet mathml.css at ③, added for suitable MathML display. The attribute required-namespace sets the MathML file’s namespace.

   

 

 

 

back to top