> 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 page  generates the transformations.  To my opinion XSP can be
used as
> a transformer this way, no?

It uses XSP to create XSLT sheet dynamically (and XSL is XML - so no
issue here), but in no means this creates Transformer. You can not write
Java code which operates on the input SAX stream, but Java code which
creates XSLT.

Vadim

>     <!-- Dynamic XSL -->
>     <map:match pattern="xsl-dynamic-source">
>      <map:generate type="serverpages"
src="stylesheets/simple-page2html.xsp"/>
>      <map:serialize type="xml"/>
>     </map:match>
>     <map:match pattern="xsl-dynamic">
>      <map:generate src="docs/simple.xml"/>
>      <map:transform src="cocoon:/xsl-dynamic-source"/>
>      <map:serialize/>
>     </map:match>
> 
> 
> Bert
> 
> 
> At 22:23 6/05/2002 -0400, you wrote:
> > > 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 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 of Generator.
> > > >
> > > > You have got it right.
> > > >
> > > >
> > > > > I was hoping that XSP could also be used to define a
> > > > > code-generated
> > > > > instance of Transformer.
> > > >
> > > > Cocoon markup->to->programming-language machinery can do that.
But
> > > > it
> > > > will not be XSP, but other language on its own (I think "XSPT":
XSP
> > > > for transformations ;)
> > > >
> > > > > The way things are now, it seems that
> > > > > only Generators can be coded up using XSP -- not Transformers.
> > > >
> > > > Right now - yes.
> > > >
> > > > > In other words, I must write my Transformer entirely in Java.
> > > >
> > > > Or implement XSPT. I think it will be simplier for you to code
> > > > Transformer in Java at this stage. ;)
> > > >
> > > > > Thanks for your help,
> > > >
> > > > Welcome.
> > > >
> > > > Vadim
...


---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

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

Reply via email to