aspose file tools
The moose likes XML and Related Technologies and the fly likes xml to pdf Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Reply Bookmark "xml to pdf" Watch "xml to pdf" New topic
Author

xml to pdf

Skyler Smith
Greenhorn

Joined: Oct 05, 2001
Posts: 12
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?
Pho Tek
Ranch Hand

Joined: Nov 05, 2000
Posts: 757

Have you declared the taglib in the JSP file ? or in the web.xml ?
Pho


Regards,

Pho
Guillaume Compagnon
Ranch Hand

Joined: Aug 09, 2001
Posts: 106
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!


---------<BR>Guillaume
W. Scott Means
Greenhorn

Joined: Sep 27, 2001
Posts: 28
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


<A HREF="http://www.scottmeans.com" TARGET=_blank rel="nofollow">W. Scott Means</A><BR>author, <A HREF="http://www.strategicxml.com" TARGET=_blank rel="nofollow">Strategic XML</A><BR> <A HREF="mailto:smeans@strategicxml.com" rel="nofollow">smeans@strategicxml.com</A>
Guillaume Compagnon
Ranch Hand

Joined: Aug 09, 2001
Posts: 106
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) ?
Andrew Shafer
Ranch Hand

Joined: Jan 19, 2001
Posts: 338

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.


!_I_Know_Kung_Fu_!
W. Scott Means
Greenhorn

Joined: Sep 27, 2001
Posts: 28
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
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: xml to pdf
 
Similar Threads
java.util.Properties loadXMLFile()
taglib URI question
Annotation in spring
Apache Ant help
What is ibm-web-ext.xmi