Next in thread → Next in month →

RE: [docbook-apps] escaping characters in toc.hhc

From
Joy Andree <>
Date
2006-02-10T17:48:19+00:00
ID
Thread
RE: [docbook-apps] escaping characters in toc.hhc
Thanks this worked.

 

From: Bob Stayton
[mailto:] 

Sent: Thursday, February 09, 2006
5:57 PM

To: Joy Andree;


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



----- Original Message ----- 

From: Joy Andree 

To:  

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 &ldquo; and &rdquo;.  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
Next in thread → Next in month →