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?
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
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
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();
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
, 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
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.
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
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
-
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
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 ??
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
:[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
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
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
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
]]
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
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
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
19 matches
Mail list logo