But it was helpful to us newbies who will probably make similar errors.  The
more examples I see, the better.  Just wish there was someone out there who
could take one of my sample reports that I need to generate, and create the
whole thing from start to finish.  I could use that as a model for the
others that I have to create.

-----Original Message-----
From: chandrakant_binwani [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 06, 2002 9:35 AM
Subject: RE: Problem with PDF generation

Thanks a lot Oleg...
It finally worked.... Very silly mistake on my part

-----Original Message-----
From: Oleg Tkachenko [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 06, 2002 10:37 PM
Subject: Re: Problem with PDF generation

chandrakant_binwani wrote:
> Here how i'm trying to implement PDF generation:

>             String xslParam  = "D:\\tempReports\\testReport.xml";
>             String xmlParam = "D:\\tempReports\\testReport.xsl";

Aha, got it! CAn you see - your xslParam is xml file url and xmlParam is xsl
url, that's why you got an exception - xalan has considered xml as xsl and
complined about lack of xsl:version (any xml file could be valid xsl
stylesheet if it has xsl:version attribute at the roor element).

Well, it should be

              String xmlParam  = "D:\\tempReports\\testReport.xml";
              String xslParam = "D:\\tempReports\\testReport.xsl";

Oleg Tkachenko
Multiconn International, Israel

Reply via email to