cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "roy huang" <lingererhu...@hotmail.com>
Subject Re: Some CalendarGenerator code
Date Sat, 08 May 2004 08:14:47 GMT
Hi,Ugo:
    After a long Labor Day holiday,I checked this message today.The source 
code contains Chinese characters so you may not recognize.I don't know the 
coding standard in cocoon,so this source code is sent to you for reference.
What should I do is better now?
    The second point is generator is still not easy to show data in <day><>
element,you must write java code to extend the original Calendar.
I think many users won't like this idea.My suggestion is why not create a CalendarTransformer
to transform a predefine of configurable format xml stream to calendar format,then users can
using
xml file or SQLTransformer to get the information and set it in <day> element.
    WDYT?

Roy Huang

----- Original Message ----- 
From: "Ugo Cei" <ugo@apache.org>
To: <dev@cocoon.apache.org>
Sent: Saturday, May 01, 2004 11:24 PM
Subject: Re: Some CalendarGenerator code


> Il giorno 30/apr/04, alle 04:53, roy huang ha scritto:
> 
> > Hi ugo:
> >     The attachment is a calendargenerator extend the original 
> > one,provide year,month,two week,week,work day,two days,day 
> > calendar.The basic code is from your original class.See if this helps.
> 
> Sorry but your source contains characters with an unknown encoding in 
> the comments and the original Javadoc comments are missing. I don't 
> have time at the moment to fix this. Also, it would be nice if you 
> could expand the original sample with the cases you added.
> 
> >     Another suggestion,I saw you mail in 
> > http://marc.theaimsgroup.com/?l=xml-cocoon-dev&m=108253763309517&w=2 
> > .My suggestion is why not write a CalendarTransformer?It read from 
> > generator about date,content by parameter configed by parameter and 
> > then generate its own sax pipeline just like CalendarGenerator?This 
> > Transformer will much easier to use.
> 
> Much easier to use compared to what? Sorry, but I don't see your point. 
> Can you provide an example?
> 
> Ugo
> 
> 
Mime
View raw message