• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

xml to pdf

 
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have a jsp page that calls a Tag .tld and with this is passed the paramters for the xml file and the xsl file. However I get an error every time saying "Directive: Invalid attibue, prefix". Any Ideas what can be wrong?
 
Ranch Hand
Posts: 782
Python Chrome Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Have you declared the taglib in the JSP file ? or in the web.xml ?
Pho
 
Ranch Hand
Posts: 106
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
What is the XSL file you use to transform XML to PDF ?
Moreover, anyone knows differents adapters for transforming XML (respecting a DTD or Shema) into PDF, or Word ...
URLs are welcome!
 
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Guillaume Compagnon:
Moreover, anyone knows differents adapters for transforming XML (respecting a DTD or Shema) into PDF, or Word ...
URLs are welcome!


XSL Formatting Objects can be used to transform XML into PDF, albeit indirectly. You need to use a tool like Apache's Fop (Formatting Objects Processor) to take the XSL-FO document and convert it to PDF. The whole transformation process looks like this:
XML document + XSLT Stylesheet = XSL-FO document
XSL-FO document + Fop = PDF
You can find Fop on the Apache XML Project site.
I actually wrote an XML to Word converter a couple of years ago and taught a course on it at the SDExpo show this spring. You can see the presentation and the source code (it's a Word VBA application) on my web site. The class was called XML & Microsoft Word.
------------------
W. Scott Means
author, Strategic XML
smeans@strategicxml.com
 
Guillaume Compagnon
Ranch Hand
Posts: 106
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thx U a lot for your tips, Scott!
as a former from MS, do you know any initiative from Microsoft Office in order to improve MSXML and to deploy XML in Word application ( a "Save as XML file" button in Word) ?
 
Ranch Hand
Posts: 338
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

For some more insight into greating pdf, from FOP:
http://www.devshed.com/Server_Side/XML/INTCXX/page9.html
The article is about using Cocoon, but XSL is going to be basically the same.
 
W. Scott Means
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Guillaume Compagnon:
Thx U a lot for your tips, Scott!
as a former from MS, do you know any initiative from Microsoft Office in order to improve MSXML and to deploy XML in Word application ( a "Save as XML file" button in Word) ?


Sorry, I've been out of the loop. I left back in '93, and things have changed a LOT since then. Most of my friends are either retired or too high-up in the organization to really know what is going on :-)
------------------
W. Scott Means
author, Strategic XML
smeans@strategicxml.com
reply
    Bookmark Topic Watch Topic
  • New Topic