Emacs error

Paul W. Frields paul at frields.com
Mon Sep 6 12:42:15 UTC 2004


On Sun, 2004-09-05 at 18:08, tuxxer wrote:
> On Sun, 2004-09-05 at 07:57, Karsten Wade wrote:
> > On Sat, 2004-09-04 at 16:34, tuxxer wrote:
> > > Whenever I run `C-c C-p` to parse the DTD, I get "External entity
> > > CHAPTER not found".  Can any one explain why?  And perhaps suggest a
> > > fix?
> > 
> > This happens when you are parsing the DTD for an individual <chapter> in
> > a single file; since there is no DOCTYPE header, Emacs isn't sure how to
> > parse the file.
> > 
> > This is where the saved parsed file comes in handy:
> > 
> > http://fedora.redhat.com/participate/documentation-guide/s1-emacs-cedfile.html
> > http://fedora.redhat.com/participate/documentation-guide/s1-emacs-loadced.html
> > 
> > Once you've loaded the .ced file, the XML will parse and validate.  You
> > may experience a difference in indenting levels or other things when the
> > XML is properly parsed.
> 
> I've done that.  But my .ced file is called hardfen-parent.ced.  Do I
> need a .ced file for each individual XML file?

You only need one for the parent file (the one with the actual
declaration at the top). A copy of the Documentation Guide comes with
the CVS pull. Look at that one for an example. There's only a single
.ced file for the parent. The component (chapter) files are all declared
as entities in the parent. When you edit one of them, you load the .ced
file, and off you go.

-- 
Paul W. Frields, RHCE





More information about the fedora-docs-list mailing list