Trees:
I 10 document instance set
II 14 start-tag
III 24 content
IV 19 end-tag
V 31 attribute specification list
VI 152 short reference use declaration (also in DTD grammar)
VII 169 link set use declaration (also in DTD grammar)
VIII 59 general entity reference
IX 62 character reference
Doc I 10 Document Instance Set (10 11 12 13)
Referred to by: 2 3 (Overall I).
13 element referred to by: 25 26 (Doc III).
Doc I A Dependencies
10 document instance set
|
+--------------+--------------+
| |
8 other prolog 11 base document element
|
12 document element
|
13 element
|
+-------------------+-------------------+
| | |
14 start-tag 24 content 19 end-tag
8: Basics VII
14: Doc II
24: Doc III
19: Doc IV
Doc I B Productions
10+ document instance set = 11 base document element, 8 other prolog*
11 base document element = 12 document element
12 document element = 13 element
13 element = 14 start-tag?, 24 content, 19 end-tag?
If the element has a declared content of EMPTY or an explicit content
reference, the end tag must be omitted. If OMITTAG NO, start-tags are
required and end-tags may be omitted only when they must be.
13 bis (OMITTAG NO)
13 bis element = 14 start-tag, 24 content, 19 end-tag?
Doc II 14 Start-Tag (14 15 16 17 18 28 29 30 120)
Referred to by: 13 (Doc I).
28-29 referred to by: 19 22 (Doc III).
30 referred to by: 72 (DTD XIV), 111 (DTD I), 117 (DTD II),
130 (DTD V), 133 (DTD VI), 167 (DTD XI).
120 referred to by: 118 119 (DTD II).
Doc II A Dependencies
14 start-tag
|
+------------+------+--+------------+-------------+
| | | | |
28 doc type 29 g.i. 31 attr 5 s 15 minimized
specification spec spec list start-tag
| | |
69 name group +--+--------+ +-----------+-------+----+
| | | | |
30 generic 120 rank 18 net- 16 empty 17 unclosed
identifier stem enabling start-tag start-tag
| | start-tag |
55 name 55 name | |
| |
+---------+---|------------+-----------+
| +---------+-+----------+ | |
| | | | | | |
29 g.i. 31 attribute 5 s 28 doc type
spec spec list spec
(see above) (see above)
See:
5: Basics III
31: Doc V
55: Basics IV
69: Basics V
Doc II B Productions
14 start-tag = (STAGO,
28 document type specification,
29 generic identifier specification,
31 attribute specification list,
5 s*,
TAGC)
| 15 minimized start-tag
If SHORTTAG NO, then no minimized start-tags are allowed. If CONCUR NO,
the document type specification must be empty.
28 document type specification = 69 name group?
If CONCUR NO, then no name group may be specified here.
29 generic identifier specification = 30 generic identifier | 120 rank stem
30 generic identifier = 55 name
120 rank stem = 55 name
15 minimized start-tag = 16 empty start-tag
| 17 unclosed start-tag
| 18 net-enabling start-tag
16+ empty start-tag = STAGO, TAGC
If OMITTAG YES, generic identifier supplied is that of most recently
opened open element; if OMITTAG NO, that of most recently closed
element. The base document element is supplied if there is no
most-recently closed or opened element.
17 unclosed start-tag = STAGO,
28 document type specification,
29 generic identifier specification,
31 attribute specification list,
5 s*
18+ net-enabling start-tag = STAGO,
29 generic identifier specification,
31 attribute specification list,
5 s*,
NET
Doc III 24 Content (24 25 26 27)
Referred to by: 13 (Doc I).
Doc III A Dependencies
24 content
|
+-----------+---------+----+-------------------+
| | | |
25 mixed 26 element 46 replaceable 47 character data
content content character data |
| | |
| +----------+---------+ |
+---------+----------+ | | |
| | | | | | |
48 data 27 other 13 element 5 s 48 data character
character content
|
+------------++--------+---------+-------+--------+---------+
| | | | | | |
91 comment 152 short 169 link 44 proc 59 gen 62 char 93 marked
declaration ref use set use instr entity ref section
declaratn declaratn reference declaratn
5: Basics III
13: Doc I (path=1/2/1/1)
44: Basics VII
46, 47: Basics II
48: Basics I
59: Basics IX
62: Basics IX
91: Basics VII
93: Basics VII
152: Doc VI
169: Doc VII
Doc III B Productions
24 content = 25 mixed content
| 26 element content
| 46 replaceable character data
| 47 character data
(N.B. "[replaceable] character data" is scanned only for ETAGO followed
by a name-start character. Start-tags embedded in such data will be
ignored--but end-tags will not be, so it's not a useful method for
including SGML examples, which should be done with marked sections.)
25 mixed content = (48 data character
| 13 element
| 27 other content)*
26 element content = (13 element | 27 other content | 5 s)*
27+ other content = 91 comment declaration
| 152 short reference use declaration
| 169+ link set use declaration
| 44 processing instruction
| SHORTREF
| 62 character reference
| 59+ general entity reference
| 93 marked section declaration
| EE
Doc IV 19 end-tag (19 20 21 22 23)
Referred to by: 13 (Doc I).
Doc IV A Dependencies
19 end-tag
|
+-----------+-------+--------------+
| | | |
28 document 29 g.i. 5 s 20 minimized end-tag
type spec spec |
| | |
| +---+-----+ +------+---+------------+
| | | | | |
69 name 30 g.i. 120 rank 21 empty 22 unclosed 23 null
group | stem end-tag end-tag end-tag
| | |
| | +--------+--+--------+
| | | | |
55 name 55 name 28 doc type 29 g.i. 5 s
specification spec
(see above) (see above)
5: Basics III
28: Doc II
29: Doc II
Doc IV B Productions
19 end-tag = (ETAGO,
28 document type specification,
29 generic identifier specification,
5 s*,
TAGC)
| 20 minimized end-tag
If SHORTTAG NO, then no minimized end-tags are allowed. If CONCUR NO,
then the document type specification must be empty.
20 minimized end-tag = 21 empty end-tag
| 22 unclosed end-tag
| 23 null end-tag
21+ empty end-tag = ETAGO, TAGC
22 unclosed end-tag = ETAGO,
28 document type specification,
29 generic identifier specification,
5 s*
23 null end-tag = NET
Doc V 31 attribute spec list (31 32 33 34 35 35.1 36 37 38 41 103)
Referred to by: 14 17 18 (Doc II), 149.2 (DTD VII), 166 168 (DTD X)
33 referred to by: 147 (DTD III).
41 referred to by: 35 (Doc V), 109 (DTD VII), 148 (DTD IV),
149.1 (DTD III). (Duplicated)
103 referred to by: 102 (DTD VII). (Duplicated.)
Doc V A Dependencies
31 attribute specification list
|
32 attribute specification
|
+----------------+-----------------------------------+
| | |
55 name 33 attribute value specification 5 s
|
+--------------+-------------------+
| |
35 attribute value 34 attribute value literal
| |
| 46 replaceable char data
|
+----+---------+---------+---------+---------+---------+
| | | | | |
47 character 103 general 36 id 38 id ref 41 notation |
data entity name value value name |
| +--++-----+ | |
+-----------+||+--------------+ |
|||| |
55 name |
|
+----+-------+-----+------+--+----+----------+--------+-----+
| | | | | | | | | |
| 43 number | 42 number | | 35.1 gen 37 id ref 40 name |
| token list | list | | entity list token |
| +--+ | +---+ | | name list | list |
58 number 56 number | +--+ | +--------+ +---+ |
token | 39 name list 57 name
| +-----+ token
55 name
See:
5: Basics III
39-43: Basics
46-47: Basics
55-58: Basics
Doc V B Productions
31 attribute specification list = 32 attribute specification*
32 attribute specification = 5 s*,
(55 name, 5 s*, VI, 5 s*)?,
33 attribute value specification
The leading s is optional only immediately after a delimiter, which
occurs only in connection with linked processes. If SHORTTAG YES or
OMITTAG YES, then attribute specifications are required only for
#REQUIRED attributes; others will get the default value. Current
attributes get new default for all elements for which the attribute
definition list defined the attribute. If SHORTTAG YES, then name and
VI may be omitted "if the attribute value specification is an
undelimited name token that is a member of a group specified in the
declared value for that attribute." (7.9.1.2))
33 attribute value specification = 35 attribute value
| 34 attribute value literal
34 attribute value literal = (LIT, 46 replaceable character data*, LIT)
| (LITA, 46 replaceable character data*, LITA)
(In attribute value literals, EE and RS are ignored and RE, SEPCHAR, and
SPACE character sequences are replaced by single SPACEs. 7.9.3)
(The productions 33-35 are inconsistent with the prose of the standard.
Production 35 specifies SPACES as part of the expansion of attribute
values which are not attribute value literals, and the prose prohibits
spaces in attribute values which are not attribute value literals.)
35+ attribute value = 47 character data
| 103 general entity name
| 35.1 general entity name list
| 36 id value
| 38 id reference value
| 37 id reference list
| 55 name
| 39+ name list
| 57 name token
| 40+ name token list
| 41 notation name
| 56 number
| 42+ number list
| 58 number token
| 43+ number token list
35.1+ general entity name list = 39+ name list
36 id value = 55 name
37 id reference list = 39+ name list
38 id reference value = 55 name
41 notation name = 55 name
103 general entity name = 55 name | (RNI, "DEFAULT")
Doc VI 152 short reference use declaration (152 151 153)
(also in DTD grammar)
Referred to by: 27 (Doc III), 115 (DTD VIII).
151 referred to by: 150 (DTD VIII).
Doc VI A Dependencies
152 short reference use declaration
|
+------------+----+--------------+
| | |
65 ps 72 associated 153 map specification
element type |
151 map name
|
55 name
See:
55, 65: Basics IV, III.
72: DTD XIV
Doc VI B Productions (also in DTD grammar)
152 short reference use declaration = MDO, "USEMAP",
65 ps+, 153 map specification,
(65 ps+, 72 associated element type)?,
65 ps*, MDC
(Map specification in 152 must be defined before being used, though not
necessarily before this declaration. Element type must be specified if
short-reference use declaration appears within a DTD; multiple
specifications for same element type are not an error but only the first
has an effect. Element type must be omitted if short-reference use
declaration appears within the document content; in that case the map
takes effect for the rest of the element within which it occurs. As
usual, this can be superseded if an embedded element has its own map.)
152 bis: short reference use declaration = MDO, "USEMAP",
65 ps+, 153 map specification,
65 ps*, MDC
153 map specification = 151 map name
| (RNI, "EMPTY")
151 map name = 55 name
Doc VII 169 link set use declaration (169 170 164 155)
Referred to by: 27 (Doc III).
170 referred to by: 165 (DTD XI). (Duplicated.)
164 referred to by: 163 (DTD X), 165 (DTD XI). (Duplicated.)
155 referred to by: 154 (DTD IX). (Duplicated.)
Doc VII A Dependencies
169 link set use declaration
|
+------------+----+------------------------+
| | |
65 ps 170 link set specification 155 link type name
| |
164 link set name 55 name
|
55 name
See:
55, 65: Basics IV, III.
Doc VII B Productions
169+ link set use declaration = MDO, "USELINK",
65 ps+, 170+ link set specification,
65 ps+, 155 link type name,
65 ps*, MDC
170+ link set specification
= 164+ link set name
| (RNI, "EMPTY")
| (RNI, "RESTORE")
164+ link set name = 55 name
| (RNI, "INITIAL")
155 link type name = 55 name