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.
Copyright © mitp 2011
You may print the online version for your private use.
Otherwise, this chapter from “E-Books mit ePUB” is subject to the same terms as the printed edition: the work and all its parts are protected by copyright. All rights reserved, including reproduction, translation, microfilming, and storage and processing in electronic systems.
Verlagsgruppe Hüthig Jehle Rehm GmbH, Im Weiher 10, 69121 Heidelberg, kundenbetreuung(at)hjr-verlag.de
back to top