Lauri Watts wrote: >-----BEGIN PGP SIGNED MESSAGE----- >Hash: SHA1 > >On Tuesday 07 January 2003 01:33, Bob Lockie wrote: > > >>I'm writing my first DocBook. :-) >> >>How do I fix "failed to load external entity"? >>Is there an online version that I can point to with a URI or do I have >>to install something. >> >># checkXML index.docbook >>index.docbook:10: error: failed to load external entity "dtd/kdex.dtd" >>]> >>^ >>index.docbook:39: error: Entity 'language' not defined >><book lang="&language;"> >> ^ >>index.docbook:39: validity error: No declaration for attribute lang on >>element book >><book lang="&language;"> >> >> >>Is there supposed to be a trailing ">" instead of a "[" in >>docbook.template? I get less errors that way. :-) >><!DOCTYPE book PUBLIC "-//KDE//DTD DocBook XML V4.2-Based Variant >>V1.1//EN" "dtd/kdex.dtd" [ >> >The ]> is a few lines further on, after some other entities, which you'll find >you need to get sensible output :) > Ok, I didn't expect "<>" imside other "<>".
>XML errors are sort of exponential. If the first one is "I can't find the >DTD" then pretty much every tag you use will cause another error. Fix that >first one, and all the others go away - because they really aren't errors. > >What version of libxml2 do you have installed? 2.4.24 through 2.4.28 have bugs >that prevent any KDE docs building, so that's the first thing to check. > I didn't have any and now I have 2.4.24 but I guess that has bugs. How do I get the new lib? >The second thing to check is that you have that version of the DTD installed - >that would require you have CVS HEAD kdelibs/kdoctools/customization/ >installed (you should be able to simply copy that into place without having >to build all of kdelibs, if you don't want to install HEAD.) If you've an >earlier version of KDE installed, find the >kdelibs/kdoctools/template.docbook, and use the version from that instead. > I installed kdelibs but I still don't have template.docbook. I installed app-i18n/kde-i18n -- ---------------------------------------- Sent from Mozilla and GNU/Linux. Powered by an AMD processor.
