I'm SGML beginner, so I may ask the misunderstood questions, though....
1.
In Hilighting,
<!ENTITY % font " TT | B | I ">
<!ENTITY % phrase
"EM | STRONG | CODE | SAMP | KBD | VAR | CITE ">
<!ENTITY % text "#PCDATA | A | IMG | BR | %phrase | %font">
<!ELEMENT (%font;|%phrase) - - (%text)*>
<!ENTITY % pre.content "#PCDATA | A | HR | BR | %font | %phrase">
are declared, and in preformatted text section,
<!ELEMENT PRE - - (%pre.content)*>
is declared. Does this mean that, in preformatted text, IMG element is
not usually allowed, but IMG is allowed in case that it is within
%font or %phrase tags?
e.g. <pre> ... <img src="..."> ... </pre> is wrong, but,
<pre><it> ... <img src="..."> ... </it></pre> is O.K.?
2.
HTML2.0 Recommends:
<![ %HTML.Recommended [
<!ENTITY % body.content "(%heading|%block|HR|ADDRESS|IMG)*"
-- <h1>Heading</h1>
<p>Text ...
is preferred to
<h1>Heading</h1>
Text ...
-->
]]>
but, I think many document does not follow this. Also I don't like
<!ENTITY % flow "(%text|%block)*">
to be used in
<!ELEMENT DD - O %flow>
<!ELEMENT LI - O %flow>
since structured blocks can be combined with texts. So, how about
changing
<!ELEMENT P - O (%text)*>
to
<!ELEMENT P O O (%text)*>
and
<!ELEMENT DD - O (%block)*>
<!ELEMENT LI - O (%block)*>
or, I mean, the text in the list item to be considered as paragraph, like
the text in the body element?
I'm sorry if I ask the wrong question, or my English is hard to understand,
or these questions were already discussed.
-------------------------------------------------------------
Taichi Kawabata kawabata@is.s.u-tokyo.ac.jp
-------------------------------------------------------------