Clay Leeds wrote (a long time ago, May 21, 2003 to be exact): > 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".
First, again I apologize for being so slow. I am cleaning out old items that I had marked for followup. You are both right. Jeremias has included the URI scheme to be more explicit. The URI you reference is relative to the base URI. > 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... Probably based on a pre-release version of the spec. Pawson's book indicates that there was some controversy about whether to use URIs. > 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!?) The URI spec is pretty flexible, and documenting a useful range of examples would be a big job, and no doubt considered outside the scope of the spec, which is after all a spec, not a tuturial, and certainly not a tutorial on URI. What *is* there is a definition of the uri-specification datatype, including a reference to the URI spec itself: http://www.w3.org/TR/2001/REC-xsl-20011015/slice5.html#section-N8794-Propert y-Datatypes (Yes, it would have been helpful for them to link from the "src" definition to the datatype definition). > I also looked at zvon.org, and they show it as: > <fo:external-graphic src="file:../graphics/images/logo.jpg"/> Just missing the url() syntax. Again, perhaps an old version of the spec. > 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"/> OK, I have added a section to our XSL-FO page which documents how to reference "External Resources", esp. those on local filesystems, and I have updated our FAQ page to point to this. Since this is *strictly* an XSL-FO issue, and since it can be found through the FAQ already, I'm going to keep it off of our Graphics page, although we can add a link from there to the "External Resources" doc later if it looks like it is needed. These changes are in CVS, & will be published in the next week or so. Victor Mote --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]