Page 1 of 1

Generate PDF and XHTML from single XML instance

Posted: Tue Jul 08, 2008 5:29 am
by UnderPaid
Ok, long time lurker, first time poster. This may be a bit of a noob question but... I'm trying to generate both PDF and XHTML files from a single XML file (or maybe sometimes a directory) in a single transform. I imagine that I could use a combination of document and result-document to achieve this result. But what I'm wondering is whether or not Oxygen can do this sort of thing: Can a transformation scenario be set-up to do both and if so, how? I believe Altova can do it. I've been unable to discover whether or not this is true of OXygen though. So rather than sweat something that wouldn't work I thought I'd ask first.

Thanks much. Also thanks for Oxygen.

Re: Generate PDF and XHTML from single XML instance

Posted: Tue Jul 08, 2008 4:31 pm
by sorin_ristache
Hello,

It is not recommended to generate both XHTML output and PDF output in the same transformation from an XML source. Usually there are different stylesheets for the two types of output (also different languages: XSLT for XHTML output, XSLT + XSL-FO for PDF output) and a different transformation for each type of output. This is true for all document types regardless of the XML tool used for editing and transforming the documents. For example in this video demonstration you can see how to edit and how to generate PDF output in Oxygen from a DocBook XML document.


Regards,
Sorin