W3C home > Mailing lists > Public > www-xsl-fo@w3.org > May 2005

Re: FO Exception external-graphic

From: David Carlisle <davidc@nag.co.uk>
Date: Tue, 3 May 2005 10:06:52 +0100
Message-Id: <200505030906.KAA07874@penguin.nag.co.uk>
To: jstanley@infinitecampus.com
CC: www-xsl-fo@w3.org

fo:external-graphic src attribute takes a URI not an MSDOS file path
The URI also (unfortunately) has to be wrapped in CSS url(" ... ")

so you should have

<fo:external-graphic src='url("file:///c/picDir/{@personID}.jpg")"

Or at least I am assuming that's what you want: you did not have a 
\ or / betweeen @personID  


although your error message indicated one, perhaps teh \ is in the
personID attribute?

  "[ERROR] Error while creating area : Error with image URL:
  C:\picDir\776.jpg (The system cannot find the file specified) and no
  base URL is specified".

The fact that you got that error at all indicates that your system isn't
enforcing the url() syntax.


This e-mail has been scanned for all viruses by Star. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
Received on Tuesday, 3 May 2005 09:07:22 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 20:58:29 UTC