automatix
automatix

Reputation: 14532

link an XML document with an XSL-FO stylesheet

The linking of an XML document with an XSLT stylesheet can be done with:

<?xml-stylesheet type="text/xsl" href="foobar.xsl"?>

placed in the XML document.

How can I bind my XML document to an XSL-FO stylesheet? Is there something like that

<?xml-stylesheet type="text/xsl" href="foobar.fo"?>

for the XSL-FO transformation?

Upvotes: 1

Views: 684

Answers (1)

mzjn
mzjn

Reputation: 50957

In the same way that you can do a transformation in the browser using a stylesheet that outputs HTML, you can do it with a stylesheet that outputs XSL-FO. But that wouldn't be a meaningful thing to do, since web browsers do not understand XSL-FO markup.

To get rendered output (such as PDF) from XSL-FO, you need a FO processor. Regular web browsers do not come with a FO processor (for a possible exception, check out X-Smiles; not tested by me).

Upvotes: 1

Related Questions