On 5/21/2003 9:18 AM, Jeremias Maerki wrote:
You may need to the the base directory/URL. See:
http://xml.apache.org/fop/embedding.html#config-internal

But I think your src attribute is wrong. It should be something like
this: src="url(file:logo.gif)".

I was thinking it was this:

<fo:external-graphic text-align="center" height="40px" width="76.31px" src="url(logo.gif)"/>

or if it were in sub-directory "images/" it would look like this:

<fo:external-graphic text-align="center" height="40px" width="76.31px" src="url(images/logo.gif)"/>

Yup! 'Just looked, and that's how it's written on page 93 of Dave Pawson's O'Reilly book "XSL-FO: Making XML Look Good in Print".

BTW, Page 652 of Elliotte Rusty Harold's XML Bible indicates it should be written like as follows:

  <fo:external-graphic src="images/logo.jpg"/>

  <fo:external-graphic src="http://www.medata.com/images/logo.jpg"/>

...hmmm...

I just checked the spec:

fo:external-graphic
http://www.w3.org/TR/2001/REC-xsl-20011015/slice6.html#fo_external-graphic

src
http://www.w3.org/TR/2001/REC-xsl-20011015/slice7.html#src

and they didn't have an example (D'oh!, why don't they give examples!?)

I also looked at zvon.org, and they show it as:
  <fo:external-graphic src="file:../graphics/images/logo.jpg"/>

NOTE-TO-VICTOR: Once we get this completely straightened out, this info might be useful at the top of the graphics page, to help newbies craft this little call (although we could also include the plethora of whichever functioning options will work). I use the following (works perfectly), so we might just want to use it as our example:

<fo:external-graphic src="url('images/logo.jpg')" width="1.87cm" height=".99cm" content-width="1.87cm" content-height=".99cm" border="0"/>

(NOTE: shown actual size & pulled directly from functioning code)
(NOTE: no animals were harmed in the execution of this code)

--
Clay Leeds - [EMAIL PROTECTED]
Web Developer - Medata, Inc. - http://www.medata.com
PGP Public Key: https://mail.medata.com/pgp/cleeds.asc


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to