Oooooo - good point. I bet that's what the problem was. It didn't cross my mind to use the filesystem path. I'm jumping back and forth from server side to client so I just popped in an href without thinking.
Thanks, - Brent > -----Original Message----- > From: Paul Crabtree [mailto:[EMAIL PROTECTED] > Sent: Thursday, November 13, 2003 12:53 PM > To: [EMAIL PROTECTED] > Subject: RE: NullPointerException Executing Pipeline > > > The normal including might not be working because of the > path? It looks like you've got a URL rather than a filesystem > path, since its importing it on the server instead of the > client maybe it cant resolve it. (?) > > -----Original Message----- > From: Brent L Johnson [mailto:[EMAIL PROTECTED] > Sent: 13 November 2003 17:49 > To: [EMAIL PROTECTED] > Subject: RE: NullPointerException Executing Pipeline > > > Using Base64 worked great - I'd rather do it that way anyway.. thanks! > > - Brent > > > if conversion is an option you can also embed it as base64 data ie > > > > xlink:href="data:;base64,/9j/4AAQSkZJRgABAgIAAAAAAAD//gAeQUNEI > > FN5c3RlbXMgRGlnaXRhbCBJbWFnaW5nAP/AABEI > > AKAAoAMBIgACEQEDEQH/2wCEAAEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQ > > EBAQEBAQEBAQEB > > AQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQ > > EBAQEBAQEBAQEB > > > > The nullpointerexception can be caused by anything, do error.log and > > core.log reveal anything more specific? > > > > > > Brent L Johnson wrote: > > > > > Ouch - I think Batik supports embedding an image into an > SVG file. > > > I tried this using an xlink attribute like the following: > > > > > > <?xml version="1.0"?> > > > <svg width="65" height="23" > > xmlns:xlink="http://www.w3.org/1999/xlink"> > > > <ttf-font type="Junegull"/> > > > <image x="0" y="0" width="65" height="23" > > > xlink:href="/images/button.png" /> > > > <text x="33px" y="18px" > > > > > > style="text-anchor:middle;fill:rgb(255,255,255);font-size:12;font-fami > > > ly > > > :Junegull">Add</text> > > > </svg> > > > > > > (ignore the <ttf-font> .. I have a stylesheet that transforms this > > > into a font <def>) > > > > > > When I try and run the pipeline that does a svg2jpeg > > serialize.. I get > > > the following: > > > org.apache.cocoon.ProcessingException: Failed to execute > pipeline.: > > > java.lang.RuntimeException: java.lang.NullPointerException > > > > > > Anyone else have any experience with using Xlink to embed > > images into > > > an svg? > > > > > > Thanks, > > > > > > - Brent > > > > > > > > > > > > --------------------------------------------------------------------- > > > 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] > > > _____________________________________________________________________ > This e-mail has been scanned for viruses by MCI's Internet > Managed Scanning Services - powered by MessageLabs. For > further information visit http://www.mci.com > > --------------------------------------------------------------------- > 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]
