cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David Rosenstrauch <>
Subject Re: Transformers vs. Generators
Date Fri, 16 Nov 2001 01:57:12 GMT
Tough call.  I'd say it depends.  If <customer-data/> is going to be replaced with "John
Brown, 40 Main St." then I'd say a transform.  If <customer-data/> is going to be replace
with a large amount of other XML data (i.e., <records><record><field .../><field
.../></record><record><field .../><field .../></record></records>)
I might think about doing a generator.

I don't love the concept of transformers reading XML from another source and piping it.  Just
my preference though - it's your call.


At 05:50 PM 11/15/01 +0100, you wrote:
>Okay, one piece of theoratical question. If I want to use xml data output
>from a bunch of EJBs (JBoss+Cocoon stuff), shall I better write a
>Transformer or a Generator for getting the data?
>I'd vote for Transformers, which looks for xml tags in a source xml like
><customer-data/>, and replaces it with the business data coming from EJBs,
>which gets rendered by an other (eg. the default XSLT) Transformer right
>Is that the correct way handling the situation?
>Please check that your question has not already been answered in the
>FAQ before posting. <>
>To unsubscribe, e-mail: <>
>For additional commands, e-mail: <> 

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

To unsubscribe, e-mail: <>
For additional commands, e-mail: <>

View raw message