Re: Antw: Re: Embedded FOP From fo-Document to PDF

2002-06-05 Thread Oleg Tkachenko
Juergen Lippold wrote: > - With the namespace attribute I don't need to specify the attribute xmlns:fo >anymore right? > It's running without the setting (uncomment in code.) I think so, because you need namespace, not attribute and imho there is no way in dom1/dom2 to set just namespace node

Re: Antw: Re: Embedded FOP From fo-Document to PDF

2002-06-05 Thread Juergen Lippold
Hy, many thank for the help, It's running :-))) but there are still two more question: - With the namespace attribute I don't need to specify the attribute xmlns:fo anymore right? It's running without the setting (uncomment in code.) private Element createChildNS(Node node, Document doc

Re: Antw: Re: Embedded FOP From fo-Document to PDF

2002-06-05 Thread Oleg Tkachenko
Juergen Lippold wrote: > Element element = doc.createElement(elm); As Keiron pointed out, it should be Element element = doc.createElementNS("http://www.w3.org/1999/XSL/Format";, elm); -- Oleg Tkachenko Multiconn International, Israel --

Re: Antw: Re: Embedded FOP From fo-Document to PDF

2002-06-05 Thread Keiron Liddle
On Wed, 2002-06-05 at 08:45, Juergen Lippold wrote: > OK so let's start, > > now I have got a Method to create the document, after this part I add some rows and >colomns to the table. > So I'm allways adding Elements with or without attributes. > The result is the fo-file I already sent. > >

Re: Antw: Re: Embedded FOP From fo-Document to PDF

2002-06-04 Thread Juergen Lippold
OK so let's start, now I have got a Method to create the document, after this part I add some rows and colomns to the table. So I'm allways adding Elements with or without attributes. The result is the fo-file I already sent. protected Document createMyDocument() { DocumentBuilderFactory

Re: Embedded FOP From fo-Document to PDF

2002-06-04 Thread J.Pietschmann
Juergen Lippold wrote: > I'm looking for a way to convert a org.w3c.dom.Document with the FO-Format directly >to a PDF-File. > The following code is running if I use the x.fo-File written to the harddisk. > Using the document from memory I get an error: > > [INFO]: building formatting object

Re: Antw: Re: Embedded FOP From fo-Document to PDF

2002-06-04 Thread Oleg Tkachenko
Juergen Lippold wrote: > namespaceAware doesn't make a differnce. No matter if true or false. Well, I'm out of ideas, lets go inside - show us how do you build Document. -- Oleg Tkachenko Multiconn International, Israel - To

Antw: Re: Embedded FOP From fo-Document to PDF

2002-06-04 Thread Juergen Lippold
Hello Oleg, namespaceAware doesn't make a differnce. No matter if true or false. Regards, Juergen Lippold >>> [EMAIL PROTECTED] 04.06.2002 13.46 Uhr >>> Juergen Lippold wrote: > thats a good question, I hope that the document is ok. Can I check if the document >in memory is a fop-formatted

Re: Embedded FOP From fo-Document to PDF

2002-06-04 Thread Oleg Tkachenko
Juergen Lippold wrote: > thats a good question, I hope that the document is ok. Can I check if the document >in memory is a fop-formatted document? > Writing the fo-document to harddisk and then using fop everything is ok. AFAIR this problem always happens when one builds Document using nonnam

Re: Embedded FOP From fo-Document to PDF

2002-06-04 Thread Jeremias Maerki
But then, probably it's a namespace problem. You've probably got the namespace declaration as a normal attribute in the DOM which (as far as I know) doesn't automatically get translated into namespace SAX events. And that's what FOP works on. So I'd verify that you've got a namespace-enabled DOM a

Re: Re: Embedded FOP From fo-Document to PDF

2002-06-04 Thread Juergen Lippold
Hello, thats a good question, I hope that the document is ok. Can I check if the document in memory is a fop-formatted document? Writing the fo-document to harddisk and then using fop everything is ok. Juergen This is the document from harddisk: http://www.w3.org/1999/XSL/Format";>

Re: Embedded FOP From fo-Document to PDF

2002-06-04 Thread Oleg Tkachenko
Juergen Lippold wrote: > Hello, > > I'm looking for a way to convert a org.w3c.dom.Document with the FO-Format directly >to a PDF-File. > The following code is running if I use the x.fo-File written to the harddisk. > Using the document from memory I get an error: > > [INFO]: building forma

Embedded FOP From fo-Document to PDF

2002-06-03 Thread Juergen Lippold
Hello, I'm looking for a way to convert a org.w3c.dom.Document with the FO-Format directly to a PDF-File. The following code is running if I use the x.fo-File written to the harddisk. Using the document from memory I get an error: [INFO]: building formatting object tree [ERROR]: Unknown for