Root element |
<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> |
< FictionBook xmlns = "http://www.gribuser.ru/xml/fictionbook/2.0" > |
< description> |
< title-info> |
< book-title> |
example |
</ book-title> |
< author> |
< nickname> |
Online-Convert.com |
</ nickname> |
</ author> |
< genre> |
antique |
</ genre> |
< coverpage> |
</ coverpage> |
< lang> |
en |
</ lang> |