[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: Re: [docbook] Newbie: DocBook and images
On Thu, Mar 27, 2003 at 02:57:42PM +1100, craig wrote: > I am generating html using Docbook and Cocoon, standard installation > on Mac OS X. > > xml fragment: > <figure><title>The SapphireOne Structure is displayed below.</title> > <graphic fileref="/Tomcat/webapps/cocoon/docbook/images/SOStructure" > format="JPEG"/> > </figure> > > This fragment generates the following html fragment: > <div> > <img src="/Tomcat/webapps/cocoon/docbook/images/SOStructure" alt="The > SapphireOne Structure is displayed below."></div> > </div> > > This does not display the Image in IE 5.2.1 (Mac), but when I save the > html to disc, and open the file fro the disc, it does display the > image. > Now I can live with this (for about a week), but I need a fix. Your HTTP server doesn't have permission to serve that pathname. In HTML output, the fileref attribute is copied straight through to the img href attribute. The image file itself is not accessed during processing. So the pathname used in fileref should one that is accessible from your HTTP server. If it is an absolute path, it must be relative to your HTTP server's document root. If it is a relative path, it must be relative to the generated HTML files. For example, you could use: <graphic fileref="images/SOStructure" and then copy the images/* directory to the location of your HTML output files. -- Bob Stayton 400 Encinal Street Publications Architect Santa Cruz, CA 95060 Technical Publications voice: (831) 427-7796 The SCO Group fax: (831) 429-1887 email: bobs@sco.com
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]