RE: [docbook-apps] Problem using link with xlink:href with htmlhelp

From
Mauritz Jeanson <>
Date
2006-10-25T05:27:06+00:00
ID
005301c6f7f6$12704180$71ea1a51@D7MZ171J
Thread
RE: [docbook-apps] Problem using link with xlink:href with htmlhelp
> -----Original Message-----
> From: Thomas.Fehling
> 
> i also
> had to add 
> '<book lang="de"
> 	xmlns="http://docbook.org/ns/docbook"
> 	xmlns:xlink="http://www.w3.org/1999/xlink" >'.
> 
> Now generating HTML, XHTML and PDF works fine. But htmlhelp 
> produces the
> following error:
> 
> C:\HeWoG\Hilfe\XML>java  com.icl.saxon.StyleSheet
> Anwenderhandbuch\Anwenderhandbuch.xml
> ../docbook-xsl-1.71.0/htmlhelp/htmlhelp.xsl use.extensions=1
> No template matches book.

[...] 
 
> Then no html files are generated. Only htmlhelp.hhp and toc.hhc are
> generated.
> When I strip the xmlns declarations (just '<book lang="de">') and the
> link, the helpfile will be produced.
> 
> I use docbook-xml-4.5 together with docbook-xsl-1.71.0 and 
> saxon 6.5.5.


The xmlns="http://docbook.org/ns/docbook" declaration makes the stylesheets
interpret the XML file as DocBook 5, not 4.5. 

You have stumbled upon the following gotcha: when producing HTML Help from a
DocBook 5 document, the profiling stylesheets (profile-htmlhelp.xsl instead
of htmlhelp.xsl) must be used.

See http://www.oasis-open.org/archives/docbook/200605/msg00018.html.

/MJ