Re: [c2] Selectors and Matchers vs components in sitemaps

2001-07-13 Thread Christian Haul

On 12.Jul.2001 -- 07:35 PM, HALLOWELL,KARL (HP-Cupertino,ex1) wrote:
> My apologies. This was meant to be a Cocoon 2 question.
> 
> 
> Karl Hallowell [EMAIL PROTECTED]
> 
> 
> > From: HALLOWELL,KARL (HP-Cupertino,ex1) [mailto:[EMAIL PROTECTED]]
> > Sent: Wednesday, July 11, 2001 3:26 PM
> > To: [EMAIL PROTECTED]
> > Subject: Selectors and Matchers vs components in sitemaps
> > 
> > 
> > I noticed that the packages org.apache.cocoon.selection and
> > org.apache.cocoon.matching contain a number of "code 
> > factories" (writes a
> > StringBuffer of java code) while none of the other packages 
> > (in cocoon) do.
> > Does this mean that if I write a selector or matcher that I 
> > actually should
> > write a CodeFactory object? Didn't spot anything about this 
> > subject on the
> > mailing lists. Thank you.

Personally, I like writing CodeFactories more than writing the
concrete matchers. But I think it doesn't matter what you do. The
outcome is that code produced by a factory is embedded in the
generated sitemap class while e.g. a matcher class will be used as an
instance of that class.

Chris.

-- 
C h r i s t i a n   H a u l
[EMAIL PROTECTED]
fingerprint: 99B0 1D9D 7919 644A 4837  7D73 FEF9 6856 335A 9E08

-
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>




RE: [c2] Selectors and Matchers vs components in sitemaps

2001-07-12 Thread HALLOWELL,KARL (HP-Cupertino,ex1)

My apologies. This was meant to be a Cocoon 2 question.


Karl Hallowell [EMAIL PROTECTED]


> -Original Message-
> From: HALLOWELL,KARL (HP-Cupertino,ex1) [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, July 11, 2001 3:26 PM
> To: [EMAIL PROTECTED]
> Subject: Selectors and Matchers vs components in sitemaps
> 
> 
> I noticed that the packages org.apache.cocoon.selection and
> org.apache.cocoon.matching contain a number of "code 
> factories" (writes a
> StringBuffer of java code) while none of the other packages 
> (in cocoon) do.
> Does this mean that if I write a selector or matcher that I 
> actually should
> write a CodeFactory object? Didn't spot anything about this 
> subject on the
> mailing lists. Thank you.
> 
> 
> 
> Karl Hallowell [EMAIL PROTECTED]
> 
>  
> 
> -
> Please check that your question has not already been answered in the
> FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
> 
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail: <[EMAIL PROTECTED]>
> 

-
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>




Selectors and Matchers vs components in sitemaps

2001-07-11 Thread HALLOWELL,KARL (HP-Cupertino,ex1)

I noticed that the packages org.apache.cocoon.selection and
org.apache.cocoon.matching contain a number of "code factories" (writes a
StringBuffer of java code) while none of the other packages (in cocoon) do.
Does this mean that if I write a selector or matcher that I actually should
write a CodeFactory object? Didn't spot anything about this subject on the
mailing lists. Thank you.



Karl Hallowell [EMAIL PROTECTED]

 

-
Please check that your question has not already been answered in the
FAQ before posting. 

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>