diff --git a/doc/xmldtd.html b/doc/xmldtd.html index b526c63c..a8c2ce73 100644 --- a/doc/xmldtd.html +++ b/doc/xmldtd.html @@ -1,7 +1,7 @@
DTD is the acronym for Document Type Definition. This is a description of the content for a familly of XML files. This is part of the XML 1.0 specification, and alows to describe and check that a given document instance -conforms to a set of rules detailing its structure and content.
+conforms to a set of rules detailing its structure and content.<!DOCTYPE spec SYSTEM "dtds/mydtd">
Notes:
+Notes:
PUBLIC
identifier (a
magic string) so that the DTd is looked up in catalogs on the client side
- without having to locate it on the web <!ELEMENT spec (front, body, back?)>
it also expresses that the spec element contains one front, one body and
-one optionnal back in this order. The declaration of one element of the
-structure and its content are done in a single declaration. Similary the
-following declares div1
elements:
it also expresses that the spec element contains one front
,
+one body
and one optionnal back
children elements in
+this order. The declaration of one element of the structure and its content
+are done in a single declaration. Similary the following declares
+div1
elements:
<!ELEMENT div1 (head, (p | list | note)*, div2*)>
means div1 contains one head then a series of optional p, lists and notes -and then an optional div2. And last but not least an element can contain -text:
+means div1 contains one head
then a series of optional
+p
, list
s and note
s and then an optional
+div2
. And last but not least an element can contain text:
<!ELEMENT b (#PCDATA)>
<!ELEMENT p (#PCDATA|a|ul|b|i|em)*>
p
can contain text or a
, ul
,
+
p
can contain text or a
, ul
,
b
, i
or em
elements in no particular
order.
means list
element have a type
attribute with 3
allowed values "bullets", "ordered" or "glossary" and which default to
-"ordered" if the attribute is not explicitely specified.
The content type of an attribute can be text (CDATA
),
anchor/reference/references
@@ -149,6 +150,19 @@ type ID
, usable for reference from attribute of type IDREF:
#FIXED
if it is the only allowed).
+Notes:
+<!ATTLIST termdef + id ID #REQUIRED + name CDATA #IMPLIED>+
The previous construct defines both id
and
+ name
attributes for the element termdef
The directory test/valid/dtds/
in the libxml distribution