RE: XSP + Dynamic XML generator ??

2002-05-07 Thread Bert Van Kets
Isn't the xsl-dynamic page that you need? The sample can be found at http://localhost:8080/cocoon/sub/xsl-dynamic The transformer of the main pipeline calls a different pipeline where an XSP page generates the transformations. To my opinion XSP can be used as a transformer this way, no?

RE: XSP + Dynamic XML generator ??

2002-05-07 Thread Vadim Gritsenko
From: Bert Van Kets [mailto:[EMAIL PROTECTED]] Isn't the xsl-dynamic page that you need? I think that's not exactly what he needs... The sample can be found at http://localhost:8080/cocoon/sub/xsl-dynamic The transformer of the main pipeline calls a different pipeline where an XSP

Re: XSP + Dynamic XML generator ??

2002-05-07 Thread Chris Wolf
Yes, now I think this might be what I'm looking for... Bert Van Kets wrote: Isn't the xsl-dynamic page that you need? The sample can be found at http://localhost:8080/cocoon/sub/xsl-dynamic The transformer of the main pipeline calls a different pipeline where an XSP page generates the

RE: XSP + Dynamic XML generator ??

2002-05-06 Thread Lai, Harry
Hi Chris, Instead of just using xsp:expr, you need to also use the util logicsheet (comes with Cocoon 2). If you have that logicsheet declared in the util namespace, for example, you can do the following in your XSP: ... xsp:logic MyXmlSource xmlSource = new MyXmlSource();

Re: XSP + Dynamic XML generator ??

2002-05-06 Thread Chris Wolf
What I wanted to do is use Java to perform what would otherwise have to be done in XSLT. I did some performance tests which indicate that for certain operations, such as changing the overall structure of an XML document, using XSLT exhibits a quadratic rise in time for increasing number of

Re: XSP + Dynamic XML generator ??

2002-05-06 Thread Chris Wolf
, 5 May 2002 8:45 AM To: [EMAIL PROTECTED] Subject: Re: XSP + Dynamic XML generator ?? Chris, Generally speaking, you don't use XSP to transform XML that has already been generated, you use it generate XML in the first place. So it seems that you'd want to follow the typical pipeline

Re: XSP + Dynamic XML generator ??

2002-05-06 Thread Chris Wolf
I looked over most of the examples, including this one, before posting. It's not really what I want to do, that just seems to be using another pipline as an imput source, effectively establishing alias URI's. I was hoping to use embedded java to perform what would otherwise be done with XSLT.

Re: XSP + Dynamic XML generator ??

2002-05-06 Thread Chris Wolf
This is certainly one solution that might work for me, I'll give it a try. Is the util logicsheet documented anywhere? Thanks, -Chris Lai, Harry wrote: Hi Chris, Instead of just using xsp:expr, you need to also use the util logicsheet (comes with Cocoon 2). If you have that

RE: XSP + Dynamic XML generator ??

2002-05-06 Thread Vadim Gritsenko
From: Chris Wolf [mailto:[EMAIL PROTECTED]] I looked over most of the examples, including this one, before posting. It's not really what I want to do, that just seems to be using another pipline as an imput source, But it sounds like what you need: Generate XML - Use it as XSP source -

Re: XSP + Dynamic XML generator ??

2002-05-06 Thread Chris Wolf
Ok, after reading this, and your previous response, I can now articulate my problem better. It seems the XSP allows you to create reusable sections of code (logicsheets) and to embed Java, the result is auto-generated code which is an instance of Generator. I was hoping that XSP could also be

Re: XSP + Dynamic XML generator ??

2002-05-06 Thread Chris Wolf
Harry, This worked out pretty well for me, thanks! (I was hoping to also perform the work of a Transformer in the same XSP, but this is good enough for now...) Thanks for the tip... -Chris Lai, Harry wrote: Hi Chris, Instead of just using xsp:expr, you need to also use the

RE: XSP + Dynamic XML generator ??

2002-05-06 Thread Paul Pattison
: Re: XSP + Dynamic XML generator ?? Ok, after reading this, and your previous response, I can now articulate my problem better. It seems the XSP allows you to create reusable sections of code (logicsheets) and to embed Java, the result is auto-generated code which is an instance of Generator. I

Re: XSP + Dynamic XML generator ??

2002-05-06 Thread Chris Wolf
:[EMAIL PROTECTED]] Sent: 06 May 2002 16:32 To: [EMAIL PROTECTED] Subject: Re: XSP + Dynamic XML generator ?? Ok, after reading this, and your previous response, I can now articulate my problem better. It seems the XSP allows you to create reusable sections of code (logicsheets

RE: XSP + Dynamic XML generator ??

2002-05-06 Thread Vadim Gritsenko
From: Chris Wolf [mailto:[EMAIL PROTECTED]] Ok, after reading this, and your previous response, I can now articulate my problem better. It seems the XSP allows you to create reusable sections of code (logicsheets) and to embed Java, the result is auto-generated code which is an instance

Re: XSP + Dynamic XML generator ??

2002-05-06 Thread Chris Wolf
Thanks, I'll wait for this XSPT to be better documented, until then, I'll just write a java-based Transformer... -Chris Vadim Gritsenko wrote: From: Chris Wolf [mailto:[EMAIL PROTECTED]] Ok, after reading this, and your previous response, I can now articulate my problem

RE: XSP + Dynamic XML generator ??

2002-05-06 Thread Vadim Gritsenko
From: Chris Wolf [mailto:[EMAIL PROTECTED]] Thanks, I'll wait for this XSPT to be better documented, It does not exist. But it is possible. Vadim until then, I'll just write a java-based Transformer... -Chris Vadim Gritsenko wrote: From: Chris Wolf [mailto:[EMAIL

RE: XSP + Dynamic XML generator ??

2002-05-05 Thread Dean McGowan
]] Sent: Sunday, 5 May 2002 8:45 AM To: [EMAIL PROTECTED] Subject: Re: XSP + Dynamic XML generator ?? Chris, Generally speaking, you don't use XSP to transform XML that has already been generated, you use it generate XML in the first place. So it seems that you'd want to follow the typical

RE: XSP + Dynamic XML generator ??

2002-05-05 Thread Vadim Gritsenko
One line for you: http://localhost:8080/cocoon/sub/xsp-cocoon Other samples might be useful too. PS Why not use xsp, then xinclude your xml and xslt as necessary? Vadim -- Resistance is futile. From: Chris Wolf [mailto:[EMAIL PROTECTED]] I am working on a project where we have a

Re: XSP + Dynamic XML generator ??

2002-05-04 Thread Zack Angelo
Chris, Generally speaking, you don't use XSP to transform XML that has already been generated, you use it generate XML in the first place. So it seems that you'd want to follow the typical pipeline layout, generate your XML with XSP based on parameters gathered from your datasource (perhaps via