Schema FictionBook.xsd


schema location:  H:\Work\FictionBook.lib\xsl\FictionBook.xsd
targetNamespace:  http://www.gribuser.ru/xml/fictionbook/2.0
 
Elements  Complex types  Simple types 
FictionBook  annotationType  alignType 
authorType  docGenerationInstructionType 
citeType  shareModesType 
dateType  vAlignType 
epigraphType 
imageType 
inlineImageType 
linkType 
namedStyleType 
outPutDocumentType 
partShareInstructionType 
poemType 
pType 
sectionType 
sequenceType 
shareInstructionType 
styleLinkType 
styleType 
tableType 
tdType 
textFieldType 
title-infoType 
titleType 


schema location:  H:\Work\FictionBook.lib\xsl\FictionBookLinks.xsd
targetNamespace:  http://www.w3.org/1999/xlink
 


schema location:  H:\Work\FictionBook.lib\xsl\FictionBookGenres.xsd
targetNamespace:  http://www.gribuser.ru/xml/fictionbook/2.0/genres
 
Simple types 
genreType 


schema location:  H:\Work\FictionBook.lib\xsl\FictionBookLang.xsd
targetNamespace:  http://www.w3.org/XML/1998/namespace
 


element FictionBook
diagram
namespace http://www.gribuser.ru/xml/fictionbook/2.0
children stylesheet description body binary
annotation
documentation 
Root element
source
<xs:element name="FictionBook">
  <xs:annotation>
    <xs:documentation>Root element</xs:documentation>
  </xs:annotation>
  <xs:complexType>
    <xs:sequence>
      <xs:element name="stylesheet" minOccurs="0" maxOccurs="unbounded">
        <xs:annotation>
          <xs:documentation>This element contains an arbitrary stylesheet that is intepreted by a some processing programs, e.g. text/css stylesheets can be used by XSLT stylesheets to generate better looking html</xs:documentation>
        </xs:annotation>
        <xs:complexType>
          <xs:simpleContent>
            <xs:extension base="xs:string">
              <xs:attribute name="type" type="xs:string" use="required"/>
            </xs:extension>
          </xs:simpleContent>
        </xs:complexType>
      </xs:element>
      <xs:element name="description">
        <xs:complexType>
          <xs:sequence>
            <xs:element name="title-info" type="title-infoType">
              <xs:annotation>
                <xs:documentation>Generic information about the book</xs:documentation>
              </xs:annotation>
            </xs:element>
            <xs:element name="src-title-info" type="title-infoType" minOccurs="0">
              <xs:annotation>
                <xs:documentation>Generic information about the original book (for translations) </xs:documentation>
              </xs:annotation>
            </xs:element>
            <xs:element name="document-info">
              <xs:annotation>
                <xs:documentation>Information about this particular (xml) document</xs:documentation>
              </xs:annotation>
              <xs:complexType>
                <xs:sequence>
                  <xs:element name="author" type="authorType" maxOccurs="unbounded">
                    <xs:annotation>
                      <xs:documentation>Author(s) of this particular document</xs:documentation>
                    </xs:annotation>
                  </xs:element>
                  <xs:element name="program-used" type="textFieldType" minOccurs="0">
                    <xs:annotation>
                      <xs:documentation>Any software used in preparation of this document, in free format</xs:documentation>
                    </xs:annotation>
                  </xs:element>
                  <xs:element name="date" type="dateType">
                    <xs:annotation>
                      <xs:documentation>Date this document was created, same guidelines as in the <title-info> section apply</xs:documentation>
                    </xs:annotation>
                  </xs:element>
                  <xs:element name="src-url" type="xs:string" minOccurs="0" maxOccurs="unbounded">
                    <xs:annotation>
                      <xs:documentation>Source URL if this document is a conversion of some other (online) document</xs:documentation>
                    </xs:annotation>
                  </xs:element>
                  <xs:element name="src-ocr" type="textFieldType" minOccurs="0">
                    <xs:annotation>
                      <xs:documentation>Author of the original (online) document, if this is a conversion</xs:documentation>
                    </xs:annotation>
                  </xs:element>
                  <xs:element name="id" type="xs:token">
                    <xs:annotation>
                      <xs:documentation>this is a unique identifier for a document. this must not change</xs:documentation>
                    </xs:annotation>
                  </xs:element>
                  <xs:element name="version" type="xs:float">
                    <xs:annotation>
                      <xs:documentation>Document version, in free format, should be incremented if the document is changed and re-released to the public</xs:documentation>
                    </xs:annotation>
                  </xs:element>
                  <xs:element name="history" type="annotationType" minOccurs="0">
                    <xs:annotation>
                      <xs:documentation>Short description for all changes made to this document, like "Added missing chapter 6", in free form.</xs:documentation>
                    </xs:annotation>
                  </xs:element>
                </xs:sequence>
              </xs:complexType>
            </xs:element>
            <xs:element name="publish-info" minOccurs="0">
              <xs:annotation>
                <xs:documentation>Information about some paper/outher published document, that was used as a source of this xml document</xs:documentation>
              </xs:annotation>
              <xs:complexType>
                <xs:sequence>
                  <xs:element name="book-name" type="textFieldType" minOccurs="0">
                    <xs:annotation>
                      <xs:documentation>Original (paper) book name</xs:documentation>
                    </xs:annotation>
                  </xs:element>
                  <xs:element name="publisher" type="textFieldType" minOccurs="0">
                    <xs:annotation>
                      <xs:documentation>Original (paper) book publisher</xs:documentation>
                    </xs:annotation>
                  </xs:element>
                  <xs:element name="city" type="textFieldType" minOccurs="0">
                    <xs:annotation>
                      <xs:documentation>City where the original (paper) book was published</xs:documentation>
                    </xs:annotation>
                  </xs:element>
                  <xs:element name="year" type="xs:gYear" minOccurs="0">
                    <xs:annotation>
                      <xs:documentation>Year of the original (paper) publication</xs:documentation>
                    </xs:annotation>
                  </xs:element>
                  <xs:element name="isbn" type="textFieldType" minOccurs="0"/>
                  <xs:element name="sequence" type="sequenceType" minOccurs="0" maxOccurs="unbounded"/>
                </xs:sequence>
              </xs:complexType>
            </xs:element>
            <xs:element name="custom-info" minOccurs="0" maxOccurs="unbounded">
              <xs:annotation>
                <xs:documentation>Any other information about the book/document that didnt fit in the above groups</xs:documentation>
              </xs:annotation>
              <xs:complexType>
                <xs:simpleContent>
                  <xs:extension base="textFieldType">
                    <xs:attribute name="info-type" type="xs:string" use="required"/>
                  </xs:extension>
                </xs:simpleContent>
              </xs:complexType>
            </xs:element>
            <xs:element name="output" type="shareInstructionType" minOccurs="0" maxOccurs="2"/>
          </xs:sequence>
        </xs:complexType>
      </xs:element>
      <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>
      <xs:element name="binary" minOccurs="0" maxOccurs="unbounded">
        <xs:annotation>
          <xs:documentation>Any binary data that is required for the presentation of this book in base64 format. Currently only images are used.</xs:documentation>
        </xs:annotation>
        <xs:complexType>
          <xs:simpleContent>
            <xs:extension base="xs:base64Binary">
              <xs:attribute name="content-type" type="xs:string" use="required"/>
              <xs:attribute name="id" type="xs:ID" use="required"/>
            </xs:extension>
          </xs:simpleContent>
        </xs:complexType>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
</xs:element>

element FictionBook/stylesheet
diagram
namespace http://www.gribuser.ru/xml/fictionbook/2.0
type extension of xs:string
attributes
Name  Type  Use  Default  Fixed  Annotation
type  xs:string  required      
annotation
documentation 
This element contains an arbitrary stylesheet that is intepreted by a some processing programs, e.g. text/css stylesheets can be used by XSLT stylesheets to generate better looking html
source
<xs:element name="stylesheet" minOccurs="0" maxOccurs="unbounded">
  <xs:annotation>
    <xs:documentation>This element contains an arbitrary stylesheet that is intepreted by a some processing programs, e.g. text/css stylesheets can be used by XSLT stylesheets to generate better looking html</xs:documentation>
  </xs:annotation>
  <xs:complexType>
    <xs:simpleContent>
      <xs:extension base="xs:string">
        <xs:attribute name="type" type="xs:string" use="required"/>
      </xs:extension>
    </xs:simpleContent>
  </xs:complexType>
</xs:element>

element FictionBook/description
diagram
namespace http://www.gribuser.ru/xml/fictionbook/2.0
children title-info src-title-info document-info publish-info custom-info output
source
<xs:element name="description">
  <xs:complexType>
    <xs:sequence>
      <xs:element name="title-info" type="title-infoType">
        <xs:annotation>
          <xs:documentation>Generic information about the book</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="src-title-info" type="title-infoType" minOccurs="0">
        <xs:annotation>
          <xs:documentation>Generic information about the original book (for translations) </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="document-info">
        <xs:annotation>
          <xs:documentation>Information about this particular (xml) document</xs:documentation>
        </xs:annotation>
        <xs:complexType>
          <xs:sequence>
            <xs:element name="author" type="authorType" maxOccurs="unbounded">
              <xs:annotation>
                <xs:documentation>Author(s) of this particular document</xs:documentation>
              </xs:annotation>
            </xs:element>
            <xs:element name="program-used" type="textFieldType" minOccurs="0">
              <xs:annotation>
                <xs:documentation>Any software used in preparation of this document, in free format</xs:documentation>
              </xs:annotation>
            </xs:element>
            <xs:element name="date" type="dateType">
              <xs:annotation>
                <xs:documentation>Date this document was created, same guidelines as in the <title-info> section apply</xs:documentation>
              </xs:annotation>
            </xs:element>
            <xs:element name="src-url" type="xs:string" minOccurs="0" maxOccurs="unbounded">
              <xs:annotation>
                <xs:documentation>Source URL if this document is a conversion of some other (online) document</xs:documentation>
              </xs:annotation>
            </xs:element>
            <xs:element name="src-ocr" type="textFieldType" minOccurs="0">
              <xs:annotation>
                <xs:documentation>Author of the original (online) document, if this is a conversion</xs:documentation>
              </xs:annotation>
            </xs:element>
            <xs:element name="id" type="xs:token">
              <xs:annotation>
                <xs:documentation>this is a unique identifier for a document. this must not change</xs:documentation>
              </xs:annotation>
            </xs:element>
            <xs:element name="version" type="xs:float">
              <xs:annotation>
                <xs:documentation>Document version, in free format, should be incremented if the document is changed and re-released to the public</xs:documentation>
              </xs:annotation>
            </xs:element>
            <xs:element name="history" type="annotationType" minOccurs="0">
              <xs:annotation>
                <xs:documentation>Short description for all changes made to this document, like "Added missing chapter 6", in free form.</xs:documentation>
              </xs:annotation>
            </xs:element>
          </xs:sequence>
        </xs:complexType>
      </xs:element>
      <xs:element name="publish-info" minOccurs="0">
        <xs:annotation>
          <xs:documentation>Information about some paper/outher published document, that was used as a source of this xml document</xs:documentation>
        </xs:annotation>
        <xs:complexType>
          <xs:sequence>
            <xs:element name="book-name" type="textFieldType" minOccurs="0">
              <xs:annotation>
                <xs:documentation>Original (paper) book name</xs:documentation>
              </xs:annotation>
            </xs:element>
            <xs:element name="publisher" type="textFieldType" minOccurs="0">
              <xs:annotation>
                <xs:documentation>Original (paper) book publisher</xs:documentation>
              </xs:annotation>
            </xs:element>
            <xs:element name="city" type="textFieldType" minOccurs="0">
              <xs:annotation>
                <xs:documentation>City where the original (paper) book was published</xs:documentation>
              </xs:annotation>
            </xs:element>
            <xs:element name="year" type="xs:gYear" minOccurs="0">
              <xs:annotation>
                <xs:documentation>Year of the original (paper) publication</xs:documentation>
              </xs:annotation>
            </xs:element>
            <xs:element name="isbn" type="textFieldType" minOccurs="0"/>
            <xs:element name="sequence" type="sequenceType" minOccurs="0" maxOccurs="unbounded"/>
          </xs:sequence>
        </xs:complexType>
      </xs:element>
      <xs:element name="custom-info" minOccurs="0" maxOccurs="unbounded">
        <xs:annotation>
          <xs:documentation>Any other information about the book/document that didnt fit in the above groups</xs:documentation>
        </xs:annotation>
        <xs:complexType>
          <xs:simpleContent>
            <xs:extension base="textFieldType">
              <xs:attribute name="info-type" type="xs:string" use="required"/>
            </xs:extension>
          </xs:simpleContent>
        </xs:complexType>
      </xs:element>
      <xs:element name="output" type="shareInstructionType" minOccurs="0" maxOccurs="2"/>
    </xs:sequence>
  </xs:complexType>
</xs:element>

element FictionBook/description/title-info
diagram
namespace http://www.gribuser.ru/xml/fictionbook/2.0
type title-infoType
children genre author book-title annotation keywords date coverpage lang src-lang translator sequence
annotation
documentation 
Generic information about the book
source
<xs:element name="title-info" type="title-infoType">
  <xs:annotation>
    <xs:documentation>Generic information about the book</xs:documentation>
  </xs:annotation>
</xs:element>

