Bug 209415 - search index broken --- xsltCompilePattern : failed to compile 'sect*/title'
Summary: search index broken --- xsltCompilePattern : failed to compile 'sect*/title'
Status: RESOLVED FIXED
Alias: None
Product: khelpcenter
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: unspecified Linux
: NOR normal
Target Milestone: ---
Assignee: Documentation Editorial Team
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-10-04 17:21 UTC by spam01
Modified: 2016-03-12 23:25 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
khelpcenter index creation log (96.89 KB, text/plain)
2010-03-31 13:52 UTC, andrew brewster
Details
Patch for ksgmltools2/customization/htdig_index.xsl (567 bytes, patch)
2010-07-08 22:28 UTC, Alexey Shildyakov
Details

Note You need to log in before you can comment on or make changes to this bug.
Description spam01 2009-10-04 17:21:23 UTC
Version:           4.3.1 (KDE 4.3.1) (using 4.3.1 (KDE 4.3.1), Debian packages)
Compiler:          cc
OS:                Linux (x86_64) release 2.6.30-1-amd64

Pleas repair - and where is the kphotoalbum doc?

(9177) main: cmdFile: "/tmp/kde-me/khelpcenterlh9095.tmp" (9177) main: indexDir: "/home/me/.kde/share/apps/khelpcenter/index/"
(9177) main: can access
(9177) KHC::IndexBuilder::IndexBuilder: IndexBuilder() (9177) KHC::IndexBuilder::buildIndices: Opened file ' "/tmp/kde-me/khelpcenterlh9095.tmp" ' (9177) KHC::IndexBuilder::buildIndices: LINE: "/usr/lib/kde4/libexec/khc_docbookdig.pl --indexdir=/home/me/.kde/share/apps/khelpcenter/index/ --docpath=khelpcenter:kde_application_manuals --identifier=kde_application_manuals" (9177) KHC::IndexBuilder::processCmdQueue: IndexBuilder::processCmdQueue() (9177) KHC::IndexBuilder::processCmdQueue: PROCESS: "/usr/lib/kde4/libexec/khc_docbookdig.pl --indexdir=/home/me/.kde/share/apps/khelpcenter/index/ --docpath=khelpcenter:kde_application_manuals --identifier=kde_application_manuals"
INDEXDIR: /home/me/.kde/share/apps/khelpcenter/index/
FINDCMD: find /usr/share/doc/kde4/HTML/en/ -name index.docbook
Creating index for 'kde_application_manuals'
ht://dig Start Time: Sun Oct  4 16:17:15 2009
Warning: unknown locale!

New server: localhost, 0
0:2:0:file:///home/me/.kde/share/apps/khelpcenter/index/kde_application_manuals.tmp/index.html:
New server: kdebugdialog, 80
+
New server: kioslave, 80
+++++++++++++++++++++++++++++
New server: knetattach, 80
+
New server: kdesu, 80
+
New server: kaddressbook, 80
+
New server: kcontrol, 80
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
New server: amor, 80
+

...

New server: kinfocenter, 80
++++++++++++++++++
New server: tellico, 80
+ size = 27198
compilation error: file /usr/share/kde4/apps/ksgmltools2/customization/htdig_index.xsl line 38 element template xsltCompilePattern : failed to compile 'sect*/title'
1:173:1:help://kmplot/index.docbook:  size = 2542
compilation error: file /usr/share/kde4/apps/ksgmltools2/customization/htdig_index.xsl line 38 element template
xsltCompilePattern : failed to compile 'sect*/title'
2:151:1:help://khangman/index.docbook:  size = 37636
compilation error: file /usr/share/kde4/apps/ksgmltools2/customization/htdig_index.xsl line 38 element template
xsltCompilePattern : failed to compile 'sect*/title'
3:229:1:help://kdesvn-build/index.docbook:  size = 115753
...
compilation error: file /usr/share/kde4/apps/ksgmltools2/customization/htdig_index.xsl line 38 element template
xsltCompilePattern : failed to compile 'sect*/title'
263:129:1:help://killbots/index.docbook:  size = 38277
compilation error: file /usr/share/kde4/apps/ksgmltools2/customization/htdig_index.xsl line 38 element template
xsltCompilePattern : failed to compile 'sect*/title'
264:111:1:help://kbattleship/index.docbook:  size = 14325
htdig: Run complete
htdig: 144 servers seen:
htdig:     akregator:80 1 document
htdig:     amor:80 1 document
htdig:     ark:80 1 document
htdig:     blinken:80 1 document

