Paul W. Frields wrote:
On Sun, 2005-08-21 at 09:59 -0400, Paul W. Frields wrote:
OK, gang, I'm kind of tired of the fact that my validation within Emacs
has *never* worked correctly, so it makes doc writing/editing just a bit
less enjoyable. When I do validation (C-c C-v), the validate command
comes up as follows:
nsgmls -wxml -s name-of-doc-en.xml
When I run it, I get a *huge* number of errors such as this:
= = = = =
-*- mode: compilation; default-directory: "~/fedora/docs/jargon-buster/"
-*-
nsgmls -wxml -s jargon-buster-en.xml
nsgmls:<URL>http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd:112:15:W: named character reference
nsgmls:<URL>http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd:112:17:E: "X20AC" is not a function name
nsgmls:<URL>http://www.oasis-open.org/docbook/xml/4.2/ent/iso-amsa.ent:8:17:W: named character reference
= = = = =
I can't believe this is what I should be seeing, since it happens even
with documents that are perfectly fine as far as xmlto is concerned
(i.e., "make" works fine). What am I missing that would make this a
more joyful experience?
OK, answering my own question after some playing around. In Emacs,
change the setting "Sgml Xml Declaration" to "xml.dcl" instead of
"NONE," and everything works automagically. Why isn't this set by
default by psgml or something else? Can anyone suggest where I should
file this bug?
Hi Paul,
I dunno if filing a bug against psgml would have any effect, as I think
development has ceased (nxml-mode seems to be the new kid in town).
However, should you want to file a bug or post something to the psgml
list, you can find that info at the sourceforge project page:
http://sourceforge.net/projects/psgml/
fwiw, I believe you can also set the (xml-mode) validate command itself
within emacs to include the xml declaration. The path to xml.dcl can
pretty much be inserted anywhere in the call to nsgmls.
HTH
Cheers,
Mark
--
----------------------------------------------------------
Mark Johnson <mjohnson@xxxxxxxxxx>
OS Product Documentation
Engineering, Red Hat, Inc. <http://www.redhat.com>
Tel: 919.754.4151 Fax: 919.754.3708
GPG fp: DBEA FA3C C46A 70B5 F120 568B 89D5 4F61 C07D E242
--
fedora-docs-list@xxxxxxxxxx
To unsubscribe:
http://www.redhat.com/mailman/listinfo/fedora-docs-list