RE: [xsl] How to use an image path passed in an XML file to use it on an XSL

Subject: RE: [xsl] How to use an image path passed in an XML file to use it on an XSL
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Mon, 4 Apr 2005 09:48:59 +0100
> I tried to read the xml line which is generated via a program 
> in this way,
> 
> <staffPhoto> url('file:C:///staff/beena.jpg') </staffPhoto>
> 
> In my xsl i wrote the below line to read the above xml line
> 
> <fo:external-graphic src="staffPhoto"/>
> 
> What is wrong in this ?

It should be 
    
     src="{staffPhoto}"

(although you might still have problems. I would expect
'file:///C:/staff/beena.jpg')

Michael Kay
http://www.saxonica.com/

Current Thread