Hi Tom,
The ­ entity is declared to be the same character reference ­, 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 ­ 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
[email protected]


----- Original Message ----- From: "Tom Browder" <[email protected]>
To: "Docbook Apps Help list" <[email protected]>
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: [email protected]
For additional commands, e-mail: [email protected]





---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to