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

Re: SGML version?

From: <richard.obeirne@blacksci.co.uk>
Date: Mon, 22 Jun 1998 14:34:01 +0000
Message-Id: <TFSLNJUO@blacksci.co.uk>
To: www-math@w3.org
Robert,

Thanks for this - it's a great help. Of course you're right -- the XML 
declaration was the missing link. With the declaration, the MathML dtd does 
parse (I'm using SP 1.3), but with about 30 errors like this:

MATHML.sgm:219:34:E: token "NORMAL" occurs more than once in attribute 
definition list
MATHML.sgm:220:32:E: token "TRUE" occurs more than once in attribute 
definition list
MATHML.sgm:220:32:E: token "FALSE" occurs more than once in attribute 
definition list

I get these wherever 'normal', 'true' or 'false' are defined more than once 
as an attribute value in the DTD. I *think* the problem is that you can't 
have multiple attributes of the same name in the DTD, so, for example, if I 
add a prefix to each occurrence of the 'normal', 'true' and 'false' 
attributes to distinguish each one

e.g.
<!ENTITY % att-fence       'fence (fence-true | fence-false ) #IMPLIED'    >
<!ENTITY % att-separator   'separator (separator-true | separator-false ) 
#IMPLIED'>

the errors disappear... although I do get one remaining error about the 
'displaystyle' attribute which I can't track down:

MATHML.sgm:269:35:E: duplicate definition of attribute "DISPLAYSTYLE"
MATHML.sgm:269:35:E: token "DISPLAYSTYLE-TRUE" occurs more than once in 
attribute definition list
MATHML.sgm:269:35:E: token "DISPLAYSTYLE-FALSE" occurs more than once in 
attribute definition list

I would have thought that repeated attribute values also cause a problem in 
XML?

Anyway, after all this, I'm still left with one problem, although it's 
probably not for this newsgroup. I'd like to call in the MathML DTD into an 
existing SGML DTD (for science journal articles) so that we can tag maths 
using a standard and not a proprietary ad-hoc tagging scheme, but as it uses 
a different declaration it causes a conflict with the parent DTD.

Thanks again,

Richard

p.s. things seem a little quiet here recently. Is that a cause for concern? 
I'd like to feel there are lots of other people  jumping into the MathML 
abyss... 
Received on Monday, 22 June 1998 09:27:17 GMT

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