Josh Lucas wrote:
>
> I'm currently working on the Scripting News portlet and I'm making some
> progress. For right now, I'm using Xalan to transform the XML to HTML
> and return it to JetSpeed via the new ClearElement.
>
> Originally, I wanted to use Cocoon for this but I also wanted to get
> something up and running fairly quickly and I'm still learning the
> Cocoon framework. I'm sure that porting to use Cocoon will happen soon.
>
> As I watched the performance hit because of the XML/XSL transformation,
> some questions popped into my head.
>
> * How long does a url stay in the cache?
> * If most channels are updated consistently, how will/does JetSpeed
> handle this?
> * Is there plans for some sort of 'harvesting' mechanism which will
> bring down the content periodically, possibly pre-generate the HTML and
> have it ready for JetSpeed on disk?
>
> For my job, I've written something which handles the last question.
>
> Sorry if the answers to these questions are obvious as I'm still trying
> to get a better handle on all of JetSpeed.
>
> thanks,
> josh
So just another comment. Look at how I implemented content rendering
for RSS. I am not using XSL to do this. What I am doing is using an
XML Schema and then using Castor (castor.exolab.org) do generate an API
for manipulating the document:
You can do Rss.marshal( Reader) which will bring the object into memory
and allow you to manipulate it like a bean:
Channel[] Rss.getChannel()
Item[] Rss.getItem()
If you were to write a schema for scripting new (see the example ones I
have in CVS) then you could generate an API and have a renderer in 15
minutes.
The really cool thing about doing this is that you can add Items
progmatically from within JetSpeed. Why? Because I want JetSpeed to
produce content (and publish an OCS stream) as well as consume it. With
XSL you can only render content... you can't produce it.
I know it isn't as "hip" or "new" as XSL but there are plenty of other
places within JetSpeed to put it.
Kevin
--
Kevin A Burton
http://relativity.yi.org
Message to SUN: "Open Source Java!"
--
--------------------------------------------------------------
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]