Элемент section
Материал из FictionBook.
Внимание! Содержимое этой страницы требуется написать или доделать начатое. |
Содержание |
[править]
Элемент <section>
[править]
Описание
Секция, основной структурный блок книги
[править]
Версия FB
2.0 и выше
[править]
Поддерживается
- HaaliReader
- CoolReader 2
TODO: где еще поддерживается?
[править]
Атрибуты
- id (опциональный) - Идентификатор (якорь, метка) для ссылок на данный элемент
- xml:lang (опциональный) - язык.
[править]
Подчиненные элементы
Должен содержать последовательность элементов в таком порядке:
- <title> 0..1 (опционально);
- <epigraph> 0..n (любое число, опционально);
- <image> 0..1 (опционально);
- <annotation> 0..1 (опционально);
- Один из вариантов,
- либо вложенные секции:
- <section> - (любое число, обязательно);
- либо произвольный набор (в произвольном количестве) из следующих элементов:
- <p>;
- <image>;
- <poem>;
- <subtitle>;
- <cite>;
- <empty-line>;
- <table>.
- либо вложенные секции:
[править]
Подчинен
Может содержаться в следующих элементах:
- <body>;
- <section>.
[править]
Пример использования
[править]
Смотри также
[править]
Комментарии
[править]
Фрагмент схемы
<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>