Re: SGML version?

Hi.

> This may be a stupid question... but is it sensible to talk about an SGML 
> version of the MathML DTD? If so, what's involved in converting it?

This seems like an eminently reasonable question to me, and I believe
it has a fairly straightforward answer.  I am not an SGML/XML expert,
but I have used SGML tools to work with the MathML DTD.

I used SP 1.1, the SGML parser package developed by James Clark, and
in particular, I used nsgmls, one of the applications that comes with
SP, to parse the MathML DTD.

What is required is a mathml.dcl file, a SGML declaration file that
contains the essential changes for XML.  One then creates a catalog
that tells nsgmls to use mathml.dcl, and voila, 

        nsgmls -c catalog mathml.dtd 

happily parses the DTD.

I have attached the "catalog" and "mathml.dcl" files below.  They may
be out of date, but hopefully they will get you started.

Robert Miner
W3C Math WG co-chair

----------------------------------------------------------------------
catalog
----------------------------------------------------------------------

SGMLDECL "mathml.dcl"
SYSTEM "mathml.dtd" "mathml.dtd" 


----------------------------------------------------------------------
mathml.dcg
----------------------------------------------------------------------

<!SGML "ISO 8879:1986" 

CHARSET
 	BASESET		"ISO 646:1983//CHARSET International Reference Version (IRV)//ESC 2/5 4/0"
	DESCSET		0 9 UNUSED
			9 2 9 
			11 2 UNUSED
			13 1 13	
			14 18 UNUSED
			32 95 32 
			127 1 UNUSED
CAPACITY
	PUBLIC		"ISO 8879:1986//CAPACITY Reference//EN"
SCOPE
	DOCUMENT
SYNTAX
	SHUNCHAR	CONTROLS 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
				18 19 20 21 22 23 24 25 26 27 28 29 30 31 127
	BASESET		"ISO 646:1983//CHARSET International Reference Version (IRV)//ESC 2/5 4/0"
	DESCSET		0 128 0
	FUNCTION	RE 13
			RS 10
			SPACE 32
			TAB SEPCHAR 9
	NAMING		LCNMSTRT ""
			UCNMSTRT ""
			LCNMCHAR "-."
			UCNMCHAR "-."
			NAMECASE	GENERAL YES
					ENTITY NO
	DELIM		GENERAL  SGMLREF
                        NET      "/>"
                        PIC      "?>"
			SHORTREF NONE
	NAMES		SGMLREF
	QUANTITY	SGMLREF
                        ATTCNT      99999999
                        ATTSPLEN    99999999
                        -- BSEQLEN  not used --
                        -- DTAGLEN  not used --
                        -- DTEMPLEN not used --
                        ENTLVL      99999999
                        GRPCNT      99999999
                        GRPGTCNT    99999999
                        GRPLVL      99999999
                        LITLEN      99999999
                        NAMELEN     99999999
                        -- no need to change NORMSEP --
                        PILEN       99999999
                        TAGLEN      99999999
                        TAGLVL      99999999
        FEATURES        MINIMIZE
                            DATATAG NO
                            OMITTAG NO
                            RANK NO
                            SHORTTAG YES -- SHORTTAG is needed for NET --
                        LINK
                            SIMPLE NO
                            IMPLICIT NO
                            EXPLICIT NO
                        OTHER
                            CONCUR NO
                            SUBDOC NO
                            FORMAL NO
        APPINFO NONE
>

Received on Wednesday, 17 June 1998 12:17:29 UTC