element FictionBook/description/src-title-info
diagram
namespace http://www.gribuser.ru/xml/fictionbook/2.0
type title-infoType
children genre author book-title annotation keywords date coverpage lang src-lang translator sequence
annotation
documentation 
Generic information about the original book (for translations) 
source
<xs:element name="src-title-info" type="title-infoType" minOccurs="0">
  <xs:annotation>
    <xs:documentation>Generic information about the original book (for translations) </xs:documentation>
  </xs:annotation>
</xs:element>

element FictionBook/description/document-info
diagram
namespace http://www.gribuser.ru/xml/fictionbook/2.0
children author program-used date src-url src-ocr id version history
annotation
documentation 
Information about this particular (xml) document
source
<xs:element name="document-info">
  <xs:annotation>
    <xs:documentation>Information about this particular (xml) document</xs:documentation>
  </xs:annotation>
  <xs:complexType>
    <xs:sequence>
      <xs:element name="author" type="authorType" maxOccurs="unbounded">
        <xs:annotation>
          <xs:documentation>Author(s) of this particular document</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="program-used" type="textFieldType" minOccurs="0">
        <xs:annotation>
          <xs:documentation>Any software used in preparation of this document, in free format</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="date" type="dateType">
        <xs:annotation>
          <xs:documentation>Date this document was created, same guidelines as in the <title-info> section apply</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="src-url" type="xs:string" minOccurs="0" maxOccurs="unbounded">
        <xs:annotation>
          <xs:documentation>Source URL if this document is a conversion of some other (online) document</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="src-ocr" type="textFieldType" minOccurs="0">
        <xs:annotation>
          <xs:documentation>Author of the original (online) document, if this is a conversion</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="id" type="xs:token">
        <xs:annotation>
          <xs:documentation>this is a unique identifier for a document. this must not change</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="version" type="xs:float">
        <xs:annotation>
          <xs:documentation>Document version, in free format, should be incremented if the document is changed and re-released to the public</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="history" type="annotationType" minOccurs="0">
        <xs:annotation>
          <xs:documentation>Short description for all changes made to this document, like "Added missing chapter 6", in free form.</xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
</xs:element>

element FictionBook/description/document-info/author
diagram
namespace http://www.gribuser.ru/xml/fictionbook/2.0
type authorType
children first-name middle-name last-name nickname home-page email nickname home-page email
annotation
documentation 
Author(s) of this particular document
source
<xs:element name="author" type="authorType" maxOccurs="unbounded">
  <xs:annotation>
    <xs:documentation>Author(s) of this particular document</xs:documentation>
  </xs:annotation>
</xs:element>

element FictionBook/description/document-info/program-used
diagram
namespace http://www.gribuser.ru/xml/fictionbook/2.0
type textFieldType
attributes
Name  Type  Use  Default  Fixed  Annotation
xml:lang  xs:language        
annotation
documentation 
Any software used in preparation of this document, in free format
source
<xs:element name="program-used" type="textFieldType" minOccurs="0">
  <xs:annotation>
    <xs:documentation>Any software used in preparation of this document, in free format</xs:documentation>
  </xs:annotation>
</xs:element>

element FictionBook/description/document-info/date
diagram
namespace http://www.gribuser.ru/xml/fictionbook/2.0
type dateType
attributes
Name  Type  Use  Default  Fixed  Annotation
value  xs:date  optional      
xml:lang  xs:language        
annotation
documentation 
Date this document was created, same guidelines as in the <title-info> section apply
source
<xs:element name="date" type="dateType">
  <xs:annotation>
    <xs:documentation>Date this document was created, same guidelines as in the <title-info> section apply</xs:documentation>
  </xs:annotation>
</xs:element>

element FictionBook/description/document-info/src-url
diagram
namespace http://www.gribuser.ru/xml/fictionbook/2.0
type xs:string
annotation
documentation 
Source URL if this document is a conversion of some other (online) document
source
<xs:element name="src-url" type="xs:string" minOccurs="0" maxOccurs="unbounded">
  <xs:annotation>
    <xs:documentation>Source URL if this document is a conversion of some other (online) document</xs:documentation>
  </xs:annotation>
</xs:element>

element FictionBook/description/document-info/src-ocr
diagram
namespace http://www.gribuser.ru/xml/fictionbook/2.0
type textFieldType
attributes
Name  Type  Use  Default  Fixed  Annotation
xml:lang  xs:language        
annotation
documentation 
Author of the original (online) document, if this is a conversion
source
<xs:element name="src-ocr" type="textFieldType" minOccurs="0">
  <xs:annotation>
    <xs:documentation>Author of the original (online) document, if this is a conversion</xs:documentation>
  </xs:annotation>
</xs:element>

element FictionBook/description/document-info/id
diagram
namespace http://www.gribuser.ru/xml/fictionbook/2.0
type xs:token
annotation
documentation 
this is a unique identifier for a document. this must not change
source
<xs:element name="id" type="xs:token">
  <xs:annotation>
    <xs:documentation>this is a unique identifier for a document. this must not change</xs:documentation>
  </xs:annotation>
</xs:element>

element FictionBook/description/document-info/version
diagram
namespace http://www.gribuser.ru/xml/fictionbook/2.0
type xs:float
annotation
documentation 
Document version, in free format, should be incremented if the document is changed and re-released to the public
source
<xs:element name="version" type="xs:float">
  <xs:annotation>
    <xs:documentation>Document version, in free format, should be incremented if the document is changed and re-released to the public</xs:documentation>
  </xs:annotation>
</xs:element>

element FictionBook/description/document-info/history
diagram
namespace http://www.gribuser.ru/xml/fictionbook/2.0
type annotationType
children p poem cite subtitle table empty-line
attributes
Name  Type  Use  Default  Fixed  Annotation
id  xs:ID  optional      
xml:lang  xs:language        
annotation
documentation 
Short description for all changes made to this document, like "Added missing chapter 6", in free form.
source
<xs:element name="history" type="annotationType" minOccurs="0">
  <xs:annotation>
    <xs:documentation>Short description for all changes made to this document, like "Added missing chapter 6", in free form.</xs:documentation>
  </xs:annotation>
</xs:element>

element FictionBook/description/publish-info
diagram
namespace http://www.gribuser.ru/xml/fictionbook/2.0
children book-name publisher city year isbn sequence
annotation
documentation 
Information about some paper/outher published document, that was used as a source of this xml document
source
<xs:element name="publish-info" minOccurs="0">
  <xs:annotation>
    <xs:documentation>Information about some paper/outher published document, that was used as a source of this xml document</xs:documentation>
  </xs:annotation>
  <xs:complexType>
    <xs:sequence>
      <xs:element name="book-name" type="textFieldType" minOccurs="0">
        <xs:annotation>
          <xs:documentation>Original (paper) book name</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="publisher" type="textFieldType" minOccurs="0">
        <xs:annotation>
          <xs:documentation>Original (paper) book publisher</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="city" type="textFieldType" minOccurs="0">
        <xs:annotation>
          <xs:documentation>City where the original (paper) book was published</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="year" type="xs:gYear" minOccurs="0">
        <xs:annotation>
          <xs:documentation>Year of the original (paper) publication</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="isbn" type="textFieldType" minOccurs="0"/>
      <xs:element name="sequence" type="sequenceType" minOccurs="0" maxOccurs="unbounded"/>
    </xs:sequence>
  </xs:complexType>
</xs:element>

element FictionBook/description/publish-info/book-name
diagram
namespace http://www.gribuser.ru/xml/fictionbook/2.0
type textFieldType
attributes
Name  Type  Use  Default  Fixed  Annotation
xml:lang  xs:language        
annotation
documentation 
Original (paper) book name
source
<xs:element name="book-name" type="textFieldType" minOccurs="0">
  <xs:annotation>
    <xs:documentation>Original (paper) book name</xs:documentation>
  </xs:annotation>
</xs:element>

element FictionBook/description/publish-info/publisher
diagram
namespace http://www.gribuser.ru/xml/fictionbook/2.0
type textFieldType
attributes
Name  Type  Use  Default  Fixed  Annotation
xml:lang  xs:language        
annotation
documentation 
Original (paper) book publisher
source
<xs:element name="publisher" type="textFieldType" minOccurs="0">
  <xs:annotation>
    <xs:documentation>Original (paper) book publisher</xs:documentation>
  </xs:annotation>
</xs:element>

element FictionBook/description/publish-info/city
diagram
namespace http://www.gribuser.ru/xml/fictionbook/2.0
type textFieldType
attributes
Name  Type  Use  Default  Fixed  Annotation
xml:lang  xs:language        
annotation
documentation 
City where the original (paper) book was published
source
<xs:element name="city" type="textFieldType" minOccurs="0">
  <xs:annotation>
    <xs:documentation>City where the original (paper) book was published</xs:documentation>
  </xs:annotation>
</xs:element>

element FictionBook/description/publish-info/year
diagram
namespace http://www.gribuser.ru/xml/fictionbook/2.0
type xs:gYear
annotation
documentation 
Year of the original (paper) publication
source
<xs:element name="year" type="xs:gYear" minOccurs="0">
  <xs:annotation>
    <xs:documentation>Year of the original (paper) publication</xs:documentation>
  </xs:annotation>
</xs:element>

element FictionBook/description/publish-info/isbn
diagram
namespace http://www.gribuser.ru/xml/fictionbook/2.0
type textFieldType
attributes
Name  Type  Use  Default  Fixed  Annotation
xml:lang  xs:language        
source
<xs:element name="isbn" type="textFieldType" minOccurs="0"/>

element FictionBook/description/publish-info/sequence
diagram
namespace http://www.gribuser.ru/xml/fictionbook/2.0
type sequenceType
children sequence
attributes
Name  Type  Use  Default  Fixed  Annotation
name  xs:string  required      
number  xs:integer  optional      
xml:lang  xs:language        
source
<xs:element name="sequence" type="sequenceType" minOccurs="0" maxOccurs="unbounded"/>

element FictionBook/description/custom-info
diagram
namespace http://www.gribuser.ru/xml/fictionbook/2.0
type extension of textFieldType
attributes
Name  Type  Use  Default  Fixed  Annotation
xml:lang  xs:language        
info-type  xs:string  required      
annotation
documentation 
Any other information about the book/document that didnt fit in the above groups
source
<xs:element name="custom-info" minOccurs="0" maxOccurs="unbounded">
  <xs:annotation>
    <xs:documentation>Any other information about the book/document that didnt fit in the above groups</xs:documentation>
  </xs:annotation>
  <xs:complexType>
    <xs:simpleContent>
      <xs:extension base="textFieldType">
        <xs:attribute name="info-type" type="xs:string" use="required"/>
      </xs:extension>
    </xs:simpleContent>
  </xs:complexType>
</xs:element>

element FictionBook/description/output
diagram
namespace http://www.gribuser.ru/xml/fictionbook/2.0
type shareInstructionType
children part output-document-class
attributes
Name  Type  Use  Default  Fixed  Annotation
mode  shareModesType  required      
include-all  docGenerationInstructionType  required      
price  xs:float  optional      
currency  xs:string        
source
<xs:element name="output" type="shareInstructionType" minOccurs="0" maxOccurs="2"/>

element FictionBook/body
diagram
namespace http://www.gribuser.ru/xml/fictionbook/2.0
children image title epigraph section
attributes
Name  Type  Use  Default  Fixed  Annotation
name  xs:string  optional      
xml:lang  xs:language        
annotation
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.
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>

element FictionBook/body/image
diagram
namespace http://www.gribuser.ru/xml/fictionbook/2.0
type imageType
attributes
Name  Type  Use  Default  Fixed  Annotation
xlink:type  xs:string      simple  
xlink:href  xs:string        
alt  xs:string  optional      
title  xs:string  optional      
id  xs:ID  optional      
annotation
documentation 
Image to be displayed at the top of this section
source
<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>

element FictionBook/body/title
diagram
namespace http://www.gribuser.ru/xml/fictionbook/2.0
type titleType
children p empty-line
attributes
Name  Type  Use  Default  Fixed  Annotation
xml:lang  xs:language        
annotation
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
source
<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>

element FictionBook/body/epigraph
diagram
namespace http://www.gribuser.ru/xml/fictionbook/2.0
type epigraphType
children p poem cite empty-line text-author
attributes
Name  Type  Use  Default  Fixed  Annotation
id  xs:ID  optional      
annotation
documentation 
Epigraph(s) for the entire book, if any
source
<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>

element FictionBook/body/section
diagram
namespace http://www.gribuser.ru/xml/fictionbook/2.0
type sectionType
children title epigraph image annotation section p poem subtitle cite empty-line table p image poem subtitle cite empty-line table
attributes
Name  Type  Use  Default  Fixed  Annotation
id  xs:ID  optional      
xml:lang  xs:language        
source
<xs:element name="section" type="sectionType" maxOccurs="unbounded"/>

element FictionBook/binary
diagram
namespace http://www.gribuser.ru/xml/fictionbook/2.0
type extension of xs:base64Binary
attributes
Name  Type  Use  Default  Fixed  Annotation
content-type  xs:string  required      
id  xs:ID  required      
annotation
documentation 
Any binary data that is required for the presentation of this book in base64 format. Currently only images are used.
source
<xs:element name="binary" minOccurs="0" maxOccurs="unbounded">
  <xs:annotation>
    <xs:documentation>Any binary data that is required for the presentation of this book in base64 format. Currently only images are used.</xs:documentation>
  </xs:annotation>
  <xs:complexType>
    <xs:simpleContent>
      <xs:extension base="xs:base64Binary">
        <xs:attribute name="content-type" type="xs:string" use="required"/>
        <xs:attribute name="id" type="xs:ID" use="required"/>
      </xs:extension>
    </xs:simpleContent>
  </xs:complexType>
