XML technologies / ePUB / Open Publication Structure / Semantic inline elements / Quotations
(Excerpt from “E-Books mit ePUB ─ Von Word zum E-Book mit XML” by Dr. Victor Wang)
Quotations can be marked as a block or an inline element:
A quotation on its own line uses the block element
<blockquote>.Within running text, use the inline element
<q>(“quotation”).
A bibliographic reference to another text uses the inline element
<cite>.
In DTBook these can be used as follows:
<p><strong>Blockzitat:</strong> Faust (siehe <cite>Goethe, Faust 1</cite>) war der folgenden Meinung:</p>
<blockquote>
<linegroup>
<line>Habe nun, ach! Philosophie,</line>
<line>Juristerei und Medizin,</line>
<line>Und leider auch Theologie</line>
<line>Durchaus studiert, mit heißem Bemühn.</line>
<line>Da steh ich nun, ich armer Tor!</line>
<line>Und bin so klug als wie zuvor;</line>
</linegroup>
<author>Johann Wolfgang von Goethe</author>
</blockquote>
<p><strong>Inlinezitat:</strong> Mephisto sagte dazu, dass <q cite="Goethe, Faust 1">"das den meisten Leuten so ginge"</q>.</p>
Code example: Quotations in DTBook
Figure: DTBook quotations (Adobe Digital Editions)
In XHTML the example is nearly identical, except for missing line elements and author markup:
<p><strong>Blockzitat:</strong> Faust (siehe <cite>Goethe, Faust 1</cite>) war der folgenden Meinung:</p>
<blockquote>
<p>Habe nun, ach! Philosophie,</p>
<p>Juristerei und Medizin,</p>
<p>Und leider auch Theologie</p>
<p>Durchaus studiert, mit heißem Bemühn.</p>
<p>Da steh ich nun, ich armer Tor!</p>
<p>Und bin so klug als wie zuvor;</p>
<div class="Autor">Johann Wolfgang von Goethe</div>
</blockquote>
<p><strong>Inlinezitat:</strong> Mephisto sagte dazu, dass <q cite="Goethe, Faust 1">"das den meisten Leuten so ginge"</q>.</p>
Code example: Quotations in XHTML
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