"Kevin A. Burton" wrote:
> 
> Rapha�l Luta wrote:
> >
> > I managed to get Jetspeed work with XSP in the lastest Cocoon CVS on
> > JRun (servlet 2.1).
> >
> > The patch should also work with JServ (servlet 2.0)  but I'm not
> > sure it'll work with Tomcat (servlet 2.2). If someone can test and confirm,
> > taht'll be welcome
> 
> Cool!  Saves me some work :)
> 

Well, I needed the feature too... ;)

> Could you put your Cocoon.jar within Jetspeed.  That way not everyone
> needs to patch their cocoon or build it.  I will hack on this tonight.
> I want to do the PortletBrowser in XSP and get Mail-XSP integrated.  So
> I might get the .jar in before you :)
> 

If you could get your jar, that would be better because mine is somewhat
non-standard and I'd hate to have to clean my code in order to post a
one-line patch...
For those not on the Cocoon list the patch is:

Index: xsp-java.xsl
===================================================================
RCS file:
/home/cvspublic/xml-cocoon/src/org/apache/cocoon/processor/xsp/xsp-java.xsl,v
retrieving revision 1.14
diff -r1.14 xsp-java.xsl
110c110
<         <xsl:for-each select="/processing-instruction()[not(contains(.,'xsp'))]">
---
>         <xsl:for-each select="/processing-instruction()[not(starts-with(.,'xsp') or 
>(contains(.,'cocoon-process') and contains(.,'xsp')))]">

> > (You can make XSP work without the cocoon patch, just make sure that
> > the name 'xsp' never appears in your stylesheets URLs...)
> 
> Ug.. that isn't good.
> 

Yes, that's really a stupid bug.

> > There's still one unresolved issue with XSP: every stylesheet after the
> > first one must use external URLs for referencing other resources.
> > This is because jetspeed feeds to cocoon a local copy of the initial files
> > but can't know all the other referenced resources.
> 
> Hopefully we can write a Portlet XML Schema with things like <portlet
> href=""> so that XSP apps can integrate well with Jetspeed.
> 

The issue is the way cocoon resolves URI to path, in servlet2.2 we should be
able to achieve this, but I'm not sure it's really possible with 2.0 or 2.1

--
Rapha�l Luta - [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]

Reply via email to