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
On Aug 24, 2004, at 6:08 PM, vivek gupta wrote:
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
Hello,
I have a problem when i use the fo:external-graphic tag.
I use FOP and i have this error when i try to parse the fo file:
Unsupported element encountered: external-graphic (Namespace : Default)
Source context: ...
Expected XSL-FO (root,, page sequence,etc.), SVG (svg, rect,
I have a weird and crazy idea that may help you
Why don't you install a local apache server with mod_proxy.
You can configure mod_proxy so that it can tunnel into https from your http
connection.
1) It's very fast, all my browsing is through a proxy server
2) You can secure your local
Hi Phillip,
Thanks for the answere, and if I controlled the deployment environment I
might do something like what you suggest. In this case I dont want to
suggest anything that means installing additional software. Maintenance
is expensive =). Also, I really prefer to have all resources needed
Hi,
I have the following external graphic declaration in a XML file:
fo:external-graphic src=url('{$base-url}/images/logo.jpg')
height=30pt width=170pt/
I render it to a servlet outputstream using:
Driver driver;
driver = new Driver( new InputSource( reader ), out );
driver.setRenderer(
Currently there's no possibility to set or use an EntityResolver (or
similar) but it's on the todo list. In the meantime you could try to set
the baseURL in Java code like this:
Configuration.put(baseDir, https://myserver/somedir;);
But please be aware that this currently only works in the CVS
Hi Jeremias,
Thank you for answering,
I am already using urls, i.e
http://host.domain.com/webapp/images/foo.gif works, but
https://host.domain.com/webapp/images/foo.gif does not.
Currently there's no possibility to set or use an EntityResolver (or
similar) but it's on the todo list.
Nice to
Are your images located on the same server as FOP? If yes, you could
access the files directly by filesystem if you set baseDir to something
like:
Configuration.put(baseDir, C:\tomcat\webapps\webapp);
Surely not a clean solution but faster than going via http/https and it
could work for the
Johan Åbrandt wrote:
It doesnt do the trick for me since I have no idea where any of our
customers might have decided to install their application server. Also I
am using EAR file which means that servletContext.getRealPath( string )
wouldnt do it either. I am currently looking into using the
Johan Åbrandt wrote:
Personally I would put a high priority on enabling the programmer to
override resource resolution (ala EntityResolver) for FOP though.
As Jeremias pointed out SourceResolver is already in the todo list. But when
it would be implemented - nobody knows.
--
Oleg Tkachenko
As Jeremias pointed out SourceResolver is already in the todo list.
Ok, I it is this one: Integrate with Jakarta Avalon: logging,
configuration, URI resolver, component management, image caching etc. ?
open ?
Anyhow, thanks for the help, Oleg and Jeremias.
Br - Johan
Oleg Tkachenko wrote:
12 matches
Mail list logo