* psgml: XML DTD is parsed as SGML?
@ 2004-08-07 18:44 Torsten Bronger
0 siblings, 0 replies; only message in thread
From: Torsten Bronger @ 2004-08-07 18:44 UTC (permalink / raw)
Hallöchen!
I use psgml 1.2.5 and a CVS Emacs of last September to edit XML
files. Unfortunately, I get the error message
/usr/share/xml/tbook/tbook.dtd line 62 col 35 entity BOOK
/home/bronger/tbook/ipv-labview/ipv-labview.xml line 3 col 54
Name expected; at: :lang NMTOKE
when I try to add an element with sgml-add-element-to-element.
Apparently PSGML thinks that it parses an SGML DTD, but it's XML
with proper XML declaration. I know that I once worked with my
previous Emacs installation, but many test changes in my .emacs
didn't help.
This is my current .emacs fragment:
;; for psgml; use this in your .emacs resp. .gnu-emacs
(autoload 'xml-mode "psgml" "Major mode to edit XML files." t)
(autoload 'sgml-mode "psgml" "Major mode to edit SGML files." t)
(setq sgml-set-face t)
(setq sgml-system-path '("/usr/share/sgml/gf"
;; "/usr/share/sgml/TEI/dtd"
"/usr/share/sgml/ISO_8879:1986")
sgml-public-map '("%S"
"/usr/share/sgml/%o/%c/%d"))
(setq sgml-catalog-files '("CATALOG"
"~/xml/CATALOG"
"/usr/share/sgml/CATALOG"
"/usr/share/sgml/CATALOG.docbk31"
"/usr/share/sgml/CATALOG.docbk41")
sgml-ecat-files '("ECAT" "~/sgml/ECAT" "/usr/share/sgml/ECAT"))
(setq sgml-xml-declaration "/home/bronger/xml/xml.dcl")
(setq sgml-validate-command "nsgmls -E0 -s ~/xml/xml.dcl")
(setq auto-mode-alist (cons '("\\.xml$" . xml-mode) auto-mode-alist))
What's going wrong? -- Thank you!
Tschö,
Torsten.
--
Torsten Bronger, aquisgrana, europa vetus
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2004-08-07 18:44 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-08-07 18:44 psgml: XML DTD is parsed as SGML? Torsten Bronger
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.