On Wed, Aug 06, 2003 at 06:29:18PM -0500, Miranda W. Hedrick wrote:
I'm using xsltproc 2.5.8 on WindowsXP, working with
DocBook 4.2. I have been able to successfully generate
static HTML, HTMLHelp and PDF (via Fop) files using some
customized XSL stylesheets. Very cool stuff! And now I
have a couple of questions...
I declared an entity as follows:
<!ENTITY myimage SYSTEM "/path/to/images/myimage.gif" NDATA GIF>
I then inserted a mediaobject that referenced the entity:
<mediaobject>
<imageobject>
<imagedata entityref="myimage" format="GIF" />
</imageobject>
</mediaobject>
------------------------------------
1. When I process the XML, the image source is lost.
I just get src="" within the generated IMG tag. If I just
use fileref, the image renders properly. What am I doing
wrong here?
It looks right, but somehow the entity is not resolving.
It doesn't matter if the path is correct, as it is
just passed through once the entity resolves.
Are you declaring the entity in the DOCTYPE,
or a separate file? The stylesheet doesn't
complain when it can't resolve such an entityref,
but it probably should.