Adding relative path for an external graphic in a XSL document?
Posted
by Pran
on Stack Overflow
See other posts from Stack Overflow
or by Pran
Published on 2010-02-17T17:01:44Z
Indexed on
2010/03/08
15:21 UTC
Read the original article
Hit count: 416
Hi, first of, I don't know much about XSL.
I am using a app called DITA to generate pdfs. One of the things it requires is an overwrite of an xsl file; to add custom styling.
I am trying to add an external graphic using a relative path. It doesn't work, unless I supply the full path.
Does not work:
<fo:block text-align="center" width="100%">
<fo:external-graphic src="../../images/logo.png"/>
</fo:block>
Does work:
<fo:block text-align="center" width="100%">
<fo:external-graphic src="/absolute/path/to/images/logo.png"/>
</fo:block>
I looked on the web, it said to use "file:image.png" and other website said to use "url(image.png)", but neither worked.
What am I doing wrong?
© Stack Overflow or respective owner