You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-users@xmlgraphics.apache.org by ba...@mail.ru on 2006/01/15 20:56:45 UTC
SVG embedding
I'm looking for a way to process a FO file with instream SVG file containing an embedded base64-encoded image. I'm getting a "Fatal Error" message, that the "prefix 'xlink' for attribute 'xlink:href' is not bound". The same happens, if i put the embedded image into a seperate file and link to it as xlink:href="file.png".
Does anybody know a solution?
Thanks in advance!
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
Re[2]: SVG embedding
Posted by ba...@mail.ru.
Thanks. Found the solution myself already. Now faced another problem:
If I set the filename without the path, it works fine, but if I put there the full path, batik does not find the file... But somehow it worked two or tree times, but not more...
Any ideas?
-----Original Message-----
From: Jeremias Maerki <de...@jeremias-maerki.ch>
To: fop-users@xmlgraphics.apache.org, barabab@mail.ru
Date: Mon, 16 Jan 2006 09:23:44 +0100
Subject: Re: SVG embedding
>
> You get this error message if you forget to bind the "xlink" namespace
> prefix to the XLink Namespace. An example from the SVG 1.1 spec:
>
> <?xml version="1.0" standalone="no"?>
> <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
> <svg width="4in" height="3in" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
> <desc>This graphic links to an external image</desc>
> <image x="200" y="200" width="100px" height="100px" xlink:href="myimage.gif">
> <title>My image</title>
> </image>
> </svg>
>
> (note the "xmlns:xlink="http://www.w3.org/1999/xlink"!!!)
>
> On 15.01.2006 20:56:45 barabab wrote:
> >
> > I'm looking for a way to process a FO file with instream SVG file
> > containing an embedded base64-encoded image. I'm getting a "Fatal Error"
> > message, that the "prefix 'xlink' for attribute 'xlink:href' is not
> > bound". The same happens, if i put the embedded image into a seperate
> > file and link to it as xlink:href="file.png".
> > Does anybody know a solution?
>
>
> Jeremias Maerki
>
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
Re: SVG embedding
Posted by Jeremias Maerki <de...@jeremias-maerki.ch>.
You get this error message if you forget to bind the "xlink" namespace
prefix to the XLink Namespace. An example from the SVG 1.1 spec:
<?xml version="1.0" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg width="4in" height="3in" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<desc>This graphic links to an external image</desc>
<image x="200" y="200" width="100px" height="100px" xlink:href="myimage.gif">
<title>My image</title>
</image>
</svg>
(note the "xmlns:xlink="http://www.w3.org/1999/xlink"!!!)
On 15.01.2006 20:56:45 barabab wrote:
>
> I'm looking for a way to process a FO file with instream SVG file
> containing an embedded base64-encoded image. I'm getting a "Fatal Error"
> message, that the "prefix 'xlink' for attribute 'xlink:href' is not
> bound". The same happens, if i put the embedded image into a seperate
> file and link to it as xlink:href="file.png".
> Does anybody know a solution?
Jeremias Maerki
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org