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

Greg Ludington gludington at gmail.com
Tue Mar 8 20:05:20 PST 2005


Thank you for the response.  The URLs in question are absolute,
however, and, when I set the system id explicitly in code, e.g.

jaxpsrc.setSystemId(foo);
style.setSystemId(bar);

I still see the same error.

-Greg


On Wed, 9 Mar 2005 05:49:32 +0300, Alexei Gagarinov
<agagarinov at renderx.com> wrote:
> 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 at renderx.com [mailto:owner-xep-support at renderx.com]
> On Behalf Of Greg Ludington
> Sent: Wednesday, March 09, 2005 4:08 AM
> To: xep-support at 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 at 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 at 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 at 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



More information about the Xep-support mailing list