RE: [xep-support] Problem with external graphic when using embedding XEP 4.2

From: Alexei Gagarinov <agagarinov@renderx.com>
Date: Tue Mar 08 2005 - 18:49:32 PST

Hello Greg,

> "attribute image-base-url is required but missing"

It means that the System ID of your input source is null.
Set System ID in your code explicitly.

> Why am I getting this error message?

If System ID is null, XEP doesn't means to recognize the base point from
which relative URLs would be resolved.

> Why is the exact same XSL working in XEP Assistant?

When you run XEP with command line or through XEP Assistant, this base point
is your input source file (XML or XSL-FO).
 
Best regards,
  Alexei Gagarinov
RenderX

-----Original Message-----
From: owner-xep-support@renderx.com [mailto:owner-xep-support@renderx.com]
On Behalf Of Greg Ludington
Sent: Wednesday, March 09, 2005 4:08 AM
To: xep-support@renderx.com
Subject: [xep-support] Problem with external graphic when using embedding
XEP 4.2

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

-------------------
(*) 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 19:33:53 2005

This archive was generated by hypermail 2.1.8 : Tue Mar 08 2005 - 19:33:53 PST