Re: [docbook-apps] DB soft-hyphen characters and DB 5: entity doesn't work

From
Bob Stayton <>
Date
2011-02-03T22:51:29+00:00
ID
01c701cbc3f4$db51f890$6600a8c0@pazu
Thread
Re: [docbook-apps] DB soft-hyphen characters and DB 5: entity doesn't work
Hi Tom,
The &shy; entity is declared to be the same character reference &#xAD;, so if the 
character reference works then the problem is in resolving the entity reference. I 
infer from your use of the -ns- stylesheets that you are using DocBook 5. The DocBook 
5 RNG schema does not support entity declarations, so &shy; is not declared in your 
documents.  You should be getting a parsing error to that effect.

A workaround is required to use the DocBook entity declarations from DocBook 4.  See 
this reference for more information:

http://www.sagehill.net/docbookxsl/Db5Entities.html#CharEntities

Let me know if I'm misunderstanding the problem.

Bob Stayton
Sagehill Enterprises



----- Original Message ----- 
From: "Tom Browder" <>
To: "Docbook Apps Help list" <>
Sent: Thursday, February 03, 2011 12:49 PM
Subject: [docbook-apps] DB soft-hyphen characters and DB 5: entity doesn't work


> Bob Stayton, on p. 172 of his book, says one can use either of two
> characters to produce a soft-hyphen (invisible unless the hyphen is
> used to break a line):
>
>  Unicode character '&#xAD;'
>  DB entity '&shy;'
>
> With xsltproc, docbook-xsl-ns-1.76.1, and fop 1.0 the Unicode
> character works but the entity doesn't.
>
> I've tried '&db:shy' but no go.  What am I something wrong?
>
> Thanks.
>
> Best,
>
> -Tom
>
> Thomas M. Browder, Jr.
> Niceville, Florida
> USA
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: 
> For additional commands, e-mail: 
>
>
>