help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: psgml how to validate against schema


From: Andreas Röhler
Subject: Re: psgml how to validate against schema
Date: Wed, 04 May 2011 08:37:43 +0200
User-agent: Mozilla/5.0 (X11; U; Linux i686; de; rv:1.9.2.14) Gecko/20110221 SUSE/3.1.8 Thunderbird/3.1.8

Am 03.05.2011 18:11, schrieb AngusC:


Steinar Bang wrote:

Andreas Röhler<andreas.roehler@easy-emacs.de>:

Am 25.04.2011 21:17, schrieb Steinar Bang:

psgml DTD usage goes beyond validation.  It uses the DTD information
assist with inserting elements and edit attributes.

Sure. However, as far as a programm outside Emacs is called, just the
results sent back, that shouldn't matter here.

The psgml usage of an external validator is just similar to the way
emacs handles compilation errors.

It can't use the external program to help with editing.  For that it
uses its built-in DTD parser (written in lisp).

Editing and validating are different issues.

Some sgml-forms will not work, when built upon use of dtd.
Please report that as a bug then.
Feel free to drop me a cc then.

As dtd are optional, no command should fail completely without.



It can only validate using a schema written using RELAX NG syntax.

Emacs calls an external programm for that. Should be able to play the results back.

AFAIS the work is basically done in line 1582 compile.el:

(start-file-process-shell-command (downcase mode-name)
                                                       outbuf command)

All you need to do is selecting the correct validation-command, when starting.









 That
was the problem.  I could re-write the schema using RELAX NG .... but ran
out of time on that one.










reply via email to

[Prev in Thread] Current Thread [Next in Thread]