XML technologies / DocBook / Block elements / Quotations and epigraphs

(Excerpt from "DocBook-XML: Media-neutral and platform-independent publishing" by Thomas Schraitle)

In DocBook, create quotations with the element blockquote:

<blockquote>
    <attribution>Murphy's Law</attribution> 
    <para>Alles was schiefgehen kann, geht schief.</para>   
</blockquote>

The source of a quotation is recorded in attribution, which accepts the usual inline elements. To mark up the person as well, use personname inside attribution:

<attribution>    
    <personname>        
        <firstname>Friedrich</firstname>        
        <surname>Schiller</surname>        
    </personname>   
</attribution>

This is optional and depends on consistency. While blockquote can appear almost anywhere, epigraph may appear only after a title. This element introduces a dedication, quotation, epigraph or similar text. Use it as follows:

<chapter>   
    <title>...</title>   
    <epigraph>        
        <attribution>M.-Th. Radloff</attribution>        
        <literallayout>Ein Mensch, der hasst, schafft sich seine eigene Hölle. Aber ein Mensch, der liebt, hat den Himmel in sich.</literallayout>        
    </epigraph>    
</chapter>

The element attribution has the same meaning here as in blockquote. For precise control over line breaks, use literallayout. Whitespace inside this element is preserved.

  

back to top