Elvira Nieto Carretero dijo:
> Hello again
>
> If a pipeline basic is compose by
>
> <map:pipeline>
>     <map:match pattern="*">
>       <map:generate src="my_xml.xml"/>
>       <map:transform src="my_xsl.xsl"/>
>       <map:serialize type="html"/>
>     </map:match>
>
> how can i to apply a transform (my_xsl.xsl) to xml on the fly?

Hi:

Can you elaborate more what you have in mind? Because, AFAIK, all the
cocoon tranformations are on the fly. :-D

> That is, can i make a xml structure in memory and then to apply it a last
> transformer my_xsl.xsl?

The generator job is to emit SAX events that are consumed by a
transformer. The tranformer can be of the default type XSLT. In this way,
it can be interpreted as "done in memory" or "on the fly". And this is
what Cocoon is all about.

Another answer to the question can be:

You can also point to another pipeline to generate the XML source. In that
way it is called a "dynamic" generated XML file.

Is that what you have in mind? If so, see for the "cocoon:" protocol:

http://wiki.cocoondev.org/Wiki.jsp?page=CocoonProtocolExample

Best Regards,

Antonio Gallardo

Reply via email to