W3C home > Mailing lists > Public > www-math@w3.org > March 1998

Element content in the DTD.

From: Russell Steven Shawn O'Connor <roconnor@wronski.math.uwaterloo.ca>
Date: Fri, 27 Mar 1998 16:09:41 -0500 (EST)
To: www-math@w3.org
Message-ID: <Pine.SOL.3.95q.980327160044.18863A-100000@wronski.math.uwaterloo.ca>

Why isn't the MathML DTD more restrictive in the children allowed in
elements.  For example the msup element requires exactly 2 elements,
however the currect DTD is specified as follows:

<!ENTITY % PresExpression      "(%Presentation; | %ContInPres;)* "     >
<!ELEMENT msup            (%PresExpression;)                      >

It seems to me the would be better written as:

<!ENTITY % PresExpression      "(%Presentation; | %ContInPres;)"     >
<!ELEMENT msup            (%PresExpression;,%PresExpression;)     >

(adjust all other elements apropreately)

Is there drawback that I'm missing?

-- 
Russell O'Connor                           roconnor@uwaterloo.ca
    <URL:http://www.undergrad.math.uwaterloo.ca/%7Eroconnor/>
"And truth irreversibly destroys the meaning of its own message"
-- Anindita Dutta, "The Paradox of Truth, the Truth of Entropy"
Received on Friday, 27 March 1998 16:09:51 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Saturday, 20 February 2010 06:12:47 GMT