Subject: Re: (dsssl) Flurry of errors in onsgmls--can't read xml.dcl? From: daniel lance herrick <dan.herrick@xxxxxxxxxxxxxxxx> Date: Tue, 25 Feb 2003 08:21:05 -0500 (EST) |
On Mon, 24 Feb 2003, maurice chadwick york wrote: > > Cite exactly what the first few errors are (possibly using the -E4 > > switch). I would guess it's not able to find xml.dcl. > > > > onsgmls generates the following errors: > > maurice% onsgmls -wxml -E4 sermon.xml > onsgmls:sermon.dtd:1:46:E: omitted tag minimization parameter can be > omitted only if "OMITTAG NO" is specified on the SGML declaration > > The error seems to specify the end of every line in the DTD that has an > element on it. For example, line one of the DTD is > > <!ELEMENT sermon (source, title, author, text)> Oh! I should have recognized this sooner. It took me two or three days, digging through the SGML specification before finally coming to understand that the actual words of that error message are exactly and precisely what is wrong, back when I hit this one. (The first impression of many of the error messages is that they must be written in Sanskrit, but I have eventually always found out that they are written in "SGML Spec".) The "<!ELEMENT ... >" dtd component has an optional parameter called the "omitted tag minimization parameter". It is expressed in a one character code (may have punctuation to mark it). (The specification is home, I am not, and I could not quickly find an example, so I can't give you the correct syntax.) Some of that two or three days I spent trying to figure out how to supply a different "SGML declaration" than it was using (with "OMITTAG NO" added), but eventually gave that up as hopeless and added the minimization parameter to every ELEMENT declaration in the value that said omitting tags is not allowed. I did not solve the question of what determines what SGML declaration onsgmls uses. > I am using very simple DTDs for testing purposes, so there are no empty > elements--just straightforward ELEMENT and ATTLIST declarations. I have > the following environment parameters set in my .cshrc to try to get it to > find xml.dcl: xml does not allow omitting tags, so you are invoking a different "SGML declaration" than the xml "SGML declaration". dan DSSSList info and archive: http://www.mulberrytech.com/dsssl/dssslist
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: (dsssl) Flurry of errors in ons, ed nixon | Thread | Re: (dsssl) Flurry of errors in ons, Pavel Tolkachev |
Re: (dsssl) Flurry of errors in ons, ed nixon | Date | Re: (dsssl) Flurry of errors in ons, Pavel Tolkachev |
Month |