Re: More DTD trick questions: DIR/MENU vs OL/UL, PCDATA vs CDATA

   While I'm questioning the DTD, why is there [1]:

   <!ELEMENT (DIR|MENU) - -  (LI)+ -(%blocklevel)>
				   ^^^^^^^^^^^^^^
   Why does this need to be excluded? 

Because MENU and DIR were originally intended to hold simple list
items containing PCDATA (and inline elements) ONLY, and no other
structural markup. For more extensive structural markup, OL and UL
and DL were provided. 

   <MENU><LI><P>Item</MENU>
   is illegal but
   <OL><LI><P>Item</OL>
   is okay?  Why?

For the reason I've given: DIR and MENU were designed for trivial use,
not complex use.

   I also want to repeat Jeni Tennison's question of 18-Aug-97,
   that shouldn't INS and DEL allow %block instead of %inline?

No reason, I guess. 

   And while I'm asking questions...where are the differences
   between PCDATA and CDATA defined?

ISO 8879 :-)

///Peter

Received on Sunday, 24 August 1997 08:50:26 UTC