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