Re: Cocoon 2.1 environment objects from a Java XSLT extension

2007-10-11 Thread Tobia Conforto
[EMAIL PROTECTED] wrote: XSLT Extensions assist formatting. Data collection belongs in the XML generation phase. Using XSLT Extensions to generate data is a very bad practice. What are the requirements? Let me explain better. I need to translate URIs in a XML document, in the middle of a

Re: Cocoon 2.1 environment objects from a Java XSLT extension

2007-10-11 Thread Grzegorz Kossakowski
Tobia Conforto pisze: [EMAIL PROTECTED] wrote: XSLT Extensions assist formatting. Data collection belongs in the XML generation phase. Using XSLT Extensions to generate data is a very bad practice. What are the requirements? Let me explain better. I need to translate URIs in a XML

Re: Cocoon 2.1 environment objects from a Java XSLT extension

2007-10-11 Thread Tobia Conforto
Grzegorz Kossakowski wrote: I'm not sure if it's going to fit in your case but I would suggest to take a look at Cocoon's quite powerful LinkRewriterTransformer[1]. Very interesting, thanks. It seems to fit my case perfectly! Basically all you would need to do is to implement your own input

Cocoon 2.1 environment objects from a Java XSLT extension

2007-10-10 Thread Tobia Conforto
Hi I'm rewriting some functionality into Java XSLT extensions, for performance reasons. For now I'm just writing a Java class, copying it to WEB-INF/classes and calling its static methods from XSLT as such: xsl:value-of select=myclass:myMethod($whatever)

Re: Cocoon 2.1 environment objects from a Java XSLT extension

2007-10-10 Thread Martin Heiden
Tobia, Wednesday, October 10, 2007, 10:30:57 AM, you wrote: TC This works, but I need to access the standard Cocoon environment objects TC (Request would suffice) from my Java class. TC Is there a better way? Just an idea, I never tested it but maybe it's worth to try it: Did you think about

Re: Cocoon 2.1 environment objects from a Java XSLT extension

2007-10-10 Thread solprovider
Yes. There is a better method. XSLT Extensions assist formatting. Data collection belongs in the XML generation phase. Using XSLT Extensions to generate data is a very bad practice. What are the requirements? You want some information for use in creating the output. The information is in