C
CSharper
Is it possible to do XSLT transform and send the output to PDF or sorm
form of offline container to view later (with out transformation)
Thanks,
form of offline container to view later (with out transformation)
Thanks,
CSharper said:Is it possible to do XSLT transform and send the output to PDF or sorm
form of offline container to view later (with out transformation)
Is it possible to do XSLT transform and send the output to PDF or sorm
form of offline container to view later (with out transformation)
The output from the XSLT transformation can usually be
saved as a file.
PDF may be more tricky. I only know two XSL-FO products
that can generate PDF:
- Apache FOP
- Altova StyleVision
and I very much doubt that any of those are callable from .NET.
HTML would be a lot easier. And still have decent printing capabilities.
Arne
Arne said:The output from the XSLT transformation can usually be
saved as a file.
PDF may be more tricky. I only know two XSL-FO products
that can generate PDF:
- Apache FOP
- Altova StyleVision
and I very much doubt that any of those are callable from .NET.
HTML would be a lot easier. And still have decent printing capabilities.
CSharper said:Thanks, is it possible to save it as a file?
I am after printing. I
have multiple XSLT and I want to transform XML against each xslt and
generate one final output with all the transformation.
Thanks, is it possible to save it as a file? I am after printing. I
have multiple XSLT and I want to transform XML against each xslt and
generate one final output with all the transformation.
I assume you mean you doubts they have specific .NET support. A library
that can be called via other means is also callable via .NET. It just
requires a little more work, is all.
HTML would be a lot easier. And still have decent printing capabilities.
The OP did say "or sorm [sic] form of offline container" (guessing
"sorm" is supposed to be "some"), so HTML may well be a suitable
alternative. I agree that it's much easier and that they should consider
that, assuming it can suit their needs.
But the OP should note that there's a big difference between PDF and
HTML in terms of features. HTML is very much renderer-dependent. This is
sometimes a very good thing, but when you want to make sure the output
looks _exactly_ as you intended, PDF is a much more appropriate format.
Arne said:[...]
and I very much doubt that any of those are callable from .NET.
I assume you mean you doubts they have specific .NET support. A library
that can be called via other means is also callable via .NET. It just
requires a little more work, is all.
AFAIK then neither are libraries - Apache FOP is a Java app and
Altova StyleVision is a native app.
I suspect that the "little" more work is a pretty big little.
XML->HTML via XSLT is easy.
True.
HTML prints nicely.
If the exact formatting is important, then the transformation must
assume a specific browser.
It may even be possible to convert the HTML to PDF.
HTML would be a lot easier. And still have decent printing capabilities.
Arne
have multiple XSLT and I want to transform XML against each xslt andThanks, is it possible to save it as a file? I am after printing. I
Hi Arne,
have multiple XSLT and I want to transform XML against each xslt and
generate one final output with all the transformation.
Is an excel file any good to you?
I've used xslt to produce excel files a number of times.
Let me explain what I am after that will you better direction
I have set of XML and collection of XSLT. I walk through each xslt and
try to transform associated XML (I know before hand which XML i need
to look for each xslt). Each result in a formatted output. Foreach
ransformation, I want to send the result to PDF or some sort of
container and continue append the result containter like appending new
pages in PDF. Once all the transformation is done, I would like to
give a dialogue for user to print it.
I was even thinking of doing all the transformation and creating the
printing container in a web service and then get the result and give
it to user to print. The client need not see each transformation
happening.
Peter said:Not always true.
Unfortunately, browsers have a variety of implementation bugs in
which
their output, either on-screen or printed, does not necessarily
conform to the specification, and worse, there are often problems
when printing a document that aren't seen in on-screen display (I
ascribe that to the fact that for whatever reason, different code
paths are used depending on the output device, and on poorer testing
for printing scenarios).
Mike said:MSWindows understands HTML and can create PDF files. Can it be
automated to do the conversion for you?
Peter said:Can you be more specific?
Windows does include the IE HTML renderer, but I'm not aware of any
built-in PDF support for reading, never mind writing, even for
Windows
7. Where do you see that?
Mike said:In Word 2007, one of whose "Save as" choices is PDF. And I'm pretty
sure this is "write-only" support, as "*.pdf" isn't one of the choices
in the "Open" dialogue.
Peter said:That's not "MSWindows". That's a Microsoft Office feature.
Mike said:I knew what I meant to type: why didn't you?
Anyway, I'm wondering if Word can be automated to do the HTML->PDF
conversion.
Is it possible to do XSLT transform and send the output to PDF or sorm
form of offline container to view later (with out transformation)
Thanks,
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.