Re: Page X of Y Problem
Thanks for the info. But when I use driver.render(input.getParser(), input.getInputSource()); input.getParser() returns a null value. Thanks -Neeru J.Pietschman n To: [EMAIL PROTECTED] [EMAIL PROTECTED]cc: oo.de Subject: Re: Page X of Y Problem 05/10/2002 04:28 PM Please respond to fop-user [EMAIL PROTECTED] wrote: I am using FOP 0.20.3 for converting xml to pdf. When I am running the java code locally in Visual age I don't get any errors, but when I try to run it as servlet I get the Root element must be root, not none. // driver.render(input.getParser(), input.getInputSource()); driver.render(createParser(), input.getInputSource()); Use the line commmented out. You should not fiddle with working code unless you know what you are doing or someone who knows what happens tells you to do so. BTW it's basic netiquette to start a new thread with a new, meaningful subject for a new question. J.Pietschmann
RE: Page X of Y Problem
Hi Abhijat, Here's the code and xsl. I am using the example servlet code. Thanks -Neeru (See attached file: test-fod.xsl)(See attached file: ServletCreatePdf.java) Abhijat Upadhyay abhijat.upadhyay@To: '[EMAIL PROTECTED]' [EMAIL PROTECTED] patni.comcc: Subject: RE: Page X of Y Problem 05/10/2002 06:11 AM Please respond to fop-user hi neeru !! it wud be great if u cud fwd ur xsl and servlet code... so that the problem can be analyzed... ___ Abhijat Upadhyay Software Engineer Patni Computer Systems Limited Electronic Sadan - 3, TTC Industrial Area, Mahape, Navi Mumbai - 400 701 Tel: 91 22 761 1090 / 1105 ext. 2221 Fax: 91 22 761 9602 http://www.patni.com World-Wide Partnerships. World-Class Solutions. This e-mail message may contain proprietary, confidential or legally privileged information for the sole use of the person or entity to whom this message was originally addressed. Any review, e-transmission dissemination or other use of or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. If you have received this e-mail in error kindly delete this e-mail from your records. If it appears that this mail has been forwarded to you without proper authority, please notify us immediately at [EMAIL PROTECTED] and delete this mail. test-fod.xsl Description: Binary data ServletCreatePdf.java Description: Binary data
Re: Page X of Y Problem
[EMAIL PROTECTED] wrote: I am using FOP 0.20.3 for converting xml to pdf. When I am running the java code locally in Visual age I don't get any errors, but when I try to run it as servlet I get the Root element must be root, not none. // driver.render(input.getParser(), input.getInputSource()); driver.render(createParser(), input.getInputSource()); Use the line commmented out. You should not fiddle with working code unless you know what you are doing or someone who knows what happens tells you to do so. BTW it's basic netiquette to start a new thread with a new, meaningful subject for a new question. J.Pietschmann