cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Markus Vaterlaus <mvaterl...@gmail.com>
Subject Re: Two XML files and one XSL file in Cocoon(Summary)
Date Tue, 20 Dec 2005 17:28:08 GMT
On 12/19/05, kavitha ramesh <kaviramesh77@yahoo.com> wrote:
> Ard Schrijvers,Markus Vaterlaus and Geert Josten,,,Many Thanks for your
> suggestions,,,
>
> I tried the following way and it works,,
>
> <map:match pattern="one">
>      <map:generate src="author.xml"/>
>      <map:serialize type="xml"/>
>    </map:match>

If author.xml already exists like the desired xml file, then think
about using a reader instead  of generator and serializer.

HTH

Markus

>    <map:match pattern="two">
>      <map:generate src="book.xml"/>
>      <map:serialize type="xml"/>
>    </map:match>
>  </map:pipeline>
>  <map:pipeline>
>    <map:match pattern="authorsbook.html">
>      <map:aggregate element="cd">
>        <map:part src="cocoon:/one" element="author"/>
>        <map:part src="cocoon:/two" element="book"/>
>   &nbsp ;  </map:aggregate>
>      <map:transform src="style/xsl/authorbook.xsl"/>
>      <map:serialize type="html"/>
>    </map:match>
>
> Regards
> Kavitha
>
> kavitha ramesh <kaviramesh77@yahoo.com> wrote:
>
> Hi,
>
> I have two xml files,,book.xml and author.xml and one xsl file,,author's
> book.xsl.
> How can I process these two xml files with one xsl file in cocoon?how should
> my pipeline in the sitemap look like?
> Please suggest me,,,
>
> Kavitha
> __________________________________________________
> Do You Yahoo!?
> Tired of spam? Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com
>
>
>
> __________________________________________________
> Do You Yahoo!?
> Tired of spam? Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message