</xs:element>

complexType annotationType
diagram
namespace http://www.gribuser.ru/xml/fictionbook/2.0
children p poem cite subtitle table empty-line
used by
elements sectionType/annotation title-infoType/annotation FictionBook/description/document-info/history
attributes
Name  Type  Use  Default  Fixed  Annotation
id  xs:ID  optional      
xml:lang  xs:language        
annotation
documentation 
A cut-down version of <section> used in annotations
source
<xs:complexType name="annotationType">
  <xs:annotation>
    <xs:documentation>A cut-down version of <section> used in annotations</xs:documentation>
  </xs:annotation>
  <xs:choice minOccurs="0" maxOccurs="unbounded">
    <xs:element name="p" type="pType"/>
    <xs:element name="poem" type="poemType"/>
    <xs:element name="cite" type="citeType"/>
    <xs:element name="subtitle" type="pType"/>
    <xs:element name="table" type="tableType"/>
    <xs:element name="empty-line"/>
  </xs:choice>
  <xs:attribute name="id" type="xs:ID" use="optional"/>
  <xs:attribute ref="xml:lang"/>
</xs:complexType>

element annotationType/p
diagram
namespace http://www.gribuser.ru/xml/fictionbook/2.0
type pType
children strong emphasis style a strikethrough sub sup code image
attributes
Name  Type  Use  Default  Fixed  Annotation
xml:lang  xs:language        
id  xs:ID  optional      
style  xs:string  optional      
source
<xs:element name="p" type="pType"/>

element annotationType/poem
diagram
namespace http://www.gribuser.ru/xml/fictionbook/2.0
type poemType
children title epigraph stanza text-author date
attributes
Name  Type  Use  Default  Fixed  Annotation
id  xs:ID  optional      
xml:lang  xs:language        
source
<xs:element name="poem" type="poemType"/>

element annotationType/cite
diagram
namespace http://www.gribuser.ru/xml/fictionbook/2.0
type citeType
children p poem empty-line subtitle table text-author
attributes
Name  Type  Use  Default  Fixed  Annotation
id  xs:ID  optional      
xml:lang  xs:language        
source
<xs:element name="cite" type="citeType"/>

element annotationType/subtitle
diagram
namespace http://www.gribuser.ru/xml/fictionbook/2.0
type pType
children strong emphasis style a strikethrough sub sup code image
attributes
Name  Type  Use  Default  Fixed  Annotation
xml:lang  xs:language        
id  xs:ID  optional      
style  xs:string  optional      
source
<xs:element name="subtitle" type="pType"/>

element annotationType/table
diagram
namespace http://www.gribuser.ru/xml/fictionbook/2.0
type tableType
children tr
attributes
Name  Type  Use  Default  Fixed  Annotation
style  xs:string  optional      
id  xs:ID  optional      
source
<xs:element name="table" type="tableType"/>

element annotationType/empty-line
diagram
namespace http://www.gribuser.ru/xml/fictionbook/2.0
source
<xs:element name="empty-line"/>

complexType authorType
diagram
namespace http://www.gribuser.ru/xml/fictionbook/2.0
children first-name middle-name last-name nickname home-page email nickname home-page email
used by
elements FictionBook/description/document-info/author title-infoType/author title-infoType/translator
annotation
documentation 
Information about a single author
source
<xs:complexType name="authorType">
  <xs:annotation>
    <xs:documentation>Information about a single author</xs:documentation>
  </xs:annotation>
  <xs:choice>
    <xs:sequence>
      <xs:element name="first-name" type="textFieldType"/>
      <xs:element name="middle-name" type="textFieldType" minOccurs="0"/>
      <xs:element name="last-name" type="textFieldType"/>
      <xs:element name="nickname" type="textFieldType" minOccurs="0"/>
      <xs:element name="home-page" type="xs:string" minOccurs="0" maxOccurs="unbounded"/>
      <xs:element name="email" type="xs:string" minOccurs="0" maxOccurs="unbounded"/>
    </xs:sequence>
    <xs:sequence>
      <xs:element name="nickname" type="textFieldType"/>
      <xs:element name="home-page" type="xs:string" minOccurs="0" maxOccurs="unbounded"/>
      <xs:element name="email" type="xs:string" minOccurs="0" maxOccurs="unbounded"/>
    </xs:sequence>
  </xs:choice>
</xs:complexType>

element authorType/first-name
diagram
namespace http://www.gribuser.ru/xml/fictionbook/2.0
type textFieldType
attributes
Name  Type  Use  Default  Fixed  Annotation
xml:lang  xs:language        
source
<xs:element name="first-name" type="textFieldType"/>

element authorType/middle-name
diagram
namespace http://www.gribuser.ru/xml/fictionbook/2.0
type textFieldType
attributes
Name  Type  Use  Default  Fixed  Annotation
xml:lang  xs:language        
source
<xs:element name="middle-name" type="textFieldType" minOccurs="0"/>

element authorType/last-name
diagram
namespace http://www.gribuser.ru/xml/fictionbook/2.0
type textFieldType
attributes
Name  Type  Use  Default  Fixed  Annotation
xml:lang  xs:language        
source
<xs:element name="last-name" type="textFieldType"/>

element authorType/nickname
diagram
namespace http://www.gribuser.ru/xml/fictionbook/2.0
type textFieldType
attributes
Name  Type  Use  Default  Fixed  Annotation
xml:lang  xs:language        
source
<xs:element name="nickname" type="textFieldType" minOccurs="0"/>

element authorType/home-page
diagram
namespace http://www.gribuser.ru/xml/fictionbook/2.0
type xs:string
source
<xs:element name="home-page" type="xs:string" minOccurs="0" maxOccurs="unbounded"/>

element authorType/email
diagram
namespace http://www.gribuser.ru/xml/fictionbook/2.0
type xs:string
source
<xs:element name="email" type="xs:string" minOccurs="0" maxOccurs="unbounded"/>

element authorType/nickname
diagram
namespace http://www.gribuser.ru/xml/fictionbook/2.0
type textFieldType
attributes
Name  Type  Use  Default  Fixed  Annotation
xml:lang  xs:language        
source
<xs:element name="nickname" type="textFieldType"/>

element authorType/home-page
diagram
namespace http://www.gribuser.ru/xml/fictionbook/2.0
type xs:string
source
<xs:element name="home-page" type="xs:string" minOccurs="0" maxOccurs="unbounded"/>

element authorType/email
diagram
namespace http://www.gribuser.ru/xml/fictionbook/2.0
type xs:string
source
<xs:element name="email" type="xs:string" minOccurs="0" maxOccurs="unbounded"/>

complexType citeType
diagram
namespace http://www.gribuser.ru/xml/fictionbook/2.0
children p poem empty-line subtitle table text-author
used by
elements epigraphType/cite annotationType/cite sectionType/cite sectionType/cite
attributes
Name  Type  Use  Default  Fixed  Annotation
id  xs:ID  optional      
xml:lang  xs:language        
annotation
documentation 
A citation with an optional citation author at the end
source
<xs:complexType name="citeType">
  <xs:annotation>
    <xs:documentation>A citation with an optional citation author at the end</xs:documentation>
  </xs:annotation>
  <xs:sequence>
    <xs:choice minOccurs="0" maxOccurs="unbounded">
      <xs:element name="p" type="pType"/>
      <xs:element name="poem" type="poemType"/>
      <xs:element name="empty-line"/>
      <xs:element name="subtitle" type="pType"/>
      <xs:element name="table" type="tableType"/>
    </xs:choice>
    <xs:element name="text-author" type="pType" minOccurs="0" maxOccurs="unbounded"/>
  </xs:sequence>
  <xs:attribute name="id" type="xs:ID" use="optional"/>
  <xs:attribute ref="xml:lang"/>
</xs:complexType>

element citeType/p
diagram
namespace http://www.gribuser.ru/xml/fictionbook/2.0
type pType
children strong emphasis style a strikethrough sub sup code image
attributes
Name  Type  Use  Default  Fixed  Annotation
xml:lang  xs:language        
id  xs:ID  optional      
style  xs:string  optional      
source
<xs:element name="p" type="pType"/>

element citeType/poem
diagram
namespace http://www.gribuser.ru/xml/fictionbook/2.0
type poemType
children title epigraph stanza text-author date
attributes
Name  Type  Use  Default  Fixed  Annotation
id  xs:ID  optional      
xml:lang  xs:language        
source
<xs:element name="poem" type="poemType"/>

element citeType/empty-line
diagram
namespace http://www.gribuser.ru/xml/fictionbook/2.0
source
<xs:element name="empty-line"/>

element citeType/subtitle
diagram
namespace http://www.gribuser.ru/xml/fictionbook/2.0
type pType
children strong emphasis style a strikethrough sub sup code image
attributes
Name  Type  Use  Default  Fixed  Annotation
xml:lang  xs:language        
id  xs:ID  optional      
style  xs:string  optional      
source
<xs:element name="subtitle" type="pType"/>

element citeType/table
diagram
namespace http://www.gribuser.ru/xml/fictionbook/2.0
type tableType
children tr
attributes
Name  Type  Use  Default  Fixed  Annotation
style  xs:string  optional      
id  xs:ID  optional      
source
<xs:element name="table" type="tableType"/>

element citeType/text-author
diagram
namespace http://www.gribuser.ru/xml/fictionbook/2.0
type pType
children strong emphasis style a strikethrough sub sup code image
attributes
Name  Type  Use  Default  Fixed  Annotation
xml:lang  xs:language        
id  xs:ID  optional      
style  xs:string  optional      
source
<xs:element name="text-author" type="pType" minOccurs="0" maxOccurs="unbounded"/>

complexType dateType
diagram
namespace http://www.gribuser.ru/xml/fictionbook/2.0
type extension of xs:string
used by
elements FictionBook/description/document-info/date poemType/date title-infoType/date
attributes
Name  Type  Use  Default  Fixed  Annotation
value  xs:date  optional      
xml:lang  xs:language        
annotation
documentation 
A human readable date, maybe not exact, with an optional computer readable variant
source
<xs:complexType name="dateType">
  <xs:annotation>
    <xs:documentation>A human readable date, maybe not exact, with an optional computer readable variant</xs:documentation>
  </xs:annotation>
  <xs:simpleContent>
    <xs:extension base="xs:string">
      <xs:attribute name="value" type="xs:date" use="optional"/>
      <xs:attribute ref="xml:lang"/>
    </xs:extension>
  </xs:simpleContent>
</xs:complexType>

complexType epigraphType
diagram
namespace http://www.gribuser.ru/xml/fictionbook/2.0
children p poem cite empty-line text-author
used by
elements FictionBook/body/epigraph poemType/epigraph sectionType/epigraph
attributes
Name  Type  Use  Default  Fixed  Annotation
id  xs:ID  optional      
annotation
documentation 
An epigraph
source
<xs:complexType name="epigraphType">
  <xs:annotation>
    <xs:documentation>An epigraph</xs:documentation>
  </xs:annotation>
  <xs:sequence>
    <xs:choice minOccurs="0" maxOccurs="unbounded">
      <xs:element name="p" type="pType"/>
      <xs:element name="poem" type="poemType"/>
      <xs:element name="cite" type="citeType"/>
      <xs:element name="empty-line"/>
    </xs:choice>
    <xs:element name="text-author" type="pType" minOccurs="0" maxOccurs="unbounded"/>
  </xs:sequence>
  <xs:attribute name="id" type="xs:ID" use="optional"/>
</xs:complexType>

element epigraphType/p
diagram
namespace http://www.gribuser.ru/xml/fictionbook/2.0
type pType
children strong emphasis style a strikethrough sub sup code image
attributes
Name  Type  Use  Default  Fixed  Annotation
xml:lang  xs:language        
id  xs:ID  optional      
style  xs:string  optional      
source
<xs:element name="p" type="pType"/>

element epigraphType/poem
diagram
namespace http://www.gribuser.ru/xml/fictionbook/2.0
type poemType
children title epigraph stanza text-author date
attributes
Name  Type  Use  Default  Fixed  Annotation
id  xs:ID  optional      
xml:lang  xs:language        
source
<xs:element name="poem" type="poemType"/>

element epigraphType/cite
diagram
namespace http://www.gribuser.ru/xml/fictionbook/2.0
type citeType
children p poem empty-line subtitle table text-author
attributes
Name  Type  Use  Default  Fixed  Annotation
id  xs:ID  optional      
xml:lang  xs:language        
source
<xs:element name="cite" type="citeType"/>

element epigraphType/empty-line
diagram
namespace http://www.gribuser.ru/xml/fictionbook/2.0
source
<xs:element name="empty-line"/>

element epigraphType/text-author
diagram
namespace http://www.gribuser.ru/xml/fictionbook/2.0
type pType
children strong emphasis style a strikethrough sub sup code image
attributes
Name  Type  Use  Default  Fixed  Annotation
xml:lang  xs:language        
id  xs:ID  optional      
style  xs:string  optional      
source
<xs:element name="text-author" type="pType" minOccurs="0" maxOccurs="unbounded"/>

