Re: Still serious problems with psgml 1.2.5
Joachim Ziegler <[email protected]>
| Newsgroups | gmane.emacs.psgml.user |
|---|---|
| Message-ID | <[email protected]> |
Stuart Popejoy wrote:
>
> just to be sure: your local variables section is at the very end
> of your chapter file, yes?
Yes. I"ve stripped down the malicous chapter1.xml to the following
minimal file:
------------------------------------
<?xml version="1.0" encoding="ISO-8859-1" ?>
<chapter id="cha.InstallingAndRunning">
<title>Auf die Plätze - fertig - LEDA!</title>
<para>Dieses Kapitel vermittelt uns das notwendige Wissen, um
LEDA-Programme schreiben und ausführen zu können. Wo erhalten wir
LEDA überhaupt und wie installieren wir es? Wo gibt es Hilfe? Wie
bringen wir überhaupt ein allererstes Programm zum Laufen? Das alles
sind Fragen, die vor der eigentlichen Programmierung mit LEDA geklärt
werden sollen.
</para>
</chapter>
<!--
Local Variables:
mode: xml
sgml-parent-document:("LEDATutorium.xml" "book" ("chapter") "book")
sgml-omittag:nil
sgml-shorttag:nil
sgml-namecase-general:nil
sgml-general-insert-case:lower
sgml-minimize-attributes:nil
sgml-always-quote-attributes:t
sgml-indent-step:2
sgml-indent-data:nil
sgml-exposed-tags:nil
sgml-local-catalogs:nil
sgml-local-ecat-files:nil
End:
-->
-------------------------------
First of all, to prove that the overall arrangement is valid:
$ /opt/gnu/bin/xmllint --noout --valid LEDATutorium.xml
(no output by xmllint, so valid)
When I start up Xemacs 21.1.patch14 with
$ xemacs chapter1.xml&
I get:
(1) (local-variables/warning) File local-variables error: Symbol's
function definition is void: char-table-parent
For the XML-Mode, I have the folloing lines in my .emacs:
(push (expand-file-name "~ziegler/Emacs") load-path)
(autoload 'sgml-mode "psgml" "Major mode to edit SGML files." t)
(autoload 'xml-mode "psgml" "Major mode to edit XML files." t)
To byte-compile, I did:
- load the file ~/Emacs/psgml-maint.el
- M-x eval-buffer
- M-x psgml-compile files
The minibuffer says "done compiling"
I close Xemacs and startup anew, load chapter1.xml, and still get:
(1) (local-variables/warning) File local-variables error: Symbol's
function definition is void: char-table-parent
Positioning the curser right behind </title> and pressing C-c C-e, I get
External entity CHAPTER not found
Going to some place in the <para> and pressing the right mouse button, I get
Signaling: (error "No valid element at this point")
signal(error ("No valid element at this point"))
cerror("No valid %s at this point" element)
apply(cerror ("No valid %s at this point" element))
error("No valid %s at this point" element)
sgml-menu-ask(#<buttondown-event button3> element)
sgml-tags-menu(#<buttondown-event button3>)
call-interactively(sgml-tags-menu)
read-minibuffer-internal("Element: ")
byte-code("..." [recursion-depth minibuffer-depth t standard-input
standard-output read-minibuffer-internal prompt] 2)
read-from-minibuffer("Element: " nil #<keymap
minibuffer-must-match-map 9 entries 0x58a> nil nil)
completing-read("Element: " [0 CHAPTER 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 TITLE 0 0 0 0 0 0 0 PARA 0 0 0 0 0 0 0
...] fboundp t nil nil)
sgml-read-element-type("Element: " ["CHAPTER" [0 CHAPTER 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 TITLE 0 0 0 0 0 0 0
PARA 0 0 0 0 0 0 0 ...] (nil) (nil) (nil) nil (t) nil nil])
sgml-read-element-name("Element: ")
(list (sgml-read-element-name "Element: ") sgml-leave-point-after-insert)
)
call-interactively(sgml-insert-element)
What now?
Greetings,
Joachim
-------------------------------------------------------
This SF.net email is sponsored by: ObjectStore.
If flattening out C++ or Java code to make your application fit in a
relational database is painful, don't do it! Check out ObjectStore.
Now part of Progress Software. http://www.objectstore.net/sourceforge