[kde-doc-english]docbook.template from CVS

Lauri Watts lauri at kde.org
Tue Jan 7 02:12:42 CET 2003


-----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 :)

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.

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.

Regards,
- -- 
Lauri Watts
KDE Documentation: http://i18n.kde.org/doc/
KDE on FreeBSD: http://freebsd.kde.org/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (FreeBSD)

iD8DBQE+GimM/gUyA7PWnacRAnmfAJ9Pxfu98jyW/m1t19cFebIIBfxjKQCgifDA
Qii9vK641tF5YG8LAqZn/4c=
=Fv1W
-----END PGP SIGNATURE-----




More information about the kde-doc-english mailing list