complexType imageType
diagram
namespace http://www.gribuser.ru/xml/fictionbook/2.0
used by
elements FictionBook/body/image sectionType/image sectionType/image
attributes
Name  Type  Use  Default  Fixed  Annotation
xlink:type  xs:string      simple  
xlink:href  xs:string        
alt  xs:string  optional      
title  xs:string  optional      
id  xs:ID  optional      
annotation
documentation 
An empty element with an image name as an attribute
source
<xs:complexType name="imageType">
  <xs:annotation>
    <xs:documentation>An empty element with an image name as an attribute</xs:documentation>
  </xs:annotation>
  <xs:attribute ref="xlink:type"/>
  <xs:attribute ref="xlink:href"/>
  <xs:attribute name="alt" type="xs:string" use="optional"/>
  <xs:attribute name="title" type="xs:string" use="optional"/>
  <xs:attribute name="id" type="xs:ID" use="optional"/>
</xs:complexType>

complexType inlineImageType
diagram
namespace http://www.gribuser.ru/xml/fictionbook/2.0
used by
elements styleType/image namedStyleType/image linkType/image styleLinkType/image title-infoType/coverpage/image
attributes
Name  Type  Use  Default  Fixed  Annotation
xlink:type  xs:string      simple  
xlink:href  xs:string        
alt  xs:string  optional      
source
<xs:complexType name="inlineImageType">
  <xs:attribute ref="xlink:type"/>
  <xs:attribute ref="xlink:href"/>
  <xs:attribute name="alt" type="xs:string" use="optional"/>
</xs:complexType>

complexType linkType
diagram
namespace http://www.gribuser.ru/xml/fictionbook/2.0
children strong emphasis style strikethrough sub sup code image
used by
elements styleType/a namedStyleType/a
attributes
Name  Type  Use  Default  Fixed  Annotation
xlink:type  xs:string  optional    simple  
xlink:href  xs:string  required      
type  xs:token  optional      
annotation
documentation 
Generic hyperlinks. Cannot be nested. Footnotes should be implemented by links referring to additional bodies in the same document
source
<xs:complexType name="linkType" mixed="true">
  <xs:annotation>
    <xs:documentation>Generic hyperlinks. Cannot be nested. Footnotes should be implemented by links referring to additional bodies in the same document</xs:documentation>
  </xs:annotation>
  <xs:choice minOccurs="0" maxOccurs="unbounded">
    <xs:element name="strong" type="styleLinkType"/>
    <xs:element name="emphasis" type="styleLinkType"/>
    <xs:element name="style" type="styleLinkType"/>
    <xs:element name="strikethrough" type="styleLinkType"/>
    <xs:element name="sub" type="styleLinkType"/>
    <xs:element name="sup" type="styleLinkType"/>
    <xs:element name="code" type="styleLinkType"/>
    <xs:element name="image" type="inlineImageType"/>
  </xs:choice>
  <xs:attribute ref="xlink:type" use="optional"/>
  <xs:attribute ref="xlink:href" use="required"/>
  <xs:attribute name="type" type="xs:token" use="optional"/>
</xs:complexType>

element linkType/strong
diagram
namespace http://www.gribuser.ru/xml/fictionbook/2.0
type styleLinkType
children strong emphasis style strikethrough sub sup code image
source
<xs:element name="strong" type="styleLinkType"/>

element linkType/emphasis
diagram
namespace http://www.gribuser.ru/xml/fictionbook/2.0
type styleLinkType
children strong emphasis style strikethrough sub sup code image
source
<xs:element name="emphasis" type="styleLinkType"/>

element linkType/style
diagram
namespace http://www.gribuser.ru/xml/fictionbook/2.0
type styleLinkType
children strong emphasis style strikethrough sub sup code image
source
<xs:element name="style" type="styleLinkType"/>

element linkType/strikethrough
diagram
namespace http://www.gribuser.ru/xml/fictionbook/2.0
type styleLinkType
children strong emphasis style strikethrough sub sup code image
source
<xs:element name="strikethrough" type="styleLinkType"/>

element linkType/sub
diagram
namespace http://www.gribuser.ru/xml/fictionbook/2.0
type styleLinkType
children strong emphasis style strikethrough sub sup code image
source
<xs:element name="sub" type="styleLinkType"/>

element linkType/sup
diagram
namespace http://www.gribuser.ru/xml/fictionbook/2.0
type styleLinkType
children strong emphasis style strikethrough sub sup code image
source
<xs:element name="sup" type="styleLinkType"/>

element linkType/code
diagram
namespace http://www.gribuser.ru/xml/fictionbook/2.0
type styleLinkType
children strong emphasis style strikethrough sub sup code image
source
<xs:element name="code" type="styleLinkType"/>

element linkType/image
diagram
namespace http://www.gribuser.ru/xml/fictionbook/2.0
type inlineImageType
attributes
Name  Type  Use  Default  Fixed  Annotation
xlink:type  xs:string      simple  
xlink:href  xs:string        
alt  xs:string  optional      
source
<xs:element name="image" type="inlineImageType"/>

complexType namedStyleType
diagram
namespace http://www.gribuser.ru/xml/fictionbook/2.0
children strong emphasis style a strikethrough sub sup code image
used by
elements styleType/style namedStyleType/style
attributes
Name  Type  Use  Default  Fixed  Annotation
xml:lang  xs:language  optional      
name  xs:token  required      
annotation
documentation 
Markup
source
<xs:complexType name="namedStyleType" mixed="true">
  <xs:annotation>
    <xs:documentation>Markup</xs:documentation>
  </xs:annotation>
  <xs:choice minOccurs="0" maxOccurs="unbounded">
    <xs:element name="strong" type="styleType"/>
    <xs:element name="emphasis" type="styleType"/>
    <xs:element name="style" type="namedStyleType"/>
    <xs:element name="a" type="linkType"/>
    <xs:element name="strikethrough" type="styleType"/>
    <xs:element name="sub" type="styleType"/>
    <xs:element name="sup" type="styleType"/>
    <xs:element name="code" type="styleType"/>
    <xs:element name="image" type="inlineImageType"/>
  </xs:choice>
  <xs:attribute ref="xml:lang" use="optional"/>
  <xs:attribute name="name" type="xs:token" use="required"/>
</xs:complexType>

element namedStyleType/strong
diagram
namespace http://www.gribuser.ru/xml/fictionbook/2.0
type styleType
children strong emphasis style a strikethrough sub sup code image
attributes
Name  Type  Use  Default  Fixed  Annotation
xml:lang  xs:language        
source
<xs:element name="strong" type="styleType"/>

element namedStyleType/emphasis
diagram
namespace http://www.gribuser.ru/xml/fictionbook/2.0
type styleType
children strong emphasis style a strikethrough sub sup code image
attributes
Name  Type  Use  Default  Fixed  Annotation
xml:lang  xs:language        
source
<xs:element name="emphasis" type="styleType"/>

element namedStyleType/style
diagram
namespace http://www.gribuser.ru/xml/fictionbook/2.0
type namedStyleType
children strong emphasis style a strikethrough sub sup code image
attributes
Name  Type  Use  Default  Fixed  Annotation
xml:lang  xs:language  optional      
name  xs:token  required      
source
<xs:element name="style" type="namedStyleType"/>

element namedStyleType/a
diagram
namespace http://www.gribuser.ru/xml/fictionbook/2.0
type linkType
children strong emphasis style strikethrough sub sup code image
attributes
Name  Type  Use  Default  Fixed  Annotation
xlink:type  xs:string  optional    simple  
xlink:href  xs:string  required      
type  xs:token  optional      
source
<xs:element name="a" type="linkType"/>

element namedStyleType/strikethrough
diagram
namespace http://www.gribuser.ru/xml/fictionbook/2.0
type styleType
children strong emphasis style a strikethrough sub sup code image
attributes
Name  Type  Use  Default  Fixed  Annotation
xml:lang  xs:language        
source
<xs:element name="strikethrough" type="styleType"/>

element namedStyleType/sub
diagram
namespace http://www.gribuser.ru/xml/fictionbook/2.0
type styleType
children strong emphasis style a strikethrough sub sup code image
attributes
Name  Type  Use  Default  Fixed  Annotation
xml:lang  xs:language        
source
<xs:element name="sub" type="styleType"/>

element namedStyleType/sup
diagram
namespace http://www.gribuser.ru/xml/fictionbook/2.0
type styleType
children strong emphasis style a strikethrough sub sup code image
attributes
Name  Type  Use  Default  Fixed  Annotation
xml:lang  xs:language        
source
<xs:element name="sup" type="styleType"/>

element namedStyleType/code
diagram
namespace http://www.gribuser.ru/xml/fictionbook/2.0
type styleType
children strong emphasis style a strikethrough sub sup code image
attributes
Name  Type  Use  Default  Fixed  Annotation
xml:lang  xs:language        
source
<xs:element name="code" type="styleType"/>

element namedStyleType/image
diagram
namespace http://www.gribuser.ru/xml/fictionbook/2.0
type inlineImageType
attributes
Name  Type  Use  Default  Fixed  Annotation
xlink:type  xs:string      simple  
xlink:href  xs:string        
alt  xs:string  optional      
source
<xs:element name="image" type="inlineImageType"/>

complexType outPutDocumentType
diagram
namespace http://www.gribuser.ru/xml/fictionbook/2.0
children part
used by
element shareInstructionType/output-document-class
attributes
Name  Type  Use  Default  Fixed  Annotation
name  xs:string  required      
create  docGenerationInstructionType  optional      
price  xs:float  optional      
annotation
documentation 
Selector for output documents. Defines, which rule to apply to any specific output documents
source
<xs:complexType name="outPutDocumentType">
  <xs:annotation>
    <xs:documentation>Selector for output documents. Defines, which rule to apply to any specific output documents</xs:documentation>
  </xs:annotation>
  <xs:sequence minOccurs="0" maxOccurs="unbounded">
    <xs:element name="part" type="partShareInstructionType"/>
  </xs:sequence>
  <xs:attribute name="name" type="xs:string" use="required"/>
  <xs:attribute name="create" type="docGenerationInstructionType" use="optional"/>
  <xs:attribute name="price" type="xs:float" use="optional"/>
</xs:complexType>

element outPutDocumentType/part
diagram
namespace http://www.gribuser.ru/xml/fictionbook/2.0
type partShareInstructionType
attributes
Name  Type  Use  Default  Fixed  Annotation
xlink:type  xs:string      simple  
xlink:href  xs:string  required      
include  docGenerationInstructionType  required      
source
<xs:element name="part" type="partShareInstructionType"/>

complexType partShareInstructionType
diagram
namespace http://www.gribuser.ru/xml/fictionbook/2.0
used by
elements shareInstructionType/part outPutDocumentType/part
attributes
Name  Type  Use  Default  Fixed  Annotation
xlink:type  xs:string      simple  
xlink:href  xs:string  required      
include  docGenerationInstructionType  required      
annotation
documentation 
Pointer to cpecific document section, explaining how to deal with it
source
<xs:complexType name="partShareInstructionType">
  <xs:annotation>
    <xs:documentation>Pointer to cpecific document section, explaining how to deal with it</xs:documentation>
  </xs:annotation>
  <xs:attribute ref="xlink:type"/>
  <xs:attribute ref="xlink:href" use="required"/>
  <xs:attribute name="include" type="docGenerationInstructionType" use="required"/>
</xs:complexType>

complexType poemType
diagram
namespace http://www.gribuser.ru/xml/fictionbook/2.0
children title epigraph stanza text-author date
used by
elements citeType/poem epigraphType/poem annotationType/poem sectionType/poem sectionType/poem
attributes
Name  Type  Use  Default  Fixed  Annotation
id  xs:ID  optional      
xml:lang  xs:language        
annotation
documentation 
A poem
source
<xs:complexType name="poemType">
  <xs:annotation>
    <xs:documentation>A poem</xs:documentation>
  </xs:annotation>
  <xs:sequence>
    <xs:element name="title" type="titleType" minOccurs="0">
      <xs:annotation>
        <xs:documentation>Poem title</xs:documentation>
      </xs:annotation>
    </xs:element>
    <xs:element name="epigraph" type="epigraphType" minOccurs="0" maxOccurs="unbounded">
      <xs:annotation>
        <xs:documentation>Poem epigraph(s), if any</xs:documentation>
      </xs:annotation>
    </xs:element>
    <xs:element name="stanza" maxOccurs="unbounded">
      <xs:annotation>
        <xs:documentation>Each poem should have at least one stanza. Stanzas are usually separated with empty lines by user agents.</xs:documentation>
      </xs:annotation>
      <xs:complexType>
        <xs:sequence>
          <xs:element name="title" type="titleType" minOccurs="0"/>
          <xs:element name="subtitle" type="pType" minOccurs="0"/>
          <xs:element name="v" type="pType" maxOccurs="unbounded">
            <xs:annotation>
              <xs:documentation>An individual line in a stanza</xs:documentation>
            </xs:annotation>
          </xs:element>
        </xs:sequence>
        <xs:attribute ref="xml:lang"/>
      </xs:complexType>
    </xs:element>
    <xs:element name="text-author" type="pType" minOccurs="0" maxOccurs="unbounded"/>
    <xs:element name="date" type="dateType" minOccurs="0">
      <xs:annotation>
        <xs:documentation>Date this poem was written.</xs:documentation>
      </xs:annotation>
    </xs:element>
  </xs:sequence>
  <xs:attribute name="id" type="xs:ID" use="optional"/>
  <xs:attribute ref="xml:lang"/>
