Hello again
I found "Source Writing Transformer" in
http://cocoon.apache.org/2.1/userdocs/transformers/sourcewriting-transformer.html
and it seems what i search.
But i don't understand how is my pipeline complete after i read that page.
My pipeline only it compose of:
<map:pipeline>
<map:match pattern="write2file.html">
<map:transform type="write-source">
<map:parameter name="serializer" value="xml"/>
</map:transform>
</map:match>
</map:pipeline>
????
... or i need to specify something more?
... And, where exactly i must generate the code with format:
<source:write xmlns:source="http://apache.org/cocoon/xource/1.0">
<source:fragment>
<myrootelement>
<linkname>Link 1</linkname>
<linkurl>http://url.link1.com</linkurl>
</myrootelement>
</source:fragment>
</source:write>
???
I hope it's definitive.
Best regards from Seville (Spain)
----- Original Message -----
From: "Elvira Nieto Carretero" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, April 14, 2004 12:11 PM
Subject: Re: To make XML on the fly
> Hi
>
> I have in mind is fairly close to your last proposal.
>
> Exactly i want to save the path of links that the user of my site web do
and
> i want to insert a new xml label in my navigation.xml once the user to
click
> over a link of my menu..... do you understand me?
>
> Thanks again.
>
> Best regards
>
>
> ----- Original Message -----
> From: "Antonio Gallardo" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Wednesday, April 14, 2004 11:11 AM
> Subject: Re: To make XML on the fly
>
>
> > 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
>