Thomas J.S.: XSL-FO embedded XML

Beitrag lesen

Hi,

Is this a cross-post or you really do not know (enough) german?

I want to create stylesheet to convert a xml document into a XSL-FO file for creating a pdf document. The final pdf shall contain the source xml as an attached/embedded document.

Is it possible to do that?

Maybe. Depending on the used technology.
With the commonly used tools like FOP is this (i.e. to embed a PDF into a PDF) not possible.
However, you could create an xslt-template to take the xml-source itself and transform it to plain-text (first of all the < and > signs) and then put this text into a fo:block styled with a monospace font.

Regads
Thomas