Jaime Menendez Llana
Jaime Menendez Llana

Reputation: 473

How to generate a xslt file from xml

I'm beginner with xml and xsl. I'm looking for the way to generate or understanding how is the using of xsl stylesheet. In my particular case, I'm using a html file which it converts to xhtml. The next step I want to convert is the file generated to xsl-fo but I've seen I have to use a xslt stylesheet to do that. My question is about this file. How is it generate this xsl file? Is generated from the xhtml file?

Thanks!

Upvotes: 0

Views: 842

Answers (3)

Tony Graham
Tony Graham

Reputation: 8068

Antenna House provides a sample XHTML to XSL-FO stylesheet under the 'XHTML to XSL-FO' tab at http://www.antennahouse.com/antenna1/xml-to-xsl-fo-stylesheets/. There's also an XSL-FO tutorial available under the 'XML to XSL-FO' tab.

Upvotes: 2

Hobbes
Hobbes

Reputation: 2115

Generally, the XSL file for an XSL-FO conversion is not generated. You'll have to create this file yourself. It contains a lot of information not present in the XHTML, for example page layouts.

XSL-FO is a bit like CSS, yes. The difference is that XSL-FO has lots more options, so an XSL-FO file is 100 times longer than a CSS file.

Here's an introduction to XSL-FO.

And another tutorial.

Upvotes: 1

Abdelhak
Abdelhak

Reputation: 8387

Okay this site can give you some helps to generate xslfo site.
Abd if you wont the contrary this site is fine XSL FO to HTML Converter

Upvotes: 0

Related Questions