W3C home > Mailing lists > Public > www-math@w3.org > October 2001

Re: Validating MathML

From: Leonardo B. Lopes <leo@iems.nwu.edu>
Date: Wed, 31 Oct 2001 11:39:54 -0600 (CST)
To: David Carlisle <davidc@nag.co.uk>
cc: www-math@w3.org
Message-ID: <Pine.GSO.4.04.10110311126060.22119-100000@gomory.iems.nwu.edu>
> > Probably the easiest is to run it through STG 
> not of you haven't got STG. (what is it? I assume it's a validating XML
> parser of some sort).
> 

What I refer to as STG is the validating parser @ the Scholarly Technology
Group @ Cornell:

	http://www.stg.brown.edu/service/xmlvalid/

> 
> > <!ELEMENT min (scenario+,ghrs?,property)>
> 
> that's going to cause you problems as mathml has an element <min/>
> declared to be empty, unless you declare a prefix for mathml and use for
> example <m:min/> 
> 

Thanks! I fixed that.

> I would try using a different validating parser: if the files work with
> rxp and don't work with the parser you are using, try sending a bug
> report to the producer of your parser.

I tried the rxp parser. I get a few warnings, like:

Warning: Ignoring redefinition of parameter entity arccosh.qname
 in entity "mathml-qname.mod" at line 92 char 56 of
http://www.w3.org/TR/MathML2/dtd/mathml2-qname-1.mod
 in entity "mathml" at line 41 char 19 of
http://www.w3.org/TR/MathML2/dtd/mathml2.dtd
 in unnamed entity at line 20 char 9 of
http://senna.iems.nwu.edu/xml/xmps.dtd
Warning: Ignoring redefinition of parameter entity mathml-qname.module
 in entity "mathml-qname.mod" at line 273 char 42 of
http://www.w3.org/TR/MathML2/dtd/mathml2-qname-1.mod
 in entity "mathml" at line 41 char 19 of
http://www.w3.org/TR/MathML2/dtd/mathml2.dtd
 in unnamed entity at line 20 char 9 of
http://senna.iems.nwu.edu/xml/xmps.dtd
...

but at least it gets through to the errors on my own part of the dtd.
Thanks for the tip. May digress a second to a couple of XML questions?
First, What is the {<!ATTLIST}, {<!ELEMENT} notation in the MathML DTD?
(for example, page 269 of the recommendation). 
Second, I have a construction that repeats over and over in my DTD as
such:

<!ENTITY % anchors "(anchor?,%argv1;,(anchor,%argv1;)*) ">

where argv1 is some set of elements that can be in the model of the
element I am defining. What I would really like to do is have the entity
above and have the elements like:

<!ELEMENT obj &anchors((vector|nlexp));>
<!ATTLIST 
	%att-inheritance;
>

I know this syntax is wrong, but is there another way of accomplishing
this same effect? I couldn't find it in my books or the web.

Thanks!
Leo.


> 
> David
> 
> _____________________________________________________________________
> This message has been checked for all known viruses by Star Internet
> delivered through the MessageLabs Virus Scanning Service. For further
> information visit http://www.star.net.uk/stats.asp or alternatively call
> Star Internet for details on the Virus Scanning Service.
> 
> 

========================================================================
Leonardo B. Lopes                                       leo@iems.nwu.edu 
Ph.D. Student                                              (847)491-8470
IEMS - Northwestern University              http://www.iems.nwu.edu/~leo
Received on Wednesday, 31 October 2001 12:39:57 GMT

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