</xs:complexType>

element poemType/title
diagram
namespace http://www.gribuser.ru/xml/fictionbook/2.0
type titleType
children p empty-line
attributes
Name  Type  Use  Default  Fixed  Annotation
xml:lang  xs:language        
annotation
documentation 
Poem title
source
<xs:element name="title" type="titleType" minOccurs="0">
  <xs:annotation>
    <xs:documentation>Poem title</xs:documentation>
  </xs:annotation>
</xs:element>

element poemType/epigraph
diagram
namespace http://www.gribuser.ru/xml/fictionbook/2.0
type epigraphType
children p poem cite empty-line text-author
attributes
Name  Type  Use  Default  Fixed  Annotation
id  xs:ID  optional      
annotation
documentation 
Poem epigraph(s), if any
source
<xs:element name="epigraph" type="epigraphType" minOccurs="0" maxOccurs="unbounded">
  <xs:annotation>
    <xs:documentation>Poem epigraph(s), if any</xs:documentation>
  </xs:annotation>
</xs:element>

element poemType/stanza
diagram
namespace http://www.gribuser.ru/xml/fictionbook/2.0
children title subtitle v
attributes
Name  Type  Use  Default  Fixed  Annotation
xml:lang  xs:language        
annotation
documentation 
Each poem should have at least one stanza. Stanzas are usually separated with empty lines by user agents.
source
<xs:element name="stanza" maxOccurs="unbounded">
  <xs:annotation>
    <xs:documentation>Each poem should have at least one stanza. Stanzas are usually separated with empty lines by user agents.</xs:documentation>
  </xs:annotation>
  <xs:complexType>
    <xs:sequence>
      <xs:element name="title" type="titleType" minOccurs="0"/>
      <xs:element name="subtitle" type="pType" minOccurs="0"/>
      <xs:element name="v" type="pType" maxOccurs="unbounded">
        <xs:annotation>
          <xs:documentation>An individual line in a stanza</xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
    <xs:attribute ref="xml:lang"/>
  </xs:complexType>
</xs:element>

element poemType/stanza/title
diagram
namespace http://www.gribuser.ru/xml/fictionbook/2.0
type titleType
children p empty-line
attributes
Name  Type  Use  Default  Fixed  Annotation
xml:lang  xs:language        
source
<xs:element name="title" type="titleType" minOccurs="0"/>

element poemType/stanza/subtitle
diagram
namespace http://www.gribuser.ru/xml/fictionbook/2.0
type pType
children strong emphasis style a strikethrough sub sup code image
attributes
Name  Type  Use  Default  Fixed  Annotation
xml:lang  xs:language        
id  xs:ID  optional      
style  xs:string  optional      
source
<xs:element name="subtitle" type="pType" minOccurs="0"/>

element poemType/stanza/v
diagram
namespace http://www.gribuser.ru/xml/fictionbook/2.0
type pType
children strong emphasis style a strikethrough sub sup code image
attributes
Name  Type  Use  Default  Fixed  Annotation
xml:lang  xs:language        
id  xs:ID  optional      
style  xs:string  optional      
annotation
documentation 
An individual line in a stanza
source
<xs:element name="v" type="pType" maxOccurs="unbounded">
  <xs:annotation>
    <xs:documentation>An individual line in a stanza</xs:documentation>
  </xs:annotation>
</xs:element>

element poemType/text-author
diagram
namespace http://www.gribuser.ru/xml/fictionbook/2.0
type pType
children strong emphasis style a strikethrough sub sup code image
attributes
Name  Type  Use  Default  Fixed  Annotation
xml:lang  xs:language        
id  xs:ID  optional      
style  xs:string  optional      
source
<xs:element name="text-author" type="pType" minOccurs="0" maxOccurs="unbounded"/>

element poemType/date
diagram
namespace http://www.gribuser.ru/xml/fictionbook/2.0
type dateType
attributes
Name  Type  Use  Default  Fixed  Annotation
value  xs:date  optional      
xml:lang  xs:language        
annotation
documentation 
Date this poem was written.
source
<xs:element name="date" type="dateType" minOccurs="0">
  <xs:annotation>
    <xs:documentation>Date this poem was written.</xs:documentation>
  </xs:annotation>
</xs:element>

complexType pType
diagram
namespace http://www.gribuser.ru/xml/fictionbook/2.0
type extension of styleType
children strong emphasis style a strikethrough sub sup code image
used by
elements titleType/p citeType/p epigraphType/p annotationType/p sectionType/p sectionType/p citeType/subtitle poemType/stanza/subtitle annotationType/subtitle sectionType/subtitle sectionType/subtitle citeType/text-author poemType/text-author epigraphType/text-author poemType/stanza/v
attributes
Name  Type  Use  Default  Fixed  Annotation
xml:lang  xs:language        
id  xs:ID  optional      
style  xs:string  optional      
annotation
documentation 
A basic paragraph, may include simple formatting inside
source
<xs:complexType name="pType" mixed="true">
  <xs:annotation>
    <xs:documentation>A basic paragraph, may include simple formatting inside</xs:documentation>
  </xs:annotation>
  <xs:complexContent mixed="true">
    <xs:extension base="styleType">
      <xs:attribute name="id" type="xs:ID" use="optional"/>
      <xs:attribute name="style" type="xs:string" use="optional"/>
    </xs:extension>
  </xs:complexContent>
</xs:complexType>

complexType sectionType
diagram
namespace http://www.gribuser.ru/xml/fictionbook/2.0
children title epigraph image annotation section p poem subtitle cite empty-line table p image poem subtitle cite empty-line table
used by
elements FictionBook/body/section sectionType/section
attributes
Name  Type  Use  Default  Fixed  Annotation
id  xs:ID  optional      
xml:lang  xs:language        
annotation
documentation 
A basic block of a book, can contain more child sections or textual content
source
<xs:complexType name="sectionType">
  <xs:annotation>
    <xs:documentation>A basic block of a book, can contain more child sections or textual content</xs:documentation>
  </xs:annotation>
  <xs:sequence minOccurs="0">
    <xs:element name="title" type="titleType" minOccurs="0">
      <xs:annotation>
        <xs:documentation>Section's title</xs:documentation>
      </xs:annotation>
    </xs:element>
    <xs:element name="epigraph" type="epigraphType" minOccurs="0" maxOccurs="unbounded">
      <xs:annotation>
        <xs:documentation>Epigraph(s) for this section</xs:documentation>
      </xs:annotation>
    </xs:element>
    <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="annotation" type="annotationType" minOccurs="0">
      <xs:annotation>
        <xs:documentation>Annotation for this section, if any</xs:documentation>
      </xs:annotation>
    </xs:element>
    <xs:choice>
      <xs:sequence>
        <xs:element name="section" type="sectionType" maxOccurs="unbounded">
          <xs:annotation>
            <xs:documentation>Child sections</xs:documentation>
          </xs:annotation>
        </xs:element>
      </xs:sequence>
      <xs:sequence>
        <xs:choice>
          <xs:element name="p" type="pType"/>
          <xs:element name="poem" type="poemType"/>
          <xs:element name="subtitle" type="pType"/>
          <xs:element name="cite" type="citeType"/>
          <xs:element name="empty-line"/>
          <xs:element name="table" type="tableType"/>
        </xs:choice>
        <xs:choice minOccurs="0" maxOccurs="unbounded">
          <xs:element name="p" type="pType"/>
          <xs:element name="image" type="imageType"/>
          <xs:element name="poem" type="poemType"/>
          <xs:element name="subtitle" type="pType"/>
          <xs:element name="cite" type="citeType"/>
          <xs:element name="empty-line"/>
          <xs:element name="table" type="tableType"/>
        </xs:choice>
      </xs:sequence>
    </xs:choice>
  </xs:sequence>
  <xs:attribute name="id" type="xs:ID" use="optional"/>
  <xs:attribute ref="xml:lang"/>
</xs:complexType>

element sectionType/title
diagram
namespace http://www.gribuser.ru/xml/fictionbook/2.0
type titleType
children p empty-line
attributes
Name  Type  Use  Default  Fixed  Annotation
xml:lang  xs:language        
annotation
documentation 
Section's title
source
<xs:element name="title" type="titleType" minOccurs="0">
  <xs:annotation>
    <xs:documentation>Section's title</xs:documentation>
  </xs:annotation>
</xs:element>

element sectionType/epigraph
diagram
namespace http://www.gribuser.ru/xml/fictionbook/2.0
type epigraphType
children p poem cite empty-line text-author
attributes
Name  Type  Use  Default  Fixed  Annotation
id  xs:ID  optional      
annotation
documentation 
Epigraph(s) for this section
source
<xs:element name="epigraph" type="epigraphType" minOccurs="0" maxOccurs="unbounded">
  <xs:annotation>
    <xs:documentation>Epigraph(s) for this section</xs:documentation>
  </xs:annotation>
</xs:element>

element sectionType/image
diagram
namespace http://www.gribuser.ru/xml/fictionbook/2.0
type imageType
attributes
Name  Type  Use  Default  Fixed  Annotation
xlink:type  xs:string      simple  
xlink:href  xs:string        
alt  xs:string  optional      
title  xs:string  optional      
id  xs:ID  optional      
annotation
documentation 
Image to be displayed at the top of this section
source
<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>

element sectionType/annotation
diagram
namespace http://www.gribuser.ru/xml/fictionbook/2.0
type annotationType
children p poem cite subtitle table empty-line
attributes
Name  Type  Use  Default  Fixed  Annotation
id  xs:ID  optional      
xml:lang  xs:language        
annotation
documentation 
Annotation for this section, if any
source
<xs:element name="annotation" type="annotationType" minOccurs="0">
  <xs:annotation>
    <xs:documentation>Annotation for this section, if any</xs:documentation>
  </xs:annotation>
</xs:element>

element sectionType/section
diagram
namespace http://www.gribuser.ru/xml/fictionbook/2.0
type sectionType
children title epigraph image annotation section p poem subtitle cite empty-line table p image poem subtitle cite empty-line table
attributes
Name  Type  Use  Default  Fixed  Annotation
id  xs:ID  optional      
xml:lang  xs:language        
annotation
documentation 
Child sections
source
<xs:element name="section" type="sectionType" maxOccurs="unbounded">
  <xs:annotation>
    <xs:documentation>Child sections</xs:documentation>
  </xs:annotation>
</xs:element>

element sectionType/p
diagram
namespace http://www.gribuser.ru/xml/fictionbook/2.0
type pType
children strong emphasis style a strikethrough sub sup code image
attributes
Name  Type  Use  Default  Fixed  Annotation
xml:lang  xs:language        
id  xs:ID  optional      
style  xs:string  optional      
source
<xs:element name="p" type="pType"/>

element sectionType/poem
diagram
namespace http://www.gribuser.ru/xml/fictionbook/2.0
type poemType
children title epigraph stanza text-author date
attributes
Name  Type  Use  Default  Fixed  Annotation
id  xs:ID  optional      
xml:lang  xs:language        
source
<xs:element name="poem" type="poemType"/>

element sectionType/subtitle
diagram
namespace http://www.gribuser.ru/xml/fictionbook/2.0
type pType
children strong emphasis style a strikethrough sub sup code image
attributes
Name  Type  Use  Default  Fixed  Annotation
xml:lang  xs:language        
id  xs:ID  optional      
style  xs:string  optional      
source
<xs:element name="subtitle" type="pType"/>

element sectionType/cite
diagram
namespace http://www.gribuser.ru/xml/fictionbook/2.0
type citeType
children p poem empty-line subtitle table text-author
attributes
Name  Type  Use  Default  Fixed  Annotation
id  xs:ID  optional      
xml:lang  xs:language        
source
<xs:element name="cite" type="citeType"/>

element sectionType/empty-line
diagram
namespace http://www.gribuser.ru/xml/fictionbook/2.0
source
<xs:element name="empty-line"/>

element sectionType/table
diagram
namespace http://www.gribuser.ru/xml/fictionbook/2.0
type tableType
children tr
attributes
Name  Type  Use  Default  Fixed  Annotation
style  xs:string  optional      
id  xs:ID  optional      
source
<xs:element name="table" type="tableType"/>

element sectionType/p
diagram
namespace http://www.gribuser.ru/xml/fictionbook/2.0
type pType
children strong emphasis style a strikethrough sub sup code image
attributes
Name  Type  Use  Default  Fixed  Annotation
xml:lang  xs:language        
id  xs:ID  optional      
style  xs:string  optional      
source
<xs:element name="p" type="pType"/>

element sectionType/image
diagram
namespace http://www.gribuser.ru/xml/fictionbook/2.0
type imageType
attributes
Name  Type  Use  Default  Fixed  Annotation
xlink:type  xs:string      simple  
xlink:href  xs:string        
alt  xs:string  optional      
title  xs:string  optional      
id  xs:ID  optional      
source
<xs:element name="image" type="imageType"/>

element sectionType/poem
diagram
namespace http://www.gribuser.ru/xml/fictionbook/2.0
type poemType
children title epigraph stanza text-author date
attributes
Name  Type  Use  Default  Fixed  Annotation
id  xs:ID  optional      
xml:lang  xs:language        
source
<xs:element name="poem" type="poemType"/>

