Emacs validation

Paul W. Frields stickster at gmail.com
Mon Aug 22 12:40:44 UTC 2005


On Mon, 2005-08-22 at 08:19 -0400, Mark Johnson wrote:
> 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.

When I tried to do this in the Sgml Xml Validate Command setting, Emacs
would then refuse to grab the file name I was validating, like the "%s"
was being ignored.  In the interest of full disclosure, I am using Jens
Petersen's Emacs CVS testing packages because they are GTK2 enabled and
much easier on the eyes.  Not sure whether that has some effect.  In any
case, at least validation is working now, which is super.

-- 
Paul W. Frields, RHCE                          http://paul.frields.org/
  gpg fingerprint: 3DA6 A0AC 6D58 FEC4 0233  5906 ACDB C937 BD11 3717
 Fedora Documentation Project: http://fedora.redhat.com/projects/docs/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <http://listman.redhat.com/archives/fedora-docs-list/attachments/20050822/7fbb019f/attachment.sig>


More information about the fedora-docs-list mailing list