...

htdig:     tellico:80 1 document
htdig:     umbrello:80 1 document
htdig:     xsldbg:80 1 document

htdig: Errors to take note of:
Unknown host or unable to contact server: help://policykit-kde/index.docbook Ref: file:///home/me/.kde/share/apps/khelpcenter/index/kde_application_manuals.tmp/index.html

HTTP statistics
===============
 Persistent connections    : Yes
 HEAD call before GET      : Yes
 Connections opened        : 0
 Connections closed        : 0
 Changes of server         : 0
 HTTP Requests             : 0
 HTTP KBytes requested     : 0
 HTTP Average request time : 0 secs
 HTTP Average speed        : 0 KBytes/secs

ht://dig End Time: Sun Oct  4 16:17:37 2009
Finished successfully.
(9177) KHC::IndexBuilder::sendProgressSignal: IndexBuilder::sendProgressSignal()
(9177) KHC::IndexBuilder::processCmdQueue: IndexBuilder::processCmdQueue() (9177) KHC::IndexBuilder::quit: IndexBuilder::quit()
Comment 1 andrew brewster 2010-03-31 13:52:46 UTC
Created attachment 42403 [details]
khelpcenter index creation log
Comment 2 andrew brewster 2010-03-31 13:56:52 UTC
same problems for me, index creation log attached.  I have fixed the locale error at the top, but that made no difference to the outcome
Comment 3 Alexey Shildyakov 2010-06-15 05:53:40 UTC
Same for me in Gentoo system with KDE 4.4.4. It's also apply to other people.
http://bugs.gentoo.org/process_bug.cgi
Comment 4 Andreas K. Huettel 2010-06-20 23:31:27 UTC
http://bugs.gentoo.org/show_bug.cgi?id=296345

Here's the link to the Gentoo bug report.
Comment 5 Andreas K. Huettel 2010-06-22 22:32:08 UTC
The file that fails to compile has not been modified for ages. 

This looks like a bug in libxslt. Filed it there too:
https://bugzilla.gnome.org/show_bug.cgi?id=622437
Comment 6 Alexey Shildyakov 2010-07-08 22:28:30 UTC
Created attachment 48698 [details]
Patch for ksgmltools2/customization/htdig_index.xsl

As it said in Gnome bugzilla the following patch make it compile.
Comment 7 Pino Toscano 2016-03-12 23:06:10 UTC
Git commit 583ed246c75ce2c686957b6e1dc34aaed31206b4 by Pino Toscano.
Committed on 12/03/2016 at 23:01.
Pushed by pino into branch 'master'.

Add Xapian support for indexing and searching

Start using Xapian for indexing and searching the documentation: it
works much better than htp://dig, it provides a C++ API, and it is well
maintained.

Introduce two helper tools to create/update an index, and search on it,
starting from the cache.bz2 files generated by meinproc: this way it is
possible to index the whole text, with the entities already expanded
(something which would not be there when parsing the docbook files
directly). Make use of libxml2 to parse the HTML documents, and get all
the text in them.

Xapian and libxml2 are currently considered as mandatory dependencies:
they are portable, generally available everywhere, and not requiring
themselves too many extra dependencies.
Related: bug 126710, bug 93664, bug 103266, bug 115935, bug 122437, bug 125276, bug 152671, bug 158633, bug 256397, bug 266290

