Posting again->
After lots lots of trial errors i am still at original position. Only i could know i get error for following. Pls pls help me - i do not know why but getting errors for each line of xsl.
-----------------------------------
TraxInputHandler input =
new TraxInputHandler(new File(xmlParam),
new File(xslParam));
new TraxInputHandler(new File(xmlParam),
new File(xslParam));
--------------------------------
xmlParam and xslParam are valid full physical path. Rest code runs w/o problem. Actually i get my pdf also properly. But how i can get rid of these w=errors? Can anybody provide servlet/xml/xsl which does not produce errors ?
i am in a hell, pls give me some hint.
regards
Manisha
Manisha Sathe <[EMAIL PROTECTED]> wrote:
Manisha Sathe <[EMAIL PROTECTED]> wrote:
Till now i was trying fop through command line. I was passing xml and xsl file and getting pdf file. So far so good. Now i changed it to servlet. Using example servlet provided but i am getting huge number of errors. (although i am getting the o/p)-------------....TraxInputHandler input =
new TraxInputHandler(new File(xmlParam),
new File(xslParam));ByteArrayOutputStream out = new ByteArrayOutputStream();Driver driver = new Driver();
driver.setLogger(log);
driver.setRenderer(Driver.RENDER_PDF);
driver.setOutputStream(out);
input.run(driver);,.....later i write it to pdf file.But i get Errors like[Error] advertformat.xsl:7:37 Element type "xsl:stylesheet" must be declared[Error] advertformat.xsl:8:37 Element type "xsl:template" must be declared[Error] advertformat.xsl:10:37 Element type "fo:table" must be declared[Error] advertformat.xsl:17:37 Element type "fo:table-row" must be declared[Error] advertformat.xsl:17:37 Element type "fo:table-cell" must be declared...............Like this for all tags it is giving me error. I am getting my pdf file properly but i am not understanding why this is happenning then ?regardsManisha
Do you Yahoo!?
Yahoo! Search presents - Jib Jab's 'Second Term'
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com