Thanks this worked.
From: Bob Stayton
[mailto:bobs@sagehill.net]
Sent: Thursday, February 09, 2006
5:57 PM
To: Joy Andree;
docbook-apps@lists.oasis-open.org
Subject: Re: [docbook-apps]
escaping characters in toc.hhc
The problem is that the default output encoding for
htmlhelp is iso-8859-1 and those characters are not in that encoding. But
you can use windows-1252 for the encoding with Saxon. See the
"Languages and Encoding" section of this reference:
http://www.sagehill.net/docbookxsl/HtmlHelp.html
You have to follow the directions and example very carefully for Saxon
processing with encoding="windows-1252", but it does work.
Bob Stayton
Sagehill Enterprises
DocBook Consulting
bobs@sagehill.net
----- Original Message -----
From: Joy Andree
To: docbook-apps@lists.oasis-open.org
Sent: Thursday, February 09, 2006 10:30 AM
Subject: [docbook-apps] escaping characters in toc.hhc
Help,
Here is the error I keep getting when a special character is in a title
element.
Error at xsl:copy-of on line 338 of file:/D:/Tools/XSL/docbook/html/chunker.xsl:
Output character not available in this encoding (decimal 8220)
Transformation failed: Run-time errors were reported
This in turns breaks the toc.hhc file and the index. When the CHM is
opened the left side toc has only a path the location where the toc broke (even
thou other files build they are not displayed in the toc), which is not
necessarily the title with the special character. When I remove the
special character everything is fine and when I add it to the escape-attr.
My source xml has the “ and ”. I tried to modify by
creating a customization that changes the dingbat key to quot and changing the
saxon.character.representation to native but neither seems to work.
Other than adding each of these special characters to the escape-attr template
is there another way I can get the special characters to convert to the entity
instead of the decimal characters?
Thanks in advance,
Joy