element sectionType/subtitle
diagram
namespace http://www.gribuser.ru/xml/fictionbook/2.0
type pType
children strong emphasis style a strikethrough sub sup code image
attributes
Name  Type  Use  Default  Fixed  Annotation
xml:lang  xs:language        
id  xs:ID  optional      
style  xs:string  optional      
source
<xs:element name="subtitle" type="pType"/>

element sectionType/cite
diagram
namespace http://www.gribuser.ru/xml/fictionbook/2.0
type citeType
children p poem empty-line subtitle table text-author
attributes
Name  Type  Use  Default  Fixed  Annotation
id  xs:ID  optional      
xml:lang  xs:language        
source
<xs:element name="cite" type="citeType"/>

element sectionType/empty-line
diagram
namespace http://www.gribuser.ru/xml/fictionbook/2.0
source
<xs:element name="empty-line"/>

element sectionType/table
diagram
namespace http://www.gribuser.ru/xml/fictionbook/2.0
type tableType
children tr
attributes
Name  Type  Use  Default  Fixed  Annotation
style  xs:string  optional      
id  xs:ID  optional      
source
<xs:element name="table" type="tableType"/>

complexType sequenceType
diagram
namespace http://www.gribuser.ru/xml/fictionbook/2.0
children sequence
used by
elements FictionBook/description/publish-info/sequence sequenceType/sequence title-infoType/sequence
attributes
Name  Type  Use  Default  Fixed  Annotation
name  xs:string  required      
number  xs:integer  optional      
xml:lang  xs:language        
annotation
documentation 
Book sequences
source
<xs:complexType name="sequenceType">
  <xs:annotation>
    <xs:documentation>Book sequences</xs:documentation>
  </xs:annotation>
  <xs:sequence>
    <xs:element name="sequence" type="sequenceType" minOccurs="0" maxOccurs="unbounded"/>
  </xs:sequence>
  <xs:attribute name="name" type="xs:string" use="required"/>
  <xs:attribute name="number" type="xs:integer" use="optional"/>
  <xs:attribute ref="xml:lang"/>
</xs:complexType>

element sequenceType/sequence
diagram
namespace http://www.gribuser.ru/xml/fictionbook/2.0
type sequenceType
children sequence
attributes
Name  Type  Use  Default  Fixed  Annotation
name  xs:string  required      
number  xs:integer  optional      
xml:lang  xs:language        
source
<xs:element name="sequence" type="sequenceType" minOccurs="0" maxOccurs="unbounded"/>

complexType shareInstructionType
diagram
namespace http://www.gribuser.ru/xml/fictionbook/2.0
children part output-document-class
used by
element FictionBook/description/output
attributes
Name  Type  Use  Default  Fixed  Annotation
mode  shareModesType  required      
include-all  docGenerationInstructionType  required      
price  xs:float  optional      
currency  xs:string        
annotation
documentation 
In-document instruction for generating output free and payed documents
source
<xs:complexType name="shareInstructionType">
  <xs:annotation>
    <xs:documentation>In-document instruction for generating output free and payed documents</xs:documentation>
  </xs:annotation>
  <xs:choice minOccurs="0" maxOccurs="unbounded">
    <xs:element name="part" type="partShareInstructionType"/>
    <xs:element name="output-document-class" type="outPutDocumentType"/>
  </xs:choice>
  <xs:attribute name="mode" type="shareModesType" use="required"/>
  <xs:attribute name="include-all" type="docGenerationInstructionType" use="required"/>
  <xs:attribute name="price" type="xs:float" use="optional"/>
  <xs:attribute name="currency" type="xs:string"/>
</xs:complexType>

element shareInstructionType/part
diagram
namespace http://www.gribuser.ru/xml/fictionbook/2.0
type partShareInstructionType
attributes
Name  Type  Use  Default  Fixed  Annotation
xlink:type  xs:string      simple  
xlink:href  xs:string  required      
include  docGenerationInstructionType  required      
source
<xs:element name="part" type="partShareInstructionType"/>

element shareInstructionType/output-document-class
diagram
namespace http://www.gribuser.ru/xml/fictionbook/2.0
type outPutDocumentType
children part
attributes
Name  Type  Use  Default  Fixed  Annotation
name  xs:string  required      
create  docGenerationInstructionType  optional      
price  xs:float  optional      
source
<xs:element name="output-document-class" type="outPutDocumentType"/>

complexType styleLinkType
diagram
namespace http://www.gribuser.ru/xml/fictionbook/2.0
children strong emphasis style strikethrough sub sup code image
used by
elements linkType/code styleLinkType/code linkType/emphasis styleLinkType/emphasis linkType/strikethrough styleLinkType/strikethrough linkType/strong styleLinkType/strong linkType/style styleLinkType/style linkType/sub styleLinkType/sub linkType/sup styleLinkType/sup
annotation
documentation 
Markup
source
<xs:complexType name="styleLinkType" mixed="true">
  <xs:annotation>
    <xs:documentation>Markup</xs:documentation>
  </xs:annotation>
  <xs:choice minOccurs="0" maxOccurs="unbounded">
    <xs:element name="strong" type="styleLinkType"/>
    <xs:element name="emphasis" type="styleLinkType"/>
    <xs:element name="style" type="styleLinkType"/>
    <xs:element name="strikethrough" type="styleLinkType"/>
    <xs:element name="sub" type="styleLinkType"/>
    <xs:element name="sup" type="styleLinkType"/>
    <xs:element name="code" type="styleLinkType"/>
    <xs:element name="image" type="inlineImageType"/>
  </xs:choice>
</xs:complexType>

element styleLinkType/strong
diagram
namespace http://www.gribuser.ru/xml/fictionbook/2.0
type styleLinkType
children strong emphasis style strikethrough sub sup code image
source
<xs:element name="strong" type="styleLinkType"/>

element styleLinkType/emphasis
diagram
namespace http://www.gribuser.ru/xml/fictionbook/2.0
type styleLinkType
children strong emphasis style strikethrough sub sup code image
source
<xs:element name="emphasis" type="styleLinkType"/>

element styleLinkType/style
diagram
namespace http://www.gribuser.ru/xml/fictionbook/2.0
type styleLinkType
children strong emphasis style strikethrough sub sup code image
source
<xs:element name="style" type="styleLinkType"/>

element styleLinkType/strikethrough
diagram
namespace http://www.gribuser.ru/xml/fictionbook/2.0
type styleLinkType
children strong emphasis style strikethrough sub sup code image
source
<xs:element name="strikethrough" type="styleLinkType"/>

element styleLinkType/sub
diagram
namespace http://www.gribuser.ru/xml/fictionbook/2.0
type styleLinkType
children strong emphasis style strikethrough sub sup code image
source
<xs:element name="sub" type="styleLinkType"/>

element styleLinkType/sup
diagram
namespace http://www.gribuser.ru/xml/fictionbook/2.0
type styleLinkType
children strong emphasis style strikethrough sub sup code image
source
<xs:element name="sup" type="styleLinkType"/>

element styleLinkType/code
diagram
namespace http://www.gribuser.ru/xml/fictionbook/2.0
type styleLinkType
children strong emphasis style strikethrough sub sup code image
source
<xs:element name="code" type="styleLinkType"/>

element styleLinkType/image
diagram
namespace http://www.gribuser.ru/xml/fictionbook/2.0
type inlineImageType
attributes
Name  Type  Use  Default  Fixed  Annotation
xlink:type  xs:string      simple  
xlink:href  xs:string        
alt  xs:string  optional      
source
<xs:element name="image" type="inlineImageType"/>

complexType styleType
diagram
namespace http://www.gribuser.ru/xml/fictionbook/2.0
children strong emphasis style a strikethrough sub sup code image
used by
elements styleType/code namedStyleType/code styleType/emphasis namedStyleType/emphasis styleType/strikethrough namedStyleType/strikethrough styleType/strong namedStyleType/strong styleType/sub namedStyleType/sub styleType/sup namedStyleType/sup
complexTypes pType tdType
attributes
Name  Type  Use  Default  Fixed  Annotation
xml:lang  xs:language        
annotation
documentation 
Markup
source
<xs:complexType name="styleType" mixed="true">
  <xs:annotation>
    <xs:documentation>Markup</xs:documentation>
  </xs:annotation>
  <xs:choice minOccurs="0" maxOccurs="unbounded">
    <xs:element name="strong" type="styleType"/>
    <xs:element name="emphasis" type="styleType"/>
    <xs:element name="style" type="namedStyleType"/>
    <xs:element name="a" type="linkType"/>
    <xs:element name="strikethrough" type="styleType"/>
    <xs:element name="sub" type="styleType"/>
    <xs:element name="sup" type="styleType"/>
    <xs:element name="code" type="styleType"/>
    <xs:element name="image" type="inlineImageType"/>
  </xs:choice>
  <xs:attribute ref="xml:lang"/>
</xs:complexType>

element styleType/strong
diagram
namespace http://www.gribuser.ru/xml/fictionbook/2.0
type styleType
children strong emphasis style a strikethrough sub sup code image
attributes
Name  Type  Use  Default  Fixed  Annotation
xml:lang  xs:language        
source
<xs:element name="strong" type="styleType"/>

element styleType/emphasis
diagram
namespace http://www.gribuser.ru/xml/fictionbook/2.0
type styleType
children strong emphasis style a strikethrough sub sup code image
attributes
Name  Type  Use  Default  Fixed  Annotation
xml:lang  xs:language        
source
<xs:element name="emphasis" type="styleType"/>

element styleType/style
diagram
namespace http://www.gribuser.ru/xml/fictionbook/2.0
type namedStyleType
children strong emphasis style a strikethrough sub sup code image
attributes
Name  Type  Use  Default  Fixed  Annotation
xml:lang  xs:language  optional      
name  xs:token  required      
source
<xs:element name="style" type="namedStyleType"/>

element styleType/a
diagram
namespace http://www.gribuser.ru/xml/fictionbook/2.0
type linkType
children strong emphasis style strikethrough sub sup code image
attributes
Name  Type  Use  Default  Fixed  Annotation
xlink:type  xs:string  optional    simple  
xlink:href  xs:string  required      
type  xs:token  optional      
source
<xs:element name="a" type="linkType"/>

element styleType/strikethrough
diagram
namespace http://www.gribuser.ru/xml/fictionbook/2.0
type styleType
children strong emphasis style a strikethrough sub sup code image
attributes
Name  Type  Use  Default  Fixed  Annotation
xml:lang  xs:language        
source
<xs:element name="strikethrough" type="styleType"/>

element styleType/sub
diagram
namespace http://www.gribuser.ru/xml/fictionbook/2.0
type styleType
children strong emphasis style a strikethrough sub sup code image
attributes
Name  Type  Use  Default  Fixed  Annotation
xml:lang  xs:language        
source
<xs:element name="sub" type="styleType"/>

element styleType/sup
diagram
namespace http://www.gribuser.ru/xml/fictionbook/2.0
type styleType
children strong emphasis style a strikethrough sub sup code image
attributes
Name  Type  Use  Default  Fixed  Annotation
xml:lang  xs:language        
source
<xs:element name="sup" type="styleType"/>

element styleType/code
diagram
namespace http://www.gribuser.ru/xml/fictionbook/2.0
type styleType
children strong emphasis style a strikethrough sub sup code image
attributes
Name  Type  Use  Default  Fixed  Annotation
xml:lang  xs:language        
source
<xs:element name="code" type="styleType"/>

element styleType/image
diagram
namespace http://www.gribuser.ru/xml/fictionbook/2.0
type inlineImageType
attributes
Name  Type  Use  Default  Fixed  Annotation
xlink:type  xs:string      simple  
xlink:href  xs:string        
alt  xs:string  optional      
source
<xs:element name="image" type="inlineImageType"/>

complexType tableType
diagram
namespace http://www.gribuser.ru/xml/fictionbook/2.0
children tr
used by
elements citeType/table annotationType/table sectionType/table sectionType/table
attributes
Name  Type  Use  Default  Fixed  Annotation
style  xs:string  optional      
id  xs:ID  optional      
annotation
documentation 
Basic html-like tables
source
<xs:complexType name="tableType">
  <xs:annotation>
    <xs:documentation>Basic html-like tables</xs:documentation>
  </xs:annotation>
  <xs:sequence>
    <xs:element name="tr" maxOccurs="unbounded">
      <xs:complexType>
        <xs:choice maxOccurs="unbounded">
          <xs:element name="th" type="tdType"/>
          <xs:element name="td" type="tdType"/>
        </xs:choice>
        <xs:attribute name="align" type="alignType" use="optional" default="left"/>
      </xs:complexType>
    </xs:element>
  </xs:sequence>
  <xs:attribute name="style" type="xs:string" use="optional"/>
  <xs:attribute name="id" type="xs:ID" use="optional"/>
</xs:complexType>

element tableType/tr
diagram
namespace http://www.gribuser.ru/xml/fictionbook/2.0
children th td
attributes
Name  Type  Use  Default  Fixed  Annotation
align  alignType  optional  left    
source
<xs:element name="tr" maxOccurs="unbounded">
  <xs:complexType>
    <xs:choice maxOccurs="unbounded">
      <xs:element name="th" type="tdType"/>
      <xs:element name="td" type="tdType"/>
    </xs:choice>
    <xs:attribute name="align" type="alignType" use="optional" default="left"/>
  </xs:complexType>
</xs:element>

