Menu

#17 sgml-validate-command in xml-mode

closed-fixed
None
5
2002-04-25
2002-03-07
No

If i set sgml-validate-command to "xmllint" in
my .emacs, and then edit a file in sgml-mode, pressing
M-x sgml-validate brings up "xmllint" as the command.

However when i'm editing a file in xml-mode, pressing
M-x sgml-validate brings up the default validate
command: "nsgml -wxml -s filename".

This is a bug in the way xml-mode has derived from
sgml-mode? or am i doing something wrong?

For your information, I'm using XEmacs-21.4.6 on
Solaris. I've tried the lastest XEmacs psgml package
psgml-1.26 and this has the same behaviour.

The reason why i'm pointing the at xml-mode is that in
psgml.el, in the (define-derived-mode xml-mode ....)
declaration there is a line:

(setq sgml-validate-command "nsgmls -wxml -s %s %s")

Perhaps there should be an (unlesss ..) to see if the
user has already set a value for that variable? I'm
new to lisp so apoligies if this is the wrong
direction.

Discussion

  • Lennart Staflin

    Lennart Staflin - 2002-04-19

    Logged In: YES
    user_id=30503

    Version 1.2.5 of PSGML will add a sgml-xml-validate-
    command variable that will be used to set sgml-
    validate-command in XML-mode. That should solve
    this.

     
  • Lennart Staflin

    Lennart Staflin - 2002-04-19
    • assigned_to: nobody --> lenst
    • status: open --> open-fixed
     
  • Lennart Staflin

    Lennart Staflin - 2002-04-25
    • status: open-fixed --> closed-fixed
     
  • Lennart Staflin

    Lennart Staflin - 2002-04-25

    Logged In: YES
    user_id=30503

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.