[xep-support] error rendering with DOM-Document
Kurt Spescha
kurt.spescha at consor.ch
Fri Feb 4 02:58:19 PST 2005
Hi,
using the rendering method passing org.w3c.dom.Document
public void write(FoDocument foDocument, OutputStream pdfStream) throws
Exception {
com.renderx.xep.gen.backends.H4PDF printer = new
com.renderx.xep.gen.backends.H4PDF(pdfStream);
com.renderx.xep.Driver.render(foDocument.getDocument(),
printer);
com.renderx.xep.Driver.cleanup();
}
causes an error after validating OK (see below). I can't see where the
problem can be. (for the FO see attachment)
2005-02-04 11:43:55.723000000 - [system-id untitled](validate
[validation OK])(compile
{?Invalid element in anonymous namespace: 'fo:root'; element skipped}
)(format )(generate [output-format pdf]))
putting the same Document into an InputStream works fine:
public void write(InputStream foStream, OutputStream pdfStream) throws
Exception {
org.xml.sax.InputSource source = new
org.xml.sax.InputSource(foStream);
org.xml.sax.XMLReader parser =
org.xml.sax.helpers.XMLReaderFactory.createXMLReader();
com.renderx.xep.gen.backends.H4PDF printer = new
com.renderx.xep.gen.backends.H4PDF(pdfStream);
com.renderx.xep.Driver.render(parser, source, printer);
com.renderx.xep.Driver.cleanup();
}
rgrds
Kurt Spescha
Consor AG, CH-8006 Zürich
+41 (0)44 368 35 44
+41 (0)76 560 66 89
kurt.spescha at consor.ch
************ BITTE BEACHTEN ************
Diese Nachricht (wie auch allfällige Anhänge dazu) beinhaltet
möglicherweise vertrauliche oder gesetzlich geschützte Daten oder
Informationen. Zum Empfang derselben ist (sind) ausschliesslich die
genannte(n) Person(en) bestimmt. Falls Sie diese Nachricht
irrtümlicherweise erreicht hat, sind Sie höflich gebeten, diese unter
Ausschluss jeder Reproduktion zu zerstören und die absendende Person
umgehend zu benachrichtigen. Vielen Dank für Ihre Hilfe.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fo.fo
Type: text/xml
Size: 4002 bytes
Desc: not available
URL: <http://lists.renderx.com/pipermail/xep-support/attachments/20050204/33503f0b/attachment.xml>
More information about the Xep-support
mailing list