element tableType/tr/th
diagram
namespace http://www.gribuser.ru/xml/fictionbook/2.0
type tdType
children strong emphasis style a strikethrough sub sup code image
attributes
Name  Type  Use  Default  Fixed  Annotation
xml:lang  xs:language        
id  xs:ID  optional      
style  xs:string  optional      
colspan  xs:integer  optional      
rowspan  xs:integer  optional      
align  alignType  optional  left    
source
<xs:element name="th" type="tdType"/>

element tableType/tr/td
diagram
namespace http://www.gribuser.ru/xml/fictionbook/2.0
type tdType
children strong emphasis style a strikethrough sub sup code image
attributes
Name  Type  Use  Default  Fixed  Annotation
xml:lang  xs:language        
id  xs:ID  optional      
style  xs:string  optional      
colspan  xs:integer  optional      
rowspan  xs:integer  optional      
align  alignType  optional  left    
source
<xs:element name="td" type="tdType"/>

complexType tdType
diagram
namespace http://www.gribuser.ru/xml/fictionbook/2.0
type extension of styleType
children strong emphasis style a strikethrough sub sup code image
used by
elements tableType/tr/td tableType/tr/th
attributes
Name  Type  Use  Default  Fixed  Annotation
xml:lang  xs:language        
id  xs:ID  optional      
style  xs:string  optional      
colspan  xs:integer  optional      
rowspan  xs:integer  optional      
align  alignType  optional  left    
source
<xs:complexType name="tdType" mixed="true">
  <xs:complexContent mixed="true">
    <xs:extension base="styleType">
      <xs:attribute name="id" type="xs:ID" use="optional"/>
      <xs:attribute name="style" type="xs:string" use="optional"/>
      <xs:attribute name="colspan" type="xs:integer" use="optional"/>
      <xs:attribute name="rowspan" type="xs:integer" use="optional"/>
      <xs:attribute name="align" type="alignType" use="optional" default="left"/>
    </xs:extension>
  </xs:complexContent>
</xs:complexType>

complexType textFieldType
diagram
namespace http://www.gribuser.ru/xml/fictionbook/2.0
type extension of xs:string
used by
elements FictionBook/description/publish-info/book-name title-infoType/book-title FictionBook/description/publish-info/city FictionBook/description/custom-info authorType/first-name FictionBook/description/publish-info/isbn title-infoType/keywords authorType/last-name authorType/middle-name authorType/nickname authorType/nickname FictionBook/description/document-info/program-used FictionBook/description/publish-info/publisher FictionBook/description/document-info/src-ocr
attributes
Name  Type  Use  Default  Fixed  Annotation
xml:lang  xs:language        
source
<xs:complexType name="textFieldType">
  <xs:simpleContent>
    <xs:extension base="xs:string">
      <xs:attribute ref="xml:lang"/>
    </xs:extension>
  </xs:simpleContent>
</xs:complexType>

complexType title-infoType
diagram
namespace http://www.gribuser.ru/xml/fictionbook/2.0
children genre author book-title annotation keywords date coverpage lang src-lang translator sequence
used by
elements FictionBook/description/src-title-info FictionBook/description/title-info
annotation
documentation 
Book (as a book opposite a document) description
source
<xs:complexType name="title-infoType">
  <xs:annotation>
    <xs:documentation>Book (as a book opposite a document) description</xs:documentation>
  </xs:annotation>
  <xs:sequence>
    <xs:element name="genre" maxOccurs="unbounded">
      <xs:annotation>
        <xs:documentation>Genre of this book, with the optional match percentage</xs:documentation>
      </xs:annotation>
      <xs:complexType>
        <xs:simpleContent>
          <xs:extension base="genre:genreType">
            <xs:attribute name="match" type="xs:integer" use="optional" default="100"/>
          </xs:extension>
        </xs:simpleContent>
      </xs:complexType>
    </xs:element>
    <xs:element name="author" maxOccurs="unbounded">
      <xs:annotation>
        <xs:documentation>Author(s) of this book</xs:documentation>
      </xs:annotation>
      <xs:complexType>
        <xs:complexContent>
          <xs:extension base="authorType"/>
        </xs:complexContent>
      </xs:complexType>
    </xs:element>
    <xs:element name="book-title" type="textFieldType">
      <xs:annotation>
        <xs:documentation>Book title</xs:documentation>
      </xs:annotation>
    </xs:element>
    <xs:element name="annotation" type="annotationType" minOccurs="0">
      <xs:annotation>
        <xs:documentation>Annotation for this book</xs:documentation>
      </xs:annotation>
    </xs:element>
    <xs:element name="keywords" type="textFieldType" minOccurs="0">
      <xs:annotation>
        <xs:documentation>Any keywords for this book, intended for use in search engines</xs:documentation>
      </xs:annotation>
    </xs:element>
    <xs:element name="date" type="dateType" minOccurs="0">
      <xs:annotation>
        <xs:documentation>Date this book was written, can be not exact, e.g. 1863-1867. If an optional attribute is present, then it should contain some computer-readable date from the interval for use by search and indexingengines</xs:documentation>
      </xs:annotation>
    </xs:element>
    <xs:element name="coverpage" minOccurs="0">
      <xs:annotation>
        <xs:documentation>Any coverpage items, currently only images</xs:documentation>
      </xs:annotation>
      <xs:complexType>
        <xs:sequence>
          <xs:element name="image" type="inlineImageType" maxOccurs="unbounded"/>
        </xs:sequence>
      </xs:complexType>
    </xs:element>
    <xs:element name="lang" type="xs:string">
      <xs:annotation>
        <xs:documentation>Book's language</xs:documentation>
      </xs:annotation>
    </xs:element>
    <xs:element name="src-lang" type="xs:string" minOccurs="0">
      <xs:annotation>
        <xs:documentation>Book's source language if this is a translation</xs:documentation>
      </xs:annotation>
    </xs:element>
    <xs:element name="translator" type="authorType" minOccurs="0" maxOccurs="unbounded">
      <xs:annotation>
        <xs:documentation>Translators if this is a translation</xs:documentation>
      </xs:annotation>
    </xs:element>
    <xs:element name="sequence" type="sequenceType" minOccurs="0" maxOccurs="unbounded">
      <xs:annotation>
        <xs:documentation>Any sequences this book might be part of</xs:documentation>
      </xs:annotation>
    </xs:element>
  </xs:sequence>
</xs:complexType>

element title-infoType/genre
diagram
namespace http://www.gribuser.ru/xml/fictionbook/2.0
type extension of genre:genreType
facets
enumeration sf_history
enumeration sf_action
enumeration sf_epic
enumeration sf_heroic
enumeration sf_detective
enumeration sf_cyberpunk
enumeration sf_space
enumeration sf_social
enumeration sf_horror
enumeration sf_humor
enumeration sf_fantasy
enumeration sf
enumeration det_classic
enumeration det_police
enumeration det_action
enumeration det_irony
enumeration det_history
enumeration det_espionage
enumeration det_crime
enumeration det_political
enumeration det_maniac
enumeration det_hard
enumeration thriller
enumeration detective
enumeration prose_classic
enumeration prose_history
enumeration prose_contemporary
enumeration prose_counter
enumeration prose_rus_classic
enumeration prose_su_classics
enumeration love_contemporary
enumeration love_history
enumeration love_detective
enumeration love_short
enumeration love_erotica
enumeration adv_western
enumeration adv_history
enumeration adv_indian
enumeration adv_maritime
enumeration adv_geo
enumeration adv_animal
enumeration adventure
enumeration child_tale
enumeration child_verse
enumeration child_prose
enumeration child_sf
enumeration child_det
enumeration child_adv
enumeration child_education
enumeration children
enumeration poetry
enumeration dramaturgy
enumeration antique_ant
enumeration antique_european
enumeration antique_russian
enumeration antique_east
enumeration antique_myths
enumeration antique
enumeration sci_history
enumeration sci_psychology
enumeration sci_culture
enumeration sci_religion
enumeration sci_philosophy
enumeration sci_politics
enumeration sci_business
enumeration sci_juris
enumeration sci_linguistic
enumeration sci_medicine
enumeration sci_phys
enumeration sci_math
enumeration sci_chem
enumeration sci_biology
enumeration sci_tech
enumeration science
enumeration comp_www
enumeration comp_programming
enumeration comp_hard
enumeration comp_soft
enumeration comp_db
enumeration comp_osnet
enumeration computers
enumeration ref_encyc
enumeration ref_dict
enumeration ref_ref
enumeration ref_guide
enumeration reference
enumeration nonf_biography
enumeration nonf_publicism
enumeration nonf_criticism
enumeration nonfiction
enumeration design
enumeration religion_rel
enumeration religion_esoterics
enumeration religion_self
enumeration religion
enumeration humor_anecdote
enumeration humor_prose
enumeration humor_verse
enumeration humor
enumeration home_cooking
enumeration home_pets
enumeration home_crafts
enumeration home_entertain
enumeration home_health
enumeration home_garden
enumeration home_diy
enumeration home_sport
enumeration home_sex
enumeration home
attributes
Name  Type  Use  Default  Fixed  Annotation
match  xs:integer  optional  100    
annotation
documentation 
Genre of this book, with the optional match percentage
source
<xs:element name="genre" maxOccurs="unbounded">
  <xs:annotation>
    <xs:documentation>Genre of this book, with the optional match percentage</xs:documentation>
  </xs:annotation>
  <xs:complexType>
    <xs:simpleContent>
      <xs:extension base="genre:genreType">
        <xs:attribute name="match" type="xs:integer" use="optional" default="100"/>
      </xs:extension>
    </xs:simpleContent>
  </xs:complexType>
</xs:element>

element title-infoType/author
diagram
namespace http://www.gribuser.ru/xml/fictionbook/2.0
type extension of authorType
children first-name middle-name last-name nickname home-page email nickname home-page email
annotation
documentation 
Author(s) of this book
source
<xs:element name="author" maxOccurs="unbounded">
  <xs:annotation>
    <xs:documentation>Author(s) of this book</xs:documentation>
  </xs:annotation>
  <xs:complexType>
    <xs:complexContent>
      <xs:extension base="authorType"/>
    </xs:complexContent>
  </xs:complexType>
</xs:element>

element title-infoType/book-title
diagram
namespace http://www.gribuser.ru/xml/fictionbook/2.0
type textFieldType
attributes
Name  Type  Use  Default  Fixed  Annotation
xml:lang  xs:language        
annotation
documentation 
Book title
source
<xs:element name="book-title" type="textFieldType">
  <xs:annotation>
    <xs:documentation>Book title</xs:documentation>
  </xs:annotation>
</xs:element>

element title-infoType/annotation
diagram
namespace http://www.gribuser.ru/xml/fictionbook/2.0
type annotationType
children p poem cite subtitle table empty-line
attributes
Name  Type  Use  Default  Fixed  Annotation
id  xs:ID  optional      
xml:lang  xs:language        
annotation
documentation 
Annotation for this book
source
<xs:element name="annotation" type="annotationType" minOccurs="0">
  <xs:annotation>
    <xs:documentation>Annotation for this book</xs:documentation>
  </xs:annotation>
</xs:element>

element title-infoType/keywords
diagram
namespace http://www.gribuser.ru/xml/fictionbook/2.0
type textFieldType
attributes
Name  Type  Use  Default  Fixed  Annotation
xml:lang  xs:language        
annotation
documentation 
Any keywords for this book, intended for use in search engines
source
<xs:element name="keywords" type="textFieldType" minOccurs="0">
  <xs:annotation>
    <xs:documentation>Any keywords for this book, intended for use in search engines</xs:documentation>
  </xs:annotation>
</xs:element>

element title-infoType/date
diagram
namespace http://www.gribuser.ru/xml/fictionbook/2.0
type dateType
attributes
Name  Type  Use  Default  Fixed  Annotation
value  xs:date  optional      
xml:lang  xs:language        
annotation
documentation 
Date this book was written, can be not exact, e.g. 1863-1867. If an optional attribute is present, then it should contain some computer-readable date from the interval for use by search and indexingengines
source
<xs:element name="date" type="dateType" minOccurs="0">
  <xs:annotation>
    <xs:documentation>Date this book was written, can be not exact, e.g. 1863-1867. If an optional attribute is present, then it should contain some computer-readable date from the interval for use by search and indexingengines</xs:documentation>
  </xs:annotation>
</xs:element>

element title-infoType/coverpage
diagram
namespace http://www.gribuser.ru/xml/fictionbook/2.0
children image
annotation
documentation 
Any coverpage items, currently only images
source
<xs:element name="coverpage" minOccurs="0">
  <xs:annotation>
    <xs:documentation>Any coverpage items, currently only images</xs:documentation>
  </xs:annotation>
  <xs:complexType>
    <xs:sequence>
      <xs:element name="image" type="inlineImageType" maxOccurs="unbounded"/>
    </xs:sequence>
  </xs:complexType>
</xs:element>

element title-infoType/coverpage/image
diagram
namespace http://www.gribuser.ru/xml/fictionbook/2.0
type inlineImageType
attributes
Name  Type  Use  Default  Fixed  Annotation
xlink:type  xs:string      simple  
xlink:href  xs:string        
alt  xs:string  optional      
source
<xs:element name="image" type="inlineImageType" maxOccurs="unbounded"/>

element title-infoType/lang
diagram
namespace http://www.gribuser.ru/xml/fictionbook/2.0
type xs:string
annotation
documentation 
Book's language
source
<xs:element name="lang" type="xs:string">
  <xs:annotation>
    <xs:documentation>Book's language</xs:documentation>
  </xs:annotation>
</xs:element>

