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(" ... ")
syntax.

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  

 concat('C:\picDir',@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.

David

________________________________________________________________________
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:
http://www.star.net.uk
________________________________________________________________________
Received on Tuesday, 3 May 2005 09:07:22 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 3 October 2007 16:06:13 GMT