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-family
: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]

Reply via email to