Where do I get test-stylesheets to be able to use xsltproc?

447 views Asked by At

I'm little lost here. I'm using googltest framework and just want to transform the xml report to an html. I found that xsltproc does the job:

xsltproc style.xsl report.xml -o report.hmtl

but first I need to get a stylesheet. Just a basic-generic stylesheet so the result can be visualized on a browser, where can I find it?

1

There are 1 answers

3
Michael Kay On

Firstly, you've tagged this XSLT 2.0, but xsltproc only supports XSLT 1.0.

Secondly, without knowing what flavour of XML is in report.xml, there isn't really very much one can do by way of a useful generic transformation to HTML. There are attempts like this one:

Generic XSLT to tabluate XML

but whether it produces results that work for you depend entirely on your input and desired output, which you haven't told us anything about.