M  +13   -0    CMakeLists.txt
M  +35   -0    searchhandlers/CMakeLists.txt
A  +134  -0    searchhandlers/cachereader.cpp     [License: GPL (v2+)]
A  +49   -0    searchhandlers/cachereader.h     [License: GPL (v2+)]
A  +107  -0    searchhandlers/htmltextdump.cpp     [License: GPL (v2+)]
A  +29   -0    searchhandlers/htmltextdump.h     [License: GPL (v2+)]
A  +5    -0    searchhandlers/xapian.desktop.cmake
A  +126  -0    searchhandlers/xapiancommon.cpp     [License: GPL (v2+)]
A  +50   -0    searchhandlers/xapiancommon.h     [License: GPL (v2+)]
A  +269  -0    searchhandlers/xapianindexer.cpp     [License: GPL (v2+)]
A  +151  -0    searchhandlers/xapiansearch.cpp     [License: GPL (v2+)]

http://commits.kde.org/khelpcenter/583ed246c75ce2c686957b6e1dc34aaed31206b4
Comment 8 Pino Toscano 2016-03-12 23:25:07 UTC
Git commit 163133768d77ae16e36b31d1174d6c60d53cfdce by Pino Toscano.
Committed on 12/03/2016 at 23:01.
Pushed by pino into branch 'master'.

Remove the ht://dig support

ht://dig is basically unmantained for the past decade, and its
integration in khelpcenter has always been a sort of hack (execute
a CGI, and print its resulting HTML text).

Since Xapian is used as better solution, all of the htp://dig
supporting code can be removed completely.
Related: bug 122437, bug 125276, bug 152671, bug 158633, bug 244091, bug 255384, bug 256397, bug 277464, bug 103266, bug 112958

M  +0    -2    CMakeLists.txt
D  +0    -14   README.htdig
M  +0    -14   doc/khelpcenter/index.docbook
M  +0    -9    docmetainfo.cpp
M  +0    -3    docmetainfo.h
D  +0    -61   htmlsearch.cpp
D  +0    -51   htmlsearch.h
D  +0    -47   htmlsearch/CMakeLists.txt
D  +0    -5    htmlsearch/Messages.sh
D  +0    -23   htmlsearch/checked.xpm
D  +0    -470  htmlsearch/htmlsearch.cpp
D  +0    -254  htmlsearch/htmlsearch.desktop
D  +0    -62   htmlsearch/htmlsearch.h
D  +0    -25   htmlsearch/index.cpp
D  +0    -371  htmlsearch/kcmhtmlsearch.cpp
D  +0    -84   htmlsearch/kcmhtmlsearch.h
D  +0    -52   htmlsearch/klangcombo.cpp
D  +0    -47   htmlsearch/klangcombo.h
D  +0    -246  htmlsearch/ktagcombobox.cpp
D  +0    -92   htmlsearch/ktagcombobox.h
D  +0    -6    htmlsearch/long.html
D  +0    -4    htmlsearch/meinproc_wrapper
D  +0    -21   htmlsearch/nomatch.html
D  +0    -89   htmlsearch/progressdialog.cpp
D  +0    -32   htmlsearch/progressdialog.h
D  +0    -1    htmlsearch/short.html
D  +-    --    htmlsearch/star.png
D  +-    --    htmlsearch/star_blank.png
D  +0    -19   htmlsearch/syntax.html
D  +0    -22   htmlsearch/unchecked.xpm
D  +0    -16   htmlsearch/wrapper.html
D  +0    -156  htmlsearchconfig.cpp
D  +0    -58   htmlsearchconfig.h
M  +0    -1    kcmhelpcenter.cpp
M  +0    -2    kcmhelpcenter.h
M  +2    -14   searchhandlers/CMakeLists.txt
D  +0    -8    searchhandlers/docbook.desktop.cmake
D  +0    -8    searchhandlers/htdig.desktop.cmake
D  +0    -2    searchhandlers/htdig_long.html
D  +0    -222  searchhandlers/khc_docbookdig.pl.cmake
D  +0    -148  searchhandlers/khc_htdig.pl.cmake
D  +0    -117  searchhandlers/khc_htsearch.pl
M  +1    -2    tests/CMakeLists.txt

http://commits.kde.org/khelpcenter/163133768d77ae16e36b31d1174d6c60d53cfdce