RE: calling a custom method in a bean?

2003-06-18 Thread Carmona Perez, David
You have many possibilities, these are some of them:

1. You can use a Xalan Java extensions, you can easily call any Java function from a 
XSLT file (see http://xml.apache.org/xalan-j)
2. You can use an input module and pass a parameter to a XSLT transform in this way






David

-Mensaje original-
De: Paul Tomsic [mailto:[EMAIL PROTECTED]
Enviado el: martes, 17 de junio de 2003 20:30
Para: [EMAIL PROTECTED]
Asunto: calling a custom method in a bean?

Is it possible to alter the pipeline of cocoon
so that we're calling a custom javabean that would
generate the XML for the transform?  (or at least call
our own method from our bean?)

More specifically, one of our reports needs column
headers that have the date(s) of fiscal years on them.
This information comes from an order that was placed
in, say FQ4-2003, so our column headers would be:
30.June 2003,7.July.2003,14.July.2003, etc.

We need to figure out the first monday of a quarter,
then add 7 to it for 13 wks.
We've got a method that does this in Java, but how do
we call that method from cocoon?
Just wondering if anyone's dealt w/ this before?

thanks

__
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com

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

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



Re: calling a custom method in a bean?

2003-06-17 Thread Ralph Goers
I believe you should be able to call the java method in your transform 
passing it the XML date as input and getting the first Monday as the result.

At 6/17/2003 11:29 AM, you wrote:
Is it possible to alter the pipeline of cocoon
so that we're calling a custom javabean that would
generate the XML for the transform?  (or at least call
our own method from our bean?)
More specifically, one of our reports needs column
headers that have the date(s) of fiscal years on them.
This information comes from an order that was placed
in, say FQ4-2003, so our column headers would be:
30.June 2003,7.July.2003,14.July.2003, etc.
We need to figure out the first monday of a quarter,
then add 7 to it for 13 wks.
We've got a method that does this in Java, but how do
we call that method from cocoon?
Just wondering if anyone's dealt w/ this before?
thanks

__
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


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