somedev
somedev

Reputation: 1053

XML and XSD provided, need an XSLT for HTML output

I've been given XML which represents a document. The provider uses this to hand to XML-FO and generate a PDF.

I need to generate HTML output which matches (to the best of our ability) the PDF. The provider has no XSLT.

Are there any tools that can take an XSD and XML and generate a base XSLT, or where should I start with this? Are there any boilerplate XSLTs?

Upvotes: 1

Views: 454

Answers (1)

G. Ken Holman
G. Ken Holman

Reputation: 4393

I use fo2html.xsl from RenderX for this. Check out my conference paper where I describe its use in a project to publish US Intelligence Documents from XML where fidelity between the HTML and the PDF was critically important: http://www.CraneSoftwrights.com/links/ipepaper.htm

I've used this stylesheet in a number of projects where the client needs an HTML rendering similar to the PDF rendering. The wonderful thing is that almost everything is done for you ... if you need HTML specific stuff that is beyond what the module does, you can encode that by embedding your own annotations in the XSL-FO.

Upvotes: 1

Related Questions