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 Tracey Zellmann <tr...@comcast.net> on 2006/02/18 19:56:41 UTC

instream-foreign-object

I am having some trouble gettiong an instream svg image into my fop document, and hope that soemone in this formum might help.

I have an xml document, which contains several svg images, as well as other content. Some of the images were created from a template developed through Microsoft Visio. My application then adds some specific marks. The other images are based on a histogram template that I developed manually and, again, my application adds marks. Presently, I can get the histogram images into my document, using:
<fo:instream-foreign-object>
    <svg...

    </svg>
</fo:instream-foreign-object>

However, when I try to do that with the svg images adapted from the MS Visio template, I can produce the pdf report, but I get a bunch of messages - ERRORs with fop-0.20.5 and WARNINGs with fop-0.91. The problem seems to be the microsoft namespace reference.

Feb 18, 2006 1:47:12 PM org.apache.fop.fo.FOTreeBuilder findFOMaker

WARNING: Unknown formatting object http://schemas.microsoft.com/visio/2003/SVGExtensions/^documentProperties

I have attached a copy of the file. 

Any thoughts about how to resolve this?

Re: instream-foreign-object

Posted by Jeremias Maerki <de...@jeremias-maerki.ch>.
As you've already seen, these are only warnings. You can ignore them
without further consequence.

The reason for the warning is that FOP currently expects that all
namespaces used in an FO document be known to it. In your case, this
backfired. Nils Meier raised a similar topic on fop-dev earlier today
(concerning properties on FO elements in a foreign namespace) which
caused me to rethink this whole "foreign namespaces" stuff. I have a few
ideas that I'm going to discuss in the dev team to improve the situation.
Your particular warning will already go away in the next release due to
a change I've done when handling SVG. However, this will not solve every
such case, yet.

I hope that helps.

On 18.02.2006 19:56:41 Tracey Zellmann wrote:
> I am having some trouble gettiong an instream svg image into my fop
> document, and hope that soemone in this formum might help.
> 
> I have an xml document, which contains several svg images, as well as
> other content. Some of the images were created from a template developed
> through Microsoft Visio. My application then adds some specific marks.
> The other images are based on a histogram template that I developed
> manually and, again, my application adds marks. Presently, I can get the
> histogram images into my document, using:
> <fo:instream-foreign-object>
>     <svg...
> 
>     </svg>
> </fo:instream-foreign-object>
> 
> However, when I try to do that with the svg images adapted from the MS
> Visio template, I can produce the pdf report, but I get a bunch of
> messages - ERRORs with fop-0.20.5 and WARNINGs with fop-0.91. The
> problem seems to be the microsoft namespace reference.
> 
> Feb 18, 2006 1:47:12 PM org.apache.fop.fo.FOTreeBuilder findFOMaker
> 
> WARNING: Unknown formatting object http://schemas.microsoft.com/visio/2003/SVGExtensions/^documentProperties
> 
> I have attached a copy of the file. 
> 
> Any thoughts about how to resolve this?



Jeremias Maerki


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org