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

Re: SGML validation in emacs



On Fri, Jun 08, 2001 at 10:03:55AM -0400, Mark Johnson wrote:

>  <!-- Keep this comment at the end of the file
>  Local variables:
>  mode: xml

Nope. No joy in Mudville. It seems that _psgml_ can use the local
variable, because the when a 'child' doc is loaded the parsed DTD of
the parent is loaded automagically. But I don't know how to tell
nsgmls what the dtd of the (child) doc in the buffer is.

I have been staring at the man page for nsgmls
(http://www.jclark.com/sp/nsgmls.htm) trying to figure out how to pass
that value to nsgmls from its command line, perhaps with '-c' or '-C',
but I've had no luck. It's hard to believe that nsgmls cannot somehow
receive the identity of the dtd in use from the command line.

Incidentally, speaking of arcane syntax, I note in psgml's info pages
the following describing the sgml-parent-document var:

The variable should have the form

          (PARENT-FILE CONTEXT-ELEMENT* TOP-ELEMENT (HAS-SEEN-ELEMENT*)?)

And the suggestion here has been to use eg:

sgml-parent-document:("fancy.xml" "website" "webpage")

so I wonder about that 'HAS-SEEN-ELEMENT'. 

Thanks,

-- 
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: pgp5ZEtbTshva.pgp
Description: PGP signature


Reply to: