Re: Dynamically insert SVG graphics in the XML passed to FOP

2017-06-26 Thread Szeak (Register Man)
ou will need to parse the SVG file and insert it into the FO file via DOM operations or you use the fo:external-graphic element and specify as source the SVG file. Best regards, Matthias Again, thank you very much! -- View this message in context: http://apache-fop.106534

Re: Dynamically insert SVG graphics in the XML passed to FOP

2017-06-26 Thread Szeak (Register Man)
arse the SVG file and insert it into the FO file via DOM operations or you use the fo:external-graphic element and specify as source the SVG file. Best regards, Matthias Again, thank you very much! -- View this message in context: http://apache-fop.1065347.n5.nabble.com/Dynamically-in

Re: Dynamically insert SVG graphics in the XML passed to FOP

2017-06-26 Thread Matthias Reischenbacher
t; org.apache.fop.fo.ValidationException: "fo:instream-foreign-object" is > missing child elements. Required content model: one (1) non-XSL namespace > child (No context info available) > > I have also tried without success either : > > should work. > My second quest

Re: Dynamically insert SVG graphics in the XML passed to FOP

2017-06-26 Thread Pierre Caron
code isn't present : org.apache.fop.fo.ValidationException: "fo:instream-foreign-object" is missing child elements. Required content model: one (1) non-XSL namespace child (No context info available) I have also tried without success either : My second question is : if the SVG is

Re: Dynamically insert SVG graphics in the XML passed to FOP

2017-06-22 Thread Matthias Reischenbacher
Hi, you should try to write out the SVG Elements with the following method (instead of using a string): handler.startElement(String namespaceURI, String localName, String qName, Attributes atts) handler.endElement(String namespaceURI, String localName,

Dynamically insert SVG graphics in the XML passed to FOP

2017-06-22 Thread Pierre Caron
Hello, I have a rather trivial problem that I haven't found a solution yet. I want to insert dynamically generated SVG code Inside the XML data which is supplied to FOP. To make things simpler, suppose you start from the ExampleObj2PDF found in FOP Embedding page (