RE: external-graphic problem
Title: RE: external-graphic problem I had the same problem before, I passed in image root as a parameter to XSLT page, and add that to the path of images. The limitation is: you have to assume all images are using same root path. Tiffany -Original Message- From: vivek gupta [mailto:[EMAIL PROTECTED]] Sent: Tuesday, August 24, 2004 9:08 PM To: [EMAIL PROTECTED] Subject: fo:external-graphic problem Hi All, I am having problem to use image in my web-application fop file. I am using XSLT and XML to generate fo file. But when I am deploying app on my app server. It could not find image file unless I hard code image path. Please help me how to set up path so that fo file dynamically finds image file Thanks in advance -V __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: external-graphic problem
Mihael Knezevic wrote: thanx for the response. correct me if i'm wrong, but i thought the base dir must only be set if i use this in a servlet? baseDir *may* be set if you need it. Environment doesn't matter, that's just a convenient way to resolve relative URI's. -- Oleg Tkachenko Multiconn Technologies, Israel - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: external-graphic problem
thanx again. -Original Message- From: Oleg Tkachenko [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 05, 2003 11:25 AM To: [EMAIL PROTECTED] Subject: Re: external-graphic problem Mihael Knezevic wrote: thanx for the response. correct me if i'm wrong, but i thought the base dir must only be set if i use this in a servlet? baseDir *may* be set if you need it. Environment doesn't matter, that's just a convenient way to resolve relative URI's. -- Oleg Tkachenko Multiconn Technologies, Israel - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: external-graphic problem
Here is our working code: xsl:if test=@isrc!='' fo:external-graphic scaling=uniform height=auto width=auto content-width=auto content-height=auto src=[EMAIL PROTECTED]/ /xsl:if If I remember right, you also have to set the basedir (either in your userconfig.xml or via Java): Configuration.put(baseDir, file: + imgSrcDir); -Lou Mihael Knezevic [EMAIL PROTECTED] on 02/04/2003 07:56:52 Please respond to [EMAIL PROTECTED] To: [EMAIL PROTECTED] cc: Subject: external-graphic problem hi, i think i got a simple problem and probably everybody will point me to the fop faq but i need an example (hopefully a working one). i want to have one pic on one page. i got the following xml file: Bericht Bild source=wgr-50.jpg / Bild source=wgr-60.jpg / Bild source=wgr-70.jpg / Bild source=wgr-80.jpg / ... /Bericht i got the following xsl line in my xsl file: fo:external-graphic src=@source / but i get the error message: [ERROR]: Error while creating area : Error with image URL: @source (Das System kann die angegebene Datei nicht finden) and no base directory is specified can anybody help? thanx mk - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: external-graphic problem
thanx for the response. correct me if i'm wrong, but i thought the base dir must only be set if i use this in a servlet? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 04, 2003 2:12 PM To: [EMAIL PROTECTED] Subject: Re: external-graphic problem Here is our working code: xsl:if test=@isrc!='' fo:external-graphic scaling=uniform height=auto width=auto content-width=auto content-height=auto src=[EMAIL PROTECTED]/ /xsl:if If I remember right, you also have to set the basedir (either in your userconfig.xml or via Java): Configuration.put(baseDir, file: + imgSrcDir); -Lou Mihael Knezevic [EMAIL PROTECTED] on 02/04/2003 07:56:52 Please respond to [EMAIL PROTECTED] To: [EMAIL PROTECTED] cc: Subject: external-graphic problem hi, i think i got a simple problem and probably everybody will point me to the fop faq but i need an example (hopefully a working one). i want to have one pic on one page. i got the following xml file: Bericht Bild source=wgr-50.jpg / Bild source=wgr-60.jpg / Bild source=wgr-70.jpg / Bild source=wgr-80.jpg / ... /Bericht i got the following xsl line in my xsl file: fo:external-graphic src=@source / but i get the error message: [ERROR]: Error while creating area : Error with image URL: @source (Das System kann die angegebene Datei nicht finden) and no base directory is specified can anybody help? thanx mk - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: external-graphic problem
thanx. its working now. i should have read the xsl book more carefully. i missed the part with the braces { }. sorry and thanx for the help. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 04, 2003 2:12 PM To: [EMAIL PROTECTED] Subject: Re: external-graphic problem Here is our working code: xsl:if test=@isrc!='' fo:external-graphic scaling=uniform height=auto width=auto content-width=auto content-height=auto src=[EMAIL PROTECTED]/ /xsl:if If I remember right, you also have to set the basedir (either in your userconfig.xml or via Java): Configuration.put(baseDir, file: + imgSrcDir); -Lou Mihael Knezevic [EMAIL PROTECTED] on 02/04/2003 07:56:52 Please respond to [EMAIL PROTECTED] To: [EMAIL PROTECTED] cc: Subject: external-graphic problem hi, i think i got a simple problem and probably everybody will point me to the fop faq but i need an example (hopefully a working one). i want to have one pic on one page. i got the following xml file: Bericht Bild source=wgr-50.jpg / Bild source=wgr-60.jpg / Bild source=wgr-70.jpg / Bild source=wgr-80.jpg / ... /Bericht i got the following xsl line in my xsl file: fo:external-graphic src=@source / but i get the error message: [ERROR]: Error while creating area : Error with image URL: @source (Das System kann die angegebene Datei nicht finden) and no base directory is specified can anybody help? thanx mk - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]