Элемент poem
Материал из FictionBook.
(Различия между версиями)
Версия 13:29, 29 марта 2007
Внимание! Содержимое этой страницы требуется написать или доделать начатое. |
Содержание |
[править]
Элемент <poem>
[править]
Описание
Стихотворение
[править]
Версия FB
2.0 и выше
[править]
Поддерживается
- HaaliReader
- CoolReader 2
TODO: где еще поддерживается?
[править]
Атрибуты
- id (опциональный) - Идентификатор (якорь, метка) для ссылок на данный элемент
- xml:lang (опциональный) - язык.
[править]
Подчиненные элементы
- Последовательность элементов в таком порядке:
- <title> (опционально);
- <epigraph> 0..n (любое число, опционально);
- <stanza> 1..n (любое число, обязательно);
- <text-author> 0..n (любое число, опционально);
- <date> (опционально).
[править]
Подчинен
[править]
Пример использования
[править]
Смотри также
[править]
Комментарии
{{{comments}}}
[править]
Фрагмент схемы
<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>