element title-infoType/src-lang
diagram
namespace http://www.gribuser.ru/xml/fictionbook/2.0
type xs:string
annotation
documentation 
Book's source language if this is a translation
source
<xs:element name="src-lang" type="xs:string" minOccurs="0">
  <xs:annotation>
    <xs:documentation>Book's source language if this is a translation</xs:documentation>
  </xs:annotation>
</xs:element>

element title-infoType/translator
diagram
namespace http://www.gribuser.ru/xml/fictionbook/2.0
type authorType
children first-name middle-name last-name nickname home-page email nickname home-page email
annotation
documentation 
Translators if this is a translation
source
<xs:element name="translator" type="authorType" minOccurs="0" maxOccurs="unbounded">
  <xs:annotation>
    <xs:documentation>Translators if this is a translation</xs:documentation>
  </xs:annotation>
</xs:element>

element title-infoType/sequence
diagram
namespace http://www.gribuser.ru/xml/fictionbook/2.0
type sequenceType
children sequence
attributes
Name  Type  Use  Default  Fixed  Annotation
name  xs:string  required      
number  xs:integer  optional      
xml:lang  xs:language        
annotation
documentation 
Any sequences this book might be part of
source
<xs:element name="sequence" type="sequenceType" minOccurs="0" maxOccurs="unbounded">
  <xs:annotation>
    <xs:documentation>Any sequences this book might be part of</xs:documentation>
  </xs:annotation>
</xs:element>

complexType titleType
diagram
namespace http://www.gribuser.ru/xml/fictionbook/2.0
children p empty-line
used by
elements FictionBook/body/title poemType/title poemType/stanza/title sectionType/title
attributes
Name  Type  Use  Default  Fixed  Annotation
xml:lang  xs:language        
annotation
documentation 
A title, used in sections, poems and body elements
source
<xs:complexType name="titleType">
  <xs:annotation>
    <xs:documentation>A title, used in sections, poems and body elements</xs:documentation>
  </xs:annotation>
  <xs:choice minOccurs="0" maxOccurs="unbounded">
    <xs:element name="p" type="pType"/>
    <xs:element name="empty-line"/>
  </xs:choice>
  <xs:attribute ref="xml:lang"/>
</xs:complexType>

element titleType/p
diagram
namespace http://www.gribuser.ru/xml/fictionbook/2.0
type pType
children strong emphasis style a strikethrough sub sup code image
attributes
Name  Type  Use  Default  Fixed  Annotation
xml:lang  xs:language        
id  xs:ID  optional      
style  xs:string  optional      
source
<xs:element name="p" type="pType"/>

element titleType/empty-line
diagram
namespace http://www.gribuser.ru/xml/fictionbook/2.0
source
<xs:element name="empty-line"/>

simpleType alignType
namespace http://www.gribuser.ru/xml/fictionbook/2.0
type restriction of xs:token
used by
attributes tableType/tr/@align tdType/@align
facets
enumeration left
enumeration right
enumeration center
annotation
documentation 
Align for table cells
source
<xs:simpleType name="alignType">
  <xs:annotation>
    <xs:documentation>Align for table cells</xs:documentation>
  </xs:annotation>
  <xs:restriction base="xs:token">
    <xs:enumeration value="left"/>
    <xs:enumeration value="right"/>
    <xs:enumeration value="center"/>
  </xs:restriction>
</xs:simpleType>

simpleType docGenerationInstructionType
namespace http://www.gribuser.ru/xml/fictionbook/2.0
type restriction of xs:token
used by
attributes outPutDocumentType/@create partShareInstructionType/@include shareInstructionType/@include-all
facets
enumeration require
enumeration allow
enumeration deny
annotation
documentation 
List of instructions to process sections (allow|deny|require)
source
<xs:simpleType name="docGenerationInstructionType">
  <xs:annotation>
    <xs:documentation>List of instructions to process sections (allow|deny|require)</xs:documentation>
  </xs:annotation>
  <xs:restriction base="xs:token">
    <xs:enumeration value="require"/>
    <xs:enumeration value="allow"/>
    <xs:enumeration value="deny"/>
  </xs:restriction>
</xs:simpleType>

simpleType shareModesType
namespace http://www.gribuser.ru/xml/fictionbook/2.0
type restriction of xs:token
used by
attribute shareInstructionType/@mode
facets
enumeration free
enumeration paid
annotation
documentation 
Modes for document sharing (free|paid for now)
source
<xs:simpleType name="shareModesType">
  <xs:annotation>
    <xs:documentation>Modes for document sharing (free|paid for now)</xs:documentation>
  </xs:annotation>
  <xs:restriction base="xs:token">
    <xs:enumeration value="free"/>
    <xs:enumeration value="paid"/>
  </xs:restriction>
</xs:simpleType>

simpleType vAlignType
namespace http://www.gribuser.ru/xml/fictionbook/2.0
type restriction of xs:token
facets
enumeration top
enumeration middle
enumeration bottom
annotation
documentation 
Align for table cells
source
<xs:simpleType name="vAlignType">
  <xs:annotation>
    <xs:documentation>Align for table cells</xs:documentation>
  </xs:annotation>
  <xs:restriction base="xs:token">
    <xs:enumeration value="top"/>
    <xs:enumeration value="middle"/>
    <xs:enumeration value="bottom"/>
  </xs:restriction>
</xs:simpleType>

simpleType genre:genreType
namespace http://www.gribuser.ru/xml/fictionbook/2.0/genres
type restriction of xs:token
used by
element title-infoType/genre
facets
enumeration sf_history
enumeration sf_action
enumeration sf_epic
enumeration sf_heroic
enumeration sf_detective
enumeration sf_cyberpunk
enumeration sf_space
enumeration sf_social
enumeration sf_horror
enumeration sf_humor
enumeration sf_fantasy
enumeration sf
enumeration det_classic
enumeration det_police
enumeration det_action
enumeration det_irony
enumeration det_history
enumeration det_espionage
enumeration det_crime
enumeration det_political
enumeration det_maniac
enumeration det_hard
enumeration thriller
enumeration detective
enumeration prose_classic
enumeration prose_history
enumeration prose_contemporary
enumeration prose_counter
enumeration prose_rus_classic
enumeration prose_su_classics
enumeration love_contemporary
enumeration love_history
enumeration love_detective
enumeration love_short
enumeration love_erotica
enumeration adv_western
enumeration adv_history
enumeration adv_indian
enumeration adv_maritime
enumeration adv_geo
enumeration adv_animal
enumeration adventure
enumeration child_tale
enumeration child_verse
enumeration child_prose
enumeration child_sf
enumeration child_det
enumeration child_adv
enumeration child_education
enumeration children
enumeration poetry
enumeration dramaturgy
enumeration antique_ant
enumeration antique_european
enumeration antique_russian
enumeration antique_east
enumeration antique_myths
enumeration antique
enumeration sci_history
enumeration sci_psychology
enumeration sci_culture
enumeration sci_religion
enumeration sci_philosophy
enumeration sci_politics
enumeration sci_business
enumeration sci_juris
enumeration sci_linguistic
enumeration sci_medicine
enumeration sci_phys
enumeration sci_math
enumeration sci_chem
enumeration sci_biology
enumeration sci_tech
enumeration science
enumeration comp_www
enumeration comp_programming
enumeration comp_hard
enumeration comp_soft
enumeration comp_db
enumeration comp_osnet
enumeration computers
enumeration ref_encyc
enumeration ref_dict
enumeration ref_ref
enumeration ref_guide
enumeration reference
enumeration nonf_biography
enumeration nonf_publicism
enumeration nonf_criticism
enumeration nonfiction
enumeration design
enumeration religion_rel
enumeration religion_esoterics
enumeration religion_self
enumeration religion
enumeration humor_anecdote
enumeration humor_prose
enumeration humor_verse
enumeration humor
enumeration home_cooking
enumeration home_pets
enumeration home_crafts
enumeration home_entertain
enumeration home_health
enumeration home_garden
enumeration home_diy
enumeration home_sport
enumeration home_sex
enumeration home
source
<xs:simpleType name="genreType">
  <xs:restriction base="xs:token">
    <xs:enumeration value="sf_history"/>
    <xs:enumeration value="sf_action"/>
    <xs:enumeration value="sf_epic"/>
    <xs:enumeration value="sf_heroic"/>
    <xs:enumeration value="sf_detective"/>
    <xs:enumeration value="sf_cyberpunk"/>
    <xs:enumeration value="sf_space"/>
    <xs:enumeration value="sf_social"/>
    <xs:enumeration value="sf_horror"/>
    <xs:enumeration value="sf_humor"/>
    <xs:enumeration value="sf_fantasy"/>
    <xs:enumeration value="sf"/>
    <xs:enumeration value="det_classic"/>
    <xs:enumeration value="det_police"/>
    <xs:enumeration value="det_action"/>
    <xs:enumeration value="det_irony"/>
    <xs:enumeration value="det_history"/>
    <xs:enumeration value="det_espionage"/>
    <xs:enumeration value="det_crime"/>
    <xs:enumeration value="det_political"/>
    <xs:enumeration value="det_maniac"/>
    <xs:enumeration value="det_hard"/>
    <xs:enumeration value="thriller"/>
    <xs:enumeration value="detective"/>
    <xs:enumeration value="prose_classic"/>
    <xs:enumeration value="prose_history"/>
    <xs:enumeration value="prose_contemporary"/>
    <xs:enumeration value="prose_counter"/>
    <xs:enumeration value="prose_rus_classic"/>
    <xs:enumeration value="prose_su_classics"/>
    <xs:enumeration value="love_contemporary"/>
    <xs:enumeration value="love_history"/>
    <xs:enumeration value="love_detective"/>
    <xs:enumeration value="love_short"/>
    <xs:enumeration value="love_erotica"/>
    <xs:enumeration value="adv_western"/>
    <xs:enumeration value="adv_history"/>
    <xs:enumeration value="adv_indian"/>
    <xs:enumeration value="adv_maritime"/>
    <xs:enumeration value="adv_geo"/>
    <xs:enumeration value="adv_animal"/>
    <xs:enumeration value="adventure"/>
    <xs:enumeration value="child_tale"/>
    <xs:enumeration value="child_verse"/>
    <xs:enumeration value="child_prose"/>
    <xs:enumeration value="child_sf"/>
    <xs:enumeration value="child_det"/>
    <xs:enumeration value="child_adv"/>
    <xs:enumeration value="child_education"/>
    <xs:enumeration value="children"/>
    <xs:enumeration value="poetry"/>
    <xs:enumeration value="dramaturgy"/>
    <xs:enumeration value="antique_ant"/>
    <xs:enumeration value="antique_european"/>
    <xs:enumeration value="antique_russian"/>
    <xs:enumeration value="antique_east"/>
    <xs:enumeration value="antique_myths"/>
    <xs:enumeration value="antique"/>
    <xs:enumeration value="sci_history"/>
    <xs:enumeration value="sci_psychology"/>
    <xs:enumeration value="sci_culture"/>
    <xs:enumeration value="sci_religion"/>
    <xs:enumeration value="sci_philosophy"/>
    <xs:enumeration value="sci_politics"/>
    <xs:enumeration value="sci_business"/>
    <xs:enumeration value="sci_juris"/>
    <xs:enumeration value="sci_linguistic"/>
    <xs:enumeration value="sci_medicine"/>
    <xs:enumeration value="sci_phys"/>
    <xs:enumeration value="sci_math"/>
    <xs:enumeration value="sci_chem"/>
    <xs:enumeration value="sci_biology"/>
    <xs:enumeration value="sci_tech"/>
    <xs:enumeration value="science"/>
    <xs:enumeration value="comp_www"/>
    <xs:enumeration value="comp_programming"/>
    <xs:enumeration value="comp_hard"/>
    <xs:enumeration value="comp_soft"/>
    <xs:enumeration value="comp_db"/>
    <xs:enumeration value="comp_osnet"/>
    <xs:enumeration value="computers"/>
    <xs:enumeration value="ref_encyc"/>
    <xs:enumeration value="ref_dict"/>
    <xs:enumeration value="ref_ref"/>
    <xs:enumeration value="ref_guide"/>
    <xs:enumeration value="reference"/>
    <xs:enumeration value="nonf_biography"/>
    <xs:enumeration value="nonf_publicism"/>
    <xs:enumeration value="nonf_criticism"/>
    <xs:enumeration value="nonfiction"/>
    <xs:enumeration value="design"/>
    <xs:enumeration value="religion_rel"/>
    <xs:enumeration value="religion_esoterics"/>
    <xs:enumeration value="religion_self"/>
    <xs:enumeration value="religion"/>
    <xs:enumeration value="humor_anecdote"/>
    <xs:enumeration value="humor_prose"/>
    <xs:enumeration value="humor_verse"/>
    <xs:enumeration value="humor"/>
    <xs:enumeration value="home_cooking"/>
    <xs:enumeration value="home_pets"/>
    <xs:enumeration value="home_crafts"/>
    <xs:enumeration value="home_entertain"/>
    <xs:enumeration value="home_health"/>
    <xs:enumeration value="home_garden"/>
    <xs:enumeration value="home_diy"/>
    <xs:enumeration value="home_sport"/>
    <xs:enumeration value="home_sex"/>
    <xs:enumeration value="home"/>
  </xs:restriction>
</xs:simpleType>


XML Schema documentation generated with
XML Spy Schema Editor www.xmlspy.com