I am attemping to generate PDF output using an external graphic. I
have a transformation that works fine using the xep assistant, but
when called from my own application, it fails, saying that
"attribute image-base-url is required but missing"
Here is the relevant bit of the XSLT that triggers the problem:
<fo:external-graphic src="url('http://images.slashdot.org/title.gif')"/>
I am not using slashdot's images, of course, but I hard-coded the
image reference to remove the XML source from the equation as I am
testing.
When I run this from the XEP assistant, I get a PDF with the slashdot
logo across the top of the page. When I call an embedded instance of
XEP using this:
target = new FOTarget(out, format);
trans = transformerFactory.newTransformer(style);
fot = new FOTransformer(trans, xepFormatter);
fot.transform(jaxpsrc, target);
(format ="pdf", jaxpsrc and style are SAXSources, xepFormatter is my
previously initialized XEP instance)
Why am I getting this error message, and why is the exact same XSL
working in XEP Assistant?
Thanks,
Greg Ludington
-------------------
(*) To unsubscribe, send a message with words 'unsubscribe xep-support'
in the body of the message to majordomo@renderx.com from the address
you are subscribed from.
(*) By using the Service, you expressly agree to these Terms of Service http://www.renderx.com/tos.html
Received on Tue Mar 8 18:01:52 2005
This archive was generated by hypermail 2.1.8 : Tue Mar 08 2005 - 18:01:54 PST