body

Main content of the book, multiple bodies are used for additional information, like footnotes, that do not appear in the main book flow. The first body is presented to the reader by default, and content in the other bodies should be accessible by hyperlinks. Name attribute should describe the meaning of this body, this is optional for the main body.

Element Information

Model

Attributes

QName Type Fixed Default Use Inheritable Annotation
name xs:string optional
xml:lang xs:language optional
Element content's languige

Source

<xs:element name="body" maxOccurs="unbounded">
  <xs:annotation>
    <xs:documentation>Main content of the book, multiple bodies are used for additional information, like footnotes, that do not appear in the main book flow. The first body is presented to the reader by default, and content in the other bodies should be accessible by hyperlinks. Name attribute should describe the meaning of this body, this is optional for the main body.</xs:documentation>
  </xs:annotation>
  <xs:complexType>
    <xs:sequence>
      <xs:element name="image" type="imageType" minOccurs="0">
        <xs:annotation>
          <xs:documentation>Image to be displayed at the top of this section</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="title" type="titleType" minOccurs="0">
        <xs:annotation>
          <xs:documentation>A fancy title for the entire book, should be used if the simple text version in
            <description/>is not adequate, e.g. the book title has multiple paragraphs and/or character styles</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="epigraph" type="epigraphType" minOccurs="0" maxOccurs="unbounded">
        <xs:annotation>
          <xs:documentation>Epigraph(s) for the entire book, if any</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="section" type="sectionType" maxOccurs="unbounded"/>
    </xs:sequence>
    <xs:attribute name="name" type="xs:string" use="optional"/>
    <xs:attribute ref="xml:lang"/>
  </xs:complexType>
</xs:element>

Sample

< body xmlns = "http://www.gribuser.ru/xml/fictionbook/2.0" >

< section>

< p>

< strong>

FB2 test file

</ strong>

</ p>

< p>

Purpose: Provide example of this file type

</ p>

< p>

Document file type: FB2

</ p>

< p>

Version: 1.0

</ p>

< p>

Remark:

</ p>

< empty-line/>

< p>

Example content: