> -----Original Message-----
> From: Aankhen [mailto:]
> Sent: Wednesday, April 20, 2011 3:23 PM
> To: Tim Arnold; Docbook Apps Help list ()
> Subject: Re: [docbook-apps] dbhtml-include and entities
>
> Hi,
>
> On Wed, Apr 20, 2011 at 21:05, Tim Arnold <> wrote:
> > hi, I'm using dbhtml-include processing instructions (in DocBook5) to
> > include some external xhtml files.
> >
> > Some of these files contain the non-breaking space entity,
> > Files containing the entity do not get included in the final html.
>
> Which XSLT processor are you using? Is there any output pertaining to the
> files that aren’t included?
>
> > Is there a way I can define the entity so the stylesheets can include
> them?
> > I put this at the top of my htmlhelp.xsl file:
> > <?xml version="1.0"?>
> > <!DOCTYPE stylesheet [
> > <!ENTITY nbsp " ">
> > ]>
> > <xsl:stylesheet xmlns:xsl=http://www.w3.org/1999/XSL/Transform
> > etc etc.
>
> If I understand correctly, including the entity in your stylesheet’s
> DOCTYPE won’t have any effect. It will need to be defined in the files
> that use it themselves.
>
> Swapping it out for a numeric character reference (‘ ’ or ‘ ’
> instead of ‘ ’) should solve the problem, I think, if you can do that
> instead.
>
> Aankhen
Hi Aankhen,
I'm using xsltproc on FreeBSD and I only get back this error during processing:
parser error : Entity 'nbsp' not defined <td class="r data"> </td>
I don't have write access to the files I'm including, at least not easily.
Would you say that's the only way to solve the problem (string-replacing the named entity with the numbered kind)?
Thanks very much,
--Tim Arnold