[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: SGML validation in emacs



On Fri, Jun 08, 2001 at 10:00:34PM -0700, Ian Zimmerman wrote:

> nsgmls -gues my_preamble.sgm my_child_doc.sgm

I performed this intriguing experiment, and found that, yes, nsgmls
with a doctype passed to it like that would complete the validation
without complaining that the child had no doctype. But when called
thus, nsgmls apparently does not know where the child fits into the
overall picture. So, if I run it on, say, "about.xml", it doesn't
understand how that file is included, eg:

<?xml version="1.0" standalone="no"?>
<!DOCTYPE website PUBLIC "-//Norman Walsh//DTD Website V1.10//EN" 
            "/usr/pkg/share/sgml/docbook-website/1.10/website.dtd" [
<!ENTITY whatsnew SYSTEM "whatsnew.xml">
<!ENTITY comp_centric SYSTEM "comp_centric.xml">
<!ENTITY without_comps SYSTEM "without_comps.xml">
<!ENTITY downloads SYSTEM "downloads.xml">
<!ENTITY about SYSTEM "about.xml">
]>    

The result is that nsgmls condemns "about.xml"s first line

<webpage><config param="filename" value="about.html"/>

claiming the doctype does not allow the entity 'webpage' here.

So Mark, I take it this was what might have become clear to me if I
only _thought_ about it a little more? <bg>

Thanks all,

-- 
Bob Bernstein |    http://www.ruptured-duck.com
at            |           1024D/4A93E562
Esmond, R.I.  |      115B 8AA0 D418 F33B F0B1  
USA           |      6230 8014 B8D5 4A93 E562
    

Attachment: pgp4J4pii96Ww.pgp
Description: PGP signature


Reply to: