|
next
|
Subject: From Webservice to XML HTTP/XML where is XMLTOHTML ?? Author: Minollo I. Date: 02 Mar 2006 10:12 AM
|
Marcel,
the goal of the XML-to-HTML WYSIWYG component is to generate an XSLT that, when applied to the XML source you specify, generates the HTML output you have designed.
So, if you design and preview the HTML in the WYSIWYG tab, and then you switch back to the source tab (or if you open the generated XSLT manually), you will find the XSLT source. That's the transformation definition that given an input similar to what you used to generate it, it will generate an HTML page in output.
If you are just interested in the specific HTML output of that particular transformation, you may want to save the preview (there is a Save button at the left of the preview window, which is usually displayed at the bottom of Stylus Studio); if you are interested in re-executing the transformation against different sources, then you want to keep the XSLT around and re-run it later.
Minollo
|
next
|
Subject: From Webservice to XML HTTP/XML where is XMLTOHTML ?? Author: Minollo I. Date: 02 Mar 2006 03:21 PM
|
Marcel,
let me try to summarize in steps what you are trying to do:
#1: you are invoking a web service, and getting back a result in XML format (a SOAP response)
#2: you want to create an HTML presentation containing data from the XML response of #1
#3: to achieve #2, you write an XSLT that given a SOAP response in input (#1) it generates an HTML output (#2)
#4: you want to be able to invoke the XSLT you have generated in #3 over and over again, also outside of the Stylus Studio UI environment, creating a fresh HTML report every time
Are we in agreement on that?
So, my understanding is that you have been able to do #1, #2 and #3; but you are having problems to do #4, but you have at least a couple of options:
A) You can run the XSLT you have created using StylusXslt.exe, which is a command line shipped with Stylus Studio (in the <install>\bin folder) that allows you to invoke the Stylus Studio XSLT processor out the UI environment. You can specify the source (the same web service call you are probably using now to preview the retul inside Stylus Studio), and the output location (where the HTML needs to be saved)
B) You can ask Stylus Studio to generate Java code to run the transformation as part of a Java application; to do that, you need to instruct Stylus Studio to use a Java-based XSLT processor; Saxon or XalanJ are your options; to do that, open you XSLT file in Stylus Studio, do XSLT > Scenario Properties..., click on the Processor tab and choose Saxon 8.x, for example, as your process. The choose XSLT > Generate Java Code, and Stylus Studio will generate Java code that you can either run standalone or you can embed in your application; that will run the same XSLT you have been designing
Does this make things any more clear?
Minollo
|
|
|
|