Serious problems with psgml 1.2.5

Joachim Ziegler <[email protected]>
Newsgroups gmane.emacs.psgml.user
Organization Max-Planck-Institut für Informatik
Message-ID <[email protected]>
Hello list,

Writing a large DocBook-document I have some serious problems with 
Emacs/Xemacs+psgml:


a) Using entities to break a document in smaller pieces as described in
"DocBook - The Definite Guide" does not work for me:

<!ENTITY chap1 SYSTEM "chap1.sgm">
<!ENTITY chap2 SYSTEM "chap2.sgm">
]>
<book><title>My First Book</title>
&chap1;
&chap2;
</book>


Emacs (and Xemacs neither) does not parse the DTD in the smaller files.
I have tried the following

<!--
      Local Variables:
      mode: xml
      sgml-parent-document: ("master-file.xml" "book" "chapter")
      End:
-->


This mechanism only works for small documents (at least on my machine)
but not when the documents get large. I don't know how to fix this.

Loading one of the smaller files, I get the error message:

"File mode specification error: void-function char-table-parent"



b) Editing of attributes does not work. It always turns
*all* attribute values to lowercase. Sometimes it inserts funny markup
like an extra ">". (Unfortunately, the last behaviour cannot be
reproduced deterministically.)
This is very dangerous because it can make files unvalid (by lowercasing
IDs or IDREfs.)


c) psgml sometimes becomes confused when I type something like

<para>The number which is half as big as n is n/2. </para>

It sometimes (but not always!) misinterprets the "/" division operator
as belonging to an end-tag. After this "/" the set of elements it offers
for this context is complete nonsense.

d) Inseting an <xref> and typing "SOMEID" for the linkend, psgml inserts 
the following:

<xref linkend="someid">

(note that there is no trailing slash and no end-tag </xref> and the 
attribute is lower case.)


e) One concrete example:

I had

<imagedata align="center" fileref="Analysis.pdf" format="PDF"/>

and inserted an attribute/value pair 'contendtwidht="10cm"' by clicking 
the right mouse button to get a menu of all allowed attributes.

psgml gave me the following:

<imagedata contentwidth="10cm" align="center" fileref="Analysis.pdf" 
format="pdf">>


Note the extra ">" at the end and the lower case "pdf".


I've tried this with psgml-1.2.5 (bytecompiled by myself) and GNU Emacs
21.1.2 and XEmacs 21.1 (patch 14).



What can I do?


Greetings,
Joachim


-- 
Joachim Ziegler                       Stuhlsatzenhausweg 85
Max-Planck-Institut für Informatik    66123 Saarbrücken
Email: [email protected]          Germany



-------------------------------------------------------
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.