You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by Giacomo Pati <Gi...@pwr.ch> on 2000/07/28 21:21:53 UTC
C2 status
Hi all
Prior to go to vacation (which will begin as of today) I will give a
status of my work so far with the sitemap engine.
The C2 version as of today should work right out of the box. You can do
a 'build webapp' and deploy the resulting war file (under
build/cocoon/cocoon.war) into a servlet 2.2 engine like Tomcat. The
problem with the style.css file is solved with a reader which is also
capable to serv images as well. I've put these into the sample
directory.
There is a problem with Ant, which changes the images when they are
copied into the build webapp directory to build the war file. These
differ in size after Ant has copied them. If someone of you is also on
the Ant list could you ask there what the problem might be? I first
thought it could be because filter="on" in the copydir task but had no
luck. You should copy the images under samples/resource/images directly
to your cocoon servlet context by hand to have a perfect picture.
This version only lacks of the view capability (which I will do after my
vacation) and the map:param element functionality (which would change
the api of all SitemapComponents, I think). Everything else should work,
even the sub sitemaps as it was originaly proposed. There is one
functional Matcher so far (RegexpUriMatcher) but no Selector. There is a
ResourceReader to serve files directly (images, css files, etc.). The
conf/sitemap.xmap shows the use of these components.
There is still a general error Generator missing, so don't expect
meaningfull error mesages (you have to check the logs if anything
fails). Any voluntees for this (Stefano once wrote a proposal for a
ErrorGenerator to this list)? It must be capable to accept a Exception
object instead of a Fileresource to produce xml to a pipeline (as a
normal Generator does).
Sean Timm will try to get Xalan 2.0 working with this release (trax). I
personaly had no luck with Xalan 2.0 transforming a sitemap to java code
using the stylesheet I've written
(src/org/apache/cocoon/components/language/markup/sitemap/java/sitemap.xsl).
I would ask you all to audit the new environment abstraction
(org/apache/cocon/environment...) and give or do
improvements/comments/suggestions.
Well, I'm not absent during my first vacation week (this is the next
week) but I probably wouldn't work on anything. I will have fun with my
wife and my kids. I'm absent the week after and will have no electronic
toys around me. So be patient until I'm back or help yourself :)
Best wishes to all of you
Giacomo
--
PWR GmbH, Organisation & Entwicklung Tel: +41 (0)1 856 2202
Giacomo Pati, CTO/CEO Fax: +41 (0)1 856 2201
Hintereichenstrasse 7 Mailto:Giacomo.Pati@pwr.ch
CH-8166 Niederweningen Web: http://www.pwr.ch
Re: C2 status
Posted by Giacomo Pati <Gi...@pwr.ch>.
Nicola Ken Barozzi wrote:
>
> ----- Original Message -----
> From: "Giacomo Pati" <Gi...@pwr.ch>
> To: "Cocoon dev" <co...@xml.apache.org>
> Sent: Friday, July 28, 2000 9:21 PM
> Subject: C2 status
>
> [snip]
>
> > There is still a general error Generator missing, so don't expect
> > meaningfull error mesages (you have to check the logs if anything
> > fails). Any voluntees for this (Stefano once wrote a proposal for a
> > ErrorGenerator to this list)? It must be capable to accept a Exception
> > object instead of a Fileresource to produce xml to a pipeline (as a
> > normal Generator does).
>
> I volunteer.
> Is someone allready working on it or can I start?
> Can someone send me Stefano's proposal so I don't have to wait
> my life searching in the archive?
Thank you for your help. As soon as I'll find the proposal of Stefano I
will send it to you in private.
Giacomo
--
PWR GmbH, Organisation & Entwicklung Tel: +41 (0)1 856 2202
Giacomo Pati, CTO/CEO Fax: +41 (0)1 856 2201
Hintereichenstrasse 7 Mailto:Giacomo.Pati@pwr.ch
CH-8166 Niederweningen Web: http://www.pwr.ch
Re: C2 status
Posted by Nicola Ken Barozzi <ni...@supereva.it>.
----- Original Message -----
From: "Giacomo Pati" <Gi...@pwr.ch>
To: "Cocoon dev" <co...@xml.apache.org>
Sent: Friday, July 28, 2000 9:21 PM
Subject: C2 status
[snip]
> There is still a general error Generator missing, so don't expect
> meaningfull error mesages (you have to check the logs if anything
> fails). Any voluntees for this (Stefano once wrote a proposal for a
> ErrorGenerator to this list)? It must be capable to accept a Exception
> object instead of a Fileresource to produce xml to a pipeline (as a
> normal Generator does).
I volunteer.
Is someone allready working on it or can I start?
Can someone send me Stefano's proposal so I don't have to wait
my life searching in the archive?
nicola_ken
Nicola Ken Barozzi - AISA Industries S.p.A
http://www.aisaindustries.it/
Via Leonardo da Vinci,2 Ticengo (CR) Italy
Personal homepage at Java Guru:
http://www.jguru.com/jguru/guru/viewchannel.jsp?EID=39153
Personal FAQ at Java Guru:
http://www.jguru.com/jguru/guru/viewfaqs.jsp?EID=39153
Research Activity:
Politecnico di Milano - Dipartimento di Meccanica
Piazza Leonardo da Vinci, n.32 - 20133 Milano (Italy)
Re: C2 status
Posted by Giacomo Pati <Gi...@pwr.ch>.
"N. Sean Timm" wrote:
>
> On a side note, creating diffs was a real pain due to the screwy double
> carriage returns in a lot of the files.
Ok, I will fix that ASAP. How about fixing it with Ant's <fixcrlf>? Sam,
is this a good idea?
Giacomo
--
PWR GmbH, Organisation & Entwicklung Tel: +41 (0)1 856 2202
Giacomo Pati, CTO/CEO Fax: +41 (0)1 856 2201
Hintereichenstrasse 7 Mailto:Giacomo.Pati@pwr.ch
CH-8166 Niederweningen Web: http://www.pwr.ch
Re: C2 status
Posted by Giacomo Pati <Gi...@pwr.ch>.
"N. Sean Timm" wrote:
>
> "Giacomo Pati" <Gi...@pwr.ch> wrote:
> > > I forwarded him the sitemap.xsl and sitemap.xmap.
> >
> > Better the sitemap-working-draft.xmap. I've tested the sitemap
> > stylesheet agains the working draft.
> >
> I tested the sitemap stylesheet against sitemap.xmap, and it worked fine
> with Xalan 1 and Xerces, so I figured if we can get it to work with Xalan 2,
> we'll have won half the battle. Is there some other reason that it should
> be the working draft rather than the sitemap.xmap?
Yes, there is. The working draft is almost complete in the sense of all
possible options. The sitemap.xmap only contains some of them (i.e. no
mount, no view, no selectors, etc).
Giacomo
--
PWR GmbH, Organisation & Entwicklung Tel: +41 (0)1 856 2202
Giacomo Pati, CTO/CEO Fax: +41 (0)1 856 2201
Hintereichenstrasse 7 Mailto:Giacomo.Pati@pwr.ch
CH-8166 Niederweningen Web: http://www.pwr.ch
Re: C2 status
Posted by "N. Sean Timm" <st...@mailgo.com>.
"Giacomo Pati" <Gi...@pwr.ch> wrote:
> > I forwarded him the sitemap.xsl and sitemap.xmap.
>
> Better the sitemap-working-draft.xmap. I've tested the sitemap
> stylesheet agains the working draft.
>
I tested the sitemap stylesheet against sitemap.xmap, and it worked fine
with Xalan 1 and Xerces, so I figured if we can get it to work with Xalan 2,
we'll have won half the battle. Is there some other reason that it should
be the working draft rather than the sitemap.xmap?
- Sean T.
Re: C2 status
Posted by Giacomo Pati <Gi...@pwr.ch>.
"N. Sean Timm" wrote:
>
> "Giacomo Pati" <Gi...@pwr.ch> wrote:
> > To make C2 using Xalan 2 at all the sitemap generation stylesheet should
> > be the test case for it. It uses the java namespace for XSLT extensions
> > and this must be working. Until then C2 will remain on Xalan 1.x because
> > I think we can't mix these Xalan versions.
> >
> This is correct. Xalan 1 doesn't support TRaX, and the classes have moved
> around a bit in Xalan 2.
>
> > Maybe Scott is interested in the sitemap generation stylesheet?
> I forwarded him the sitemap.xsl and sitemap.xmap.
Better the sitemap-working-draft.xmap. I've tested the sitemap
stylesheet agains the working draft.
Giacomo
--
PWR GmbH, Organisation & Entwicklung Tel: +41 (0)1 856 2202
Giacomo Pati, CTO/CEO Fax: +41 (0)1 856 2201
Hintereichenstrasse 7 Mailto:Giacomo.Pati@pwr.ch
CH-8166 Niederweningen Web: http://www.pwr.ch
Re: C2 status
Posted by "N. Sean Timm" <st...@mailgo.com>.
"Giacomo Pati" <Gi...@pwr.ch> wrote:
> To make C2 using Xalan 2 at all the sitemap generation stylesheet should
> be the test case for it. It uses the java namespace for XSLT extensions
> and this must be working. Until then C2 will remain on Xalan 1.x because
> I think we can't mix these Xalan versions.
>
This is correct. Xalan 1 doesn't support TRaX, and the classes have moved
around a bit in Xalan 2.
> Maybe Scott is interested in the sitemap generation stylesheet?
I forwarded him the sitemap.xsl and sitemap.xmap.
- Sean T.
Re: C2 status
Posted by Giacomo Pati <Gi...@pwr.ch>.
"N. Sean Timm" wrote:
>
> "Giacomo Pati" <Gi...@pwr.ch> wrote:
> > Sean Timm will try to get Xalan 2.0 working with this release (trax). I
> > personaly had no luck with Xalan 2.0 transforming a sitemap to java code
> > using the stylesheet I've written
> >
> (src/org/apache/cocoon/components/language/markup/sitemap/java/sitemap.xsl).
>
> Yes...unfortunately, the current version of Xalan 2 doesn't seem to work at
> all converting that sitemap, so I can't test any of my code changes until
> that starts working. I fired a message off to Scott to see if I could get
> some assistance on the Xalan end of things. I believe the changes I've made
> are correct, however, so it should be good to go as soon as we can get Xalan
> usable. I haven't created the TraxTransformer yet, but I've modified the
> necessary files to make Cocoon2 use (and compile with) Xalan 2. DOMUtils
> has been modified to utilize JAXP and TRaX, so there isn't a hard-coded
> dependency on Xerces and Xalan anymore. (Although Xalan is currently the
> only TRaX implementation that I know of...)
To make C2 using Xalan 2 at all the sitemap generation stylesheet should
be the test case for it. It uses the java namespace for XSLT extensions
and this must be working. Until then C2 will remain on Xalan 1.x because
I think we can't mix these Xalan versions.
Maybe Scott is interested in the sitemap generation stylesheet?
Giacomo
--
PWR GmbH, Organisation & Entwicklung Tel: +41 (0)1 856 2202
Giacomo Pati, CTO/CEO Fax: +41 (0)1 856 2201
Hintereichenstrasse 7 Mailto:Giacomo.Pati@pwr.ch
CH-8166 Niederweningen Web: http://www.pwr.ch
Re: C2 status
Posted by "N. Sean Timm" <st...@mailgo.com>.
"Giacomo Pati" <Gi...@pwr.ch> wrote:
> Sean Timm will try to get Xalan 2.0 working with this release (trax). I
> personaly had no luck with Xalan 2.0 transforming a sitemap to java code
> using the stylesheet I've written
>
(src/org/apache/cocoon/components/language/markup/sitemap/java/sitemap.xsl).
Yes...unfortunately, the current version of Xalan 2 doesn't seem to work at
all converting that sitemap, so I can't test any of my code changes until
that starts working. I fired a message off to Scott to see if I could get
some assistance on the Xalan end of things. I believe the changes I've made
are correct, however, so it should be good to go as soon as we can get Xalan
usable. I haven't created the TraxTransformer yet, but I've modified the
necessary files to make Cocoon2 use (and compile with) Xalan 2. DOMUtils
has been modified to utilize JAXP and TRaX, so there isn't a hard-coded
dependency on Xerces and Xalan anymore. (Although Xalan is currently the
only TRaX implementation that I know of...)
On a side note, creating diffs was a real pain due to the screwy double
carriage returns in a lot of the files. I modified all of the files to
eliminate those double carriage returns, so once Xalan 2 is ready, should I
just zip up my source directory and pass it on to a committer? Or would
another committer be so kind as to eliminate those double carriage returns
from all the source files?
Thanks!
- Sean T.
Re: C2 status
Posted by Giacomo Pati <Gi...@pwr.ch>.
On Fri, Jul 28, 2000 at 05:52:17PM -0400, Willie Wheeler wrote:
> Hi Giacomo,
>
> I just reposted the garbled images question to ant-user@jakarta.apache.org.
> If I get an answer I'll post it on the Cocoon list for you.
That'll be nice. Thank you and good night :)
Giacomo
--
PWR GmbH, Organisation & Entwicklung Tel: +41 (0)1 856 2202
Giacomo Pati, CTO/CEO Fax: +41 (0)1 856 2201
Hintereichenstrasse 7 Mailto:Giacomo.Pati@pwr.ch
CH-8166 Niederweningen Web: http://www.pwr.ch
RE: C2 status
Posted by Willie Wheeler <ww...@andrew.cmu.edu>.
Hi Giacomo,
I just reposted the garbled images question to ant-user@jakarta.apache.org.
If I get an answer I'll post it on the Cocoon list for you.
Willie
-----Original Message-----
From: Willie Wheeler [mailto:wwheeler@andrew.cmu.edu]
Sent: Friday, July 28, 2000 5:47 PM
To: cocoon-dev@xml.apache.org
Subject: RE: C2 status
-----Original Message-----
From: giacomo@xml.apache.org [mailto:giacomo@xml.apache.org]On Behalf Of
Giacomo Pati
Sent: Friday, July 28, 2000 3:22 PM
To: Cocoon dev
Subject: C2 status
> There is a problem with Ant, which changes the images when they are
> copied into the build webapp directory to build the war file. These
> differ in size after Ant has copied them. If someone of you is also on
> the Ant list could you ask there what the problem might be? I first
> thought it could be because filter="on" in the copydir task but had no
> luck. You should copy the images under samples/resource/images directly
> to your cocoon servlet context by hand to have a perfect picture.
Yeah, I posted a message asking about this yesterday and so far nobody has
responded. Well it's good to see at least that I'm not the only one that
had the problem. [We're talking about Ant 1.1, just in case anyone knows
the answer...]
Willie
RE: C2 status
Posted by Willie Wheeler <ww...@andrew.cmu.edu>.
-----Original Message-----
From: giacomo@xml.apache.org [mailto:giacomo@xml.apache.org]On Behalf Of
Giacomo Pati
Sent: Friday, July 28, 2000 3:22 PM
To: Cocoon dev
Subject: C2 status
> There is a problem with Ant, which changes the images when they are
> copied into the build webapp directory to build the war file. These
> differ in size after Ant has copied them. If someone of you is also on
> the Ant list could you ask there what the problem might be? I first
> thought it could be because filter="on" in the copydir task but had no
> luck. You should copy the images under samples/resource/images directly
> to your cocoon servlet context by hand to have a perfect picture.
Yeah, I posted a message asking about this yesterday and so far nobody has
responded. Well it's good to see at least that I'm not the only one that
had the problem. [We're talking about Ant 1.1, just in case anyone knows
the answer...]
Willie
Re: C2 status
Posted by Giacomo Pati <Gi...@pwr.ch>.
Donald Ball wrote:
>
> On Fri, 28 Jul 2000, Giacomo Pati wrote:
>
> > Prior to go to vacation (which will begin as of today) I will give a
> > status of my work so far with the sitemap engine.
>
> [ description of work snipped ]
>
> thanks, giacomo! i'm glad you chose to step up to bat and put some hard
> work into this. enjoy your vacation.
I definilety will :) Thanks
Giacomo
--
PWR GmbH, Organisation & Entwicklung Tel: +41 (0)1 856 2202
Giacomo Pati, CTO/CEO Fax: +41 (0)1 856 2201
Hintereichenstrasse 7 Mailto:Giacomo.Pati@pwr.ch
CH-8166 Niederweningen Web: http://www.pwr.ch
Re: C2 status
Posted by Mark Washeim <31...@t-online.de>.
on 7/28/00 9:50 PM, Donald Ball at balld@webslingerZ.com wrote:
> On Fri, 28 Jul 2000, Giacomo Pati wrote:
>
>> Prior to go to vacation (which will begin as of today) I will give a
>> status of my work so far with the sitemap engine.
>
> [ description of work snipped ]
>
> thanks, giacomo! i'm glad you chose to step up to bat and put some hard
> work into this. enjoy your vacation.
>
> - donald
>
Likewise, thanks much for all your work . . .
and have a good time . . .
--
Mark (Poetaster) Washeim
'On the linen wrappings of certain mummified remains
found near the Etrurian coast are invaluable writings
that await translation.
Quem colorem habet sapientia?'
Evan S. Connell
Re: C2 status
Posted by Donald Ball <ba...@webslingerZ.com>.
On Fri, 28 Jul 2000, Giacomo Pati wrote:
> Prior to go to vacation (which will begin as of today) I will give a
> status of my work so far with the sitemap engine.
[ description of work snipped ]
thanks, giacomo! i'm glad you chose to step up to bat and put some hard
work into this. enjoy your vacation.
- donald