On Mon, 22 May 2000, Frank Conradie wrote:
>
> Jeff, I was curious how you went about tying XSL transformations into
> Turbine. We want to use WebMacro to produce XML and then XSLT (through
> Xalan) on that to produce HTML, but the doBuild mechanism seems a bit
> limited. Also, Cocoon is a bit much for that.
>
This is about where I ran into problems and ran out of time... BUT there
are some code code examples of how to use Cocoon in a Turbine screen.
First look in org.apache.jetspeed.turbine.screens(.Home.java I believe)
It calls a method on portlets on the home screen that use a Portlet
getContent method.
Under this method there is a call to a method in
org.apache.jetspeed.portal.cocoon.CocoonRenderer called transform.
This is where the actual transformation takes place...
If you didnt want a portlet style rendering you could use the
Jetspeed's Cocoon renderer directly in you doBuild()
This isnt the most ideal situation because Jetspeed uses its own
implementation of HttpServletRequest and HttpServletResponse so that it
has more "freedom" over what happens to the output.
> What I was thinking was that one could have a doStyle or doTransform after
> the doBuild, or something along those lines. Anyway, I'm still learning
> Turbine so I'm not sure what the best implementation would be. Any ideas?
>
This here would be a better discussion to have on the Turbine list. I
suspect that a doStyle or doTransform is out since doBuild is THE
fundamental method to create screens.
What is needed is for Turbine some sort of integration like there is
with Webmacro and Freemarker now.
This would probably be one of the guys over here in Jetspeed working on
the XML integration, at least that was the feeling I got the last time it
was discussed in Turbine.
I cant even venture a guess as to when that might happen though, but I can
tell you that if this part of Turbine isnt moving along by the end of
summer I will be looking at implementing that then. This is because I need
it for work.
Jeff Prickett
[EMAIL PROTECTED]
--
--------------------------------------------------------------
Please read the FAQ! <http://java.apache.org/faq/>
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Archives and Other: <http://java.apache.org/main/mail.html>
Problems?: [EMAIL PROTECTED]