* Joerg Heinicke <[EMAIL PROTECTED]> [2004-02-10 19:09]: > On 10.02.2004 19:44, Alan wrote: > > >>>I'm learning forms. > >>> > >>> The registration example uses JXTemplate to generate the > >>> confirmation page. Where does JXTemplate stand these days? Is it > >>> a first class citizen of the Repblic of Cocoon?
> >Here's another metric: > > [EMAIL PROTECTED] cocoon-2.1.3]$ find . -name \*.xsp | wc > > 150 150 9546 > > [EMAIL PROTECTED] cocoon-2.1.3]$ find . -name \*.jx | wc > > 13 13 800 > > > > It appears that XSP, although folks are moving away from it, > > still does a lot of work in the Cocoon 2.1.3 distribution. > > > > JXTemplate doesn't look like it has as much employment, yet. > Of course. Have a look how long JXTemplate exists. Furthermore > finding files by endings is a disadvantage for jx (e.g. > http://cvs.apache.org/viewcvs.cgi/cocoon-2.1/src/blocks/woody/samples/forms/form2_jx.xml). > Grepping on the namespace URIs should give better results. Another shot from the hip: [EMAIL PROTECTED] cocoon-2.1.3]$ find . -name \*.xsp | wc 103 103 5230 [EMAIL PROTECTED] cocoon-2.1.3]$ grep -l -r --include="*.xml" --include="*.jx" \ "http://apache.org/cocoon/templates/jx/1.0" . | wc 31 31 1595 I offer this as a rigrous application of the scientific method that proves irrefutably that JXTemplate is used 30% less than XSP in the Cocoon 2.1.3 distribution. > >>> Beside handling form output, where else would I use JXTemplate > >>> in my sitemap? > > > >>You can use it everywhere where you need a template technique. Or shall > >>I say where a template technique is powerful enough for you? In > >>comparison to JSP you have the advantage of applying transformer > >>afterwards. > > > >Is JXTemplate moving into the vacuum created by XSP then? Anyone else want > >to > > chime in? It seems to me to be the case if JXTemplate has been moved to > > the core (from the CVS log) and XSP is moving out. > > Not that official as replacement for XSP, but it's one possibility. > JXTemplate was probably in the scratchpad before. XSP will probably > moved out of core in Cocoon 2.2 in its own block (but no deeper > discussion or vote on this have taken place yet). What are the other possiblities for templating? Pointers appreciated. By the way, this discussion has done much to improve my understanding of the problem JXTemplate and XSP address. Sometimes a template is a cleaner implementation than a transform. Cocoon needs to offer developers a way to inject variables into a document structure. Thanks for the guidence. -- Alan / [EMAIL PROTECTED] / http://engrm.com/ --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
