AW: fo:external-graphic
"Bernhard Woehrlin" <[email protected]>
| Newsgroups | gmane.comp.java.strutscx.user |
|---|---|
| Organization | IT.CappuccinoNet.com |
| Message-ID | <000601c460db$819386d0$4c01a8c0@javaws> |
Hi Joris, The HTML image location must be found by the Webserver to serve it via http to the client's browser. FOP/XSL-FO needs the image location to generate PDF (which in a second step will get served as one PDF-file to the client). Therefore I guess that your $servicecontract path to the image should differ in XSL-FO and HTML. Check out the XSL-FO/FOP documentation for details on including images/files. Hope this is of some help for you. Regards, Berny -----Ursprüngliche Nachricht----- Von: [email protected] [mailto:[email protected]] Im Auftrag von Joris Schmidl Gesendet: Montag, 28. Juni 2004 23:07 An: [email protected] Betreff: [Strutscx-user] fo:external-graphic Hi @All, I' m trying to load an image into my PDF Document, using this statement: <xsl:variable name="servicecontract"><xsl:value-of select="//session/projectName"/>/img/servicecontract.gif</xsl:variable> <fo:external-graphic src="{$servicecontract}" content-height="100%" content-width="100%"/> But the image doesn't appear in the Pdf. I' wondering because i've tried with an <img src="{$servicecontract}" border="0" alt=""/> which works fine on an html output from the same sheet. Pleas can anybody help me ?! Thanxs ------------------------------------------------------- This SF.Net email sponsored by Black Hat Briefings & Training. Attend Black Hat Briefings & Training, Las Vegas July 24-29 - digital self defense, top technical experts, no vendor pitches, unmatched networking opportunities. Visit www.blackhat.com