unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* PSGML mode: sgml-custom-dtd not appearing in menu
@ 2002-10-29 23:00 D. D. Brierton
  2002-10-29 23:30 ` Jhair Tocancipa Triana
  2002-10-30 11:38 ` Jirka Kosek
  0 siblings, 2 replies; 3+ messages in thread
From: D. D. Brierton @ 2002-10-29 23:00 UTC (permalink / raw)


Using Emacs 21.1.1 on Linux (Mandrake 8.2) with psgml 1.2.4, I've put the
following in my .emacs:

(setq sgml-custom-dtd
  '(
    ( "HTML 4.01 Strict"
      "<!DOCTYPE html PUBLIC \"-//W3C//DTD HTML 4.01//EN\"\n \"http://www.w3.org/TR/html4/strict.dtd\">"
      sgml-default-dtd-file "~/lib/DTD/html401/strict.ced" )
    ( "HTML 4.01 Transitional"
      "<!DOCTYPE html PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\"\n \"http://www.w3.org/TR/html4/loose.dtd\">"
      sgml-default-dtd-file "~/lib/DTD/html401/loose.ced" )
    ( "HTML 4.01 Frameset"
      "<!DOCTYPE html PUBLIC \"-//W3C//DTD HTML 4.01 Frameset//EN\"\n \"http://www.w3.org/TR/html4/frameset.dtd\">"
      sgml-default-dtd-file "~/lib/DTD/html401/frameset.ced" )
    ( "XHTML 1.0 Strict"
      "<?xml version=\"1.0\"?>\n<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Strict//EN\"\n \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd\">"
      sgml-default-dtd-file "~/lib/DTD/xhtml1/xhtml1-strict.ced" )
    ( "XHTML 1.0 Transitional"
      "<?xml version=\"1.0\"?>\n<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\"\n \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">"
      sgml-default-dtd-file "~/lib/DTD/xhtml1/xhtml1-transitional.ced" )
    ( "XHTML 1.0 Frameset"
      "<?xml version=\"1.0\"?>\n<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Frameset//EN\"\n \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd\">"
      sgml-default-dtd-file "~/lib/DTD/xhtml1/xhtml1-frameset.ced" )
    ( "XHTML 1.1"
      "<?xml version=\"1.0\"?>\n<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.1//EN\"\n \"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd\">"
      sgml-default-dtd-file "~/lib/DTD/xhtml11/xhtml11.ced" )
  )
)

But nothing shows up in PSGML's DTD menu. I can do C-c C-u C-d TAB and I get
prompted in a new window for HTML 4.01 Strict - XHTML 1.1, but nothing shows
up in the menu. Is something meant to? Or have I misunderstood the docs?

TIA, Darren

P.S. If anyone has got their emacs set up to work with all the recent W3C
DTDs and PSGML I'd love to get some advice from them. I just can't seem to
get the XHTML doctypes working at all ...

-- 
======================================================================
D. D. Brierton            darren@dzr-web.com           www.dzr-web.com
       Trying is the first step towards failure (Homer Simpson)
======================================================================

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: PSGML mode: sgml-custom-dtd not appearing in menu
  2002-10-29 23:00 PSGML mode: sgml-custom-dtd not appearing in menu D. D. Brierton
@ 2002-10-29 23:30 ` Jhair Tocancipa Triana
  2002-10-30 11:38 ` Jirka Kosek
  1 sibling, 0 replies; 3+ messages in thread
From: Jhair Tocancipa Triana @ 2002-10-29 23:30 UTC (permalink / raw)


D D Brierton <darren@dzr-web.com> writes:

   > Using Emacs 21.1.1 on Linux (Mandrake 8.2) with psgml 1.2.4, I've
   > put the following in my .emacs:

   [...]

   > But nothing shows up in PSGML's DTD menu. 

Do you mean the DTD -> Insert DTD menu?

Regards,

-- 
--Jhair

Public Key fingerprint = 81FF 3ADF BF6B CECB C593  4018 27AE D7D2 BAA6 00D0

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: PSGML mode: sgml-custom-dtd not appearing in menu
  2002-10-29 23:00 PSGML mode: sgml-custom-dtd not appearing in menu D. D. Brierton
  2002-10-29 23:30 ` Jhair Tocancipa Triana
@ 2002-10-30 11:38 ` Jirka Kosek
  1 sibling, 0 replies; 3+ messages in thread
From: Jirka Kosek @ 2002-10-30 11:38 UTC (permalink / raw)


"D. D. Brierton" wrote:

> But nothing shows up in PSGML's DTD menu. I can do C-c C-u C-d TAB and I get
> prompted in a new window for HTML 4.01 Strict - XHTML 1.1, but nothing shows
> up in the menu. Is something meant to? Or have I misunderstood the docs?

You should tell your Emacs to switch to XML mode when editing files in
XHTML:

(setq auto-mode-alist
      (append (list (cons "\\.xhtml\\'" 'xml-mode))
	      auto-mode-alist))

or you can manually invoke XML mode by M-x xml-mode RET

-- 
-----------------------------------------------------------------
  Jirka Kosek  	                     
  e-mail: jirka@kosek.cz
  http://www.kosek.cz

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2002-10-30 11:38 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-10-29 23:00 PSGML mode: sgml-custom-dtd not appearing in menu D. D. Brierton
2002-10-29 23:30 ` Jhair Tocancipa Triana
2002-10-30 11:38 ` Jirka Kosek

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).