[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: FAQ DTD
On Thu, 24 Sep 1998 23:57:55 +0400, Alex Povolotsky wrote:
> А есть ли такой в природе?
Навалом. Например, в комплекте cost. Прилагается.
<!-- FAQ.dtd
A simple Document Type Definition for the
Cost Frequently Asked Questions list.
Joe English <joe@art.com>
$Revision: 1.3 $
-->
<!ELEMENT FAQ - - (head, body) -- document element -- >
<!ATTLIST FAQ
REVISION CDATA #REQUIRED
>
<!ELEMENT HEAD - - (title,author) -- document metainfo -- >
<!ELEMENT AUTHOR - - (#PCDATA) -- document author -- >
<!ATTLIST AUTHOR
EMAIL CDATA #IMPLIED -- author's e-mail address --
>
<!ELEMENT BODY - - (sect+) -- document content -- >
<!ENTITY % text "(#PCDATA|emph|qref|lit|dfn|url)*"
-- inlined elements -- >
<!ENTITY % flow "(p|note|list|pre|excerpt)*"
-- displayed elements -- >
<!ELEMENT SECT - O (title, qna+) -- Section -- >
<!ELEMENT TITLE - - (#PCDATA)
-- Section title (in SECT) or document title (in HEAD) -- >
<!ELEMENT QNA - O (Q,A+) -- question-and-answer(s) -- >
<!ATTLIST QNA
ID ID #IMPLIED -- ID for <QREF> --
DATE CDATA #IMPLIED -- date last modified --
>
<!ELEMENT Q - O %text; -- Question -->
<!ELEMENT A - O (AH, %flow;) -- Answer --
-- AH is for short answers (a sentence or so),
and %flow; (block-level elements) is for longer ones.
--
>
<!ELEMENT AH O O (%text;) -- answer heading -- >
<!ELEMENT P - O %text; -- paragraph -- >
<!ELEMENT NOTE - O %text; -- warning note -- >
<!ELEMENT LIST - - (IT+) -- bulleted list -- >
<!ELEMENT IT - O %text; -- list item -->
<!ELEMENT PRE - - (#PCDATA) -- same as in HTML -- >
<!ELEMENT EXCERPT - - %text; -- quoted material -- >
<!ELEMENT EMPH - - %text; -- emphasized phrase -- >
<!ELEMENT LIT - - (#PCDATA) -- literal (computer) text -- >
<!ELEMENT DFN - - (#PCDATA) -- defined term -- >
<!ELEMENT URL - - (#PCDATA) -- Uniform Resource Locator -- >
<!ATTLIST URL
FORMAT NOTATION (url) #FIXED url
>
<!NOTATION URL
PUBLIC "-//IETF//NOTATION RFC 1738 Uniform Resource Locators//EN">
<!ELEMENT QREF - O EMPTY -- reference to question -- >
<!ATTLIST QREF
REFID IDREF #REQUIRED -- ID of cited question --
>
<!-- Data entities: -->
<!ENTITY lt CDATA "<" >
<!ENTITY gt CDATA ">" >
<!ENTITY amp CDATA "&" >
<!ENTITY nbsp SDATA "[nbsp ]">
<!ENTITY mdash SDATA "[mdash ]">
<!-- END of FAQ.dtd -->
Best regards, -- Boris.