sh******@gmail.com wrote:
Thanks for the reply. Looks like I didn't explain myself well or I am
using inaccurate terminology.
I have, using InfoPath or another XSLT editor, created an XSLT for
XML->HTML transformation. I need to have another XSLT for XS:FO
transformation. The actual rendering of the XSL:FO or PDF I can do with
many tools including your suggestions, but I need the definition. I
want the result of both XSLTs to be identical (i.e. the PDF should look
the same as the HTML). So my question was if there is a way to create
an XSLT for XSL:FO transformation from an XSLT for XML->HTML
transformation.
(I would also like to then modify the 2nd XSLT (XSL:FO) to define
headers and footers, control pagination etc, but thet's later).
Simply put I want to create one design for presenting XML (as a form or
report) and from it get 2 outputs: HTML+PDF. I can do this with
Altova's StyleVision, it is a tool for developers, and I was hoping to
find a simpler tool for less-technical people (InfoPath fits this bill
nicely, but only knows how to create the 1st XSLT).
-- Shaul
Note that infopath uses allot of JavaScript! And it is totally
microsoft only.. so i wouldnt choose infopath.
Your XML->PDF+HTML problem can be solved like this:
Create your own style-xml-language and give it a name you like,
like XStyle, write 2 xsl for converting a XStyle XML file to pdf
or html:
xstyle2pdf.xsl
xstyle2html.xsl
And begin writing your xsl files that transform raw xml data to
xstyle. That you have to write only 1 xsl document for each styling,
and you can use your xstyle2pdf/html.xsl files to transform it to
the appropiate output language.
XML->XML2XSTYLE.xsl->XSTYLE
XSTYLE->xstyle2pdf.xsl->PDF
XSTYLE->xstyle2html.xsl->HTML
Understand?
It will be a lot of work to begin with, but once you have the 2
xstyle2pdf/html.xsl files you only have to write 1 xstyle xsl file.
Maybe my solution is not so good because you want a less technical
solution. :-)
I do not like wysiwg editors for xsl xml editing, it does not give
me the fine control that i want... so cant help you there.