This is the mail archive of the
docbook@lists.oasis-open.org
mailing list for the DocBook project.
Re: [docbook] Re: XML Editors
- From: Joachim Ziegler <ziegler at mpi-sb dot mpg dot de>
- To: Steinar Bang <sb at dod dot no>
- Cc: docbook at lists dot oasis-open dot org
- Date: Fri, 02 May 2003 16:34:39 +0200
- Subject: Re: [docbook] Re: XML Editors
- References: <20030426115135.GA12131@nic.fr> <Pine.LNX.4.44.0304261225090.31688-100000@dell> <m3r87kfpad.fsf@home.lan>
Steinar Bang wrote:
I use GNU Emacs/psgml, which works great for me, with DTD-aware
element insertion and attribute editing, XML tree navigation and
editing, folding, and validation. But I wouldn't dream of even
_proposing_ it to someone who today uses MSWord.
I'm also using Emacs+psgml. Most of the time it works great, but it has
some annoying bugs:
a) using entities to break a document in smaller pieces as described in
"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.
(Yes, I have tried something like
<!--
Local Variables:
mode: xml
sgml-parent-document: ("master-file.xml")
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.
b) Editing of attributes does not work. It always turns
*all* attribute values to lowercase. Sometimes it inserts funny markup
like an extra ">". (Unfotunately, this 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.
---------------------------------------------------------------------
To unsubscribe, e-mail: docbook-unsubscribe@lists.oasis-open.org
For additional commands, e-mail: docbook-help@lists.oasis-open.org