You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Florent MIGNON <fm...@gmail.com> on 2005/05/23 11:39:07 UTC
Nested transformations
Hello there,
Does someone of you know how to use the result of a xslt
transformation as the source of another ?
1] xml1 + xsl1 ----->xsl2
2] xml2 + xsl2 -----> xml3
Thanks in advance !
Florent
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
Re: Nested transformations
Posted by Bertrand Delacretaz <bd...@apache.org>.
Le 23 mai 05, à 11:39, Florent MIGNON a écrit :
> Does someone of you know how to use the result of a xslt
> transformation as the source of another ?
You can have as many <map:transform> elements as you need inside a
<map:match>, so just chain several transforms in this way.
-Bertrand
Re: Nested transformations
Posted by Florent MIGNON <fm...@gmail.com>.
Hello Bertrand,
Thank you. That's exactly what I was trying to do.
Cheers
Florent
On 5/23/05, Bertrand Delacretaz <bd...@apache.org> wrote:
> Le 23 mai 05, à 11:39, Florent MIGNON a écrit :
>
> > 1] xml1 + xsl1 ----->xsl2
> > 2] xml2 + xsl2 -----> xml3
>
> oops sorry I was too quick, what you need is something like
>
> <map:match pattern="generate-xsl2">
> <map:generate src="xml1"/>
> <map:transform src="xsl1"/>
> <map:serialize type="xml"/>
> </map:match>
>
> <map:match pattern="xml3">
> <map:generate src="xml2"/>
> <map:transform src="cocoon:/generate-xsl2"/>
> <map:serialize type="xml"/>
> </map:match>
>
> -Bertrand
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
Re: Nested transformations
Posted by Bertrand Delacretaz <bd...@apache.org>.
Le 23 mai 05, à 11:39, Florent MIGNON a écrit :
> 1] xml1 + xsl1 ----->xsl2
> 2] xml2 + xsl2 -----> xml3
oops sorry I was too quick, what you need is something like
<map:match pattern="generate-xsl2">
<map:generate src="xml1"/>
<map:transform src="xsl1"/>
<map:serialize type="xml"/>
</map:match>
<map:match pattern="xml3">
<map:generate src="xml2"/>
<map:transform src="cocoon:/generate-xsl2"/>
<map:serialize type="xml"/>
</map:match>
-Bertrand