Re: Serious problems with psgml 1.2.5
Stuart Popejoy <[email protected]>
| Newsgroups | gmane.emacs.psgml.user |
|---|---|
| Organization | Pink Sheets LLC |
| Message-ID | <1053525805.23069.194.camel@wks-stu> |
With psgml 1.3.1, I'm able to have large chapter documents. My
declaration in the main doc is:
<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN"
"http://www.oasis-open.org/docbook/xml/4.0/docbookx.dtd" [
<!ENTITY ch_setup SYSTEM "./ch-setup.xml">
<!ENTITY ch_login_logout SYSTEM "./ch-login-logout.xml">
...
]
>
<book>
<bookinfo>
...
</bookinfo>
&ch_setup;
&ch_login_logout;
...
</book>
Chapter files are like:
<chapter>
...
</chapter>
<!-- Local Variables: -->
<!-- sgml-parent-document: ("./MasterDocument.xml" "book" ("chapter")
"book") -->
<!-- End: -->
So, I don't know if its the "./" before the references (I'm not sure
that's necessary) or the sgml-parent-document difference.
sgml-parent-document's docs are difficult to understand.
I doubt the version difference is the issue.
Good Luck,
Stuart
On Wed, 2003-05-21 at 04:14, Joachim Ziegler wrote:
> 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
--
Stuart Popejoy <[email protected]>
Pink Sheets LLC
-------------------------------------------------------
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