http://bugzilla.novell.com/show_bug.cgi?id=559036
http://bugzilla.novell.com/show_bug.cgi?id=559036#c3
Gregg Leichtman changed:
What |Removed |Added
----------------------------------------------------------------------------
Priority|P5 - None |P4 - Low
--- Comment #3 from Gregg Leichtman 2009-12-30 12:42:22 UTC ---
I discovered that even after I tracked down a copy of meinproc4 in Mandriva
2009: kdelibs4-core-4.3.2-0.2mdv2009.1.i586.rpm, I ran into a new indexing
problem.
Specifically, I determined that the indexing script is located at:
/usr/lib/kde4/libexec/khc_docbookdig.pl
After analyzing this script's contents, I ran:
meinproc4 --htdig /usr/share/doc/kde/HTML/en/kdm/index.docbook
and can generate the same XSLT parser error seen when trying to build the
search index from within khelpcenter (once meinproc4 is installed and in the
executables path of course):
gsl@aragorn:/tmp/junk> meinproc4 --htdig
/usr/share/doc/kde/HTML/en/kdm/index.docbook
I/O warning : failed to load external entity ""
error
xsltParseStylesheetFile : cannot parse
Looking inside index.docbook for kdm for example, we see the following at the
top of the file:
<?xml version="1.0" ?>
<!DOCTYPE book PUBLIC "-//KDE//DTD DocBook XML V4.2-Based Variant V1.1//EN"
"dtd/kdex.dtd" [
<!ENTITY kappname "&kdm;">
<!ENTITY package "kdebase">
<!ENTITY kdmrc "<filename>kdmrc</filename>">
<!ENTITY ksmserver "<application>ksmserver</application>">
<!ENTITY kdesktop "<application>kdesktop</application>">
<!ENTITY XDMCP "<acronym>XDMCP</acronym>">
<!ENTITY xdm "<application>xdm</application>">
<!ENTITY kdmrc-ref SYSTEM "kdmrc-ref.docbook">
<!ENTITY theme-ref SYSTEM "theme-ref.docbook">
<!ENTITY % addindex "INCLUDE">
<!ENTITY % English "INCLUDE" > <!-- change language only here -->
]>
These are referring to external entities. Later in the file we discover that
some entities are not defined including an external dtd kdex.dtd located in the
Mandriva 2009 rpm kdelibs4-core-4.3.2-0.2mdv2009.1.i586.rpm at:
/usr/share/apps/ksgmltools2/customization/dtd
Ran checkXML against the kdm index.docbook (checkXML index.docbook) and got
many missing entity errors. This is the root of the indexing problem, since the
kdex.dtd does not contain these entities either.
index.docbook:15: warning: failed to load external entity "dtd/kdex.dtd"
]>
^
index.docbook:17: parser error : Entity 'language' not defined
<book lang="&language;">
^
index.docbook:17: element book: validity error : No declaration for attribute
lang of element book
<book lang="&language;">
^
index.docbook:19: parser error : Entity 'kdm' not defined
<title>The &kdm; Handbook</title>
^
index.docbook:19: element title: validity error : No declaration for element
title
<title>The &kdm; Handbook</title>
^
index.docbook:23: parser error : Entity 'Oswald.Buddenhagen' not defined
&Oswald.Buddenhagen; &Oswald.Buddenhagen.mail;
Until both meinproc4 and the missing entities are placed in the proper
locations upon installation, I don't see how khelpcenter can successfully
index.
-=> Gregg <=-
--
Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.