cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Reinhard Poetz" <reinhard_po...@gmx.net>
Subject RE: Difference between cocoon: and file:// in map:part
Date Thu, 14 Nov 2002 13:07:53 GMT
Piotr,

At http://xml.apache.org/cocoon/userdocs/concepts/sitemap.html you should
find some answers to your questions.

Regards,
Reinhard

> -----Original Message-----
> From: Piotr Legiecki [mailto:piotrlg@sci.pam.szczecin.pl]
> Sent: Thursday, November 14, 2002 1:53 PM
> To: cocoon-users@xml.apache.org
> Subject: Difference between cocoon: and file:// in map:part
>
>
> Hi
> I'm new to cocoon and don't get the difference between map:part src
> arguments:
> ....
> map:part src="cocoon:/somefile.xml"
> map:part src="cocoon:/anotherfile.xml"
> ....
>
> means that cocoon should join two xml files (taken from some misterious
> place)
>
> But the same happens with this:
> ....
> map:part src="somefile.xml"
> map:part src="anotherfile.xml"
> .....
>
> which means take two files from filesystem which is clear to me.
>
> In my example:
> ....
>   <map:pipeline>
>       <map:match pattern="">
>          <map:aggregate element="site">
>            <map:part src="content/menu.xml"/>
>            <map:part src="content/books.xml"/>
>          </map:aggregate>
>          <map:transform src="styles/simplemenu2html.xsl"/>
>          <map:serialize/>
>       </map:match>
>    </map:pipeline>
> ....
>
> It works ok, but using
> ...
> src="cocoon:content/menu.xml"
> ...
> instead doesn't (ie the rendered html page is empty). *Why*?
>
> BTW, where is map:aggregate component *fully* documented? In main user
> documentation there is only one example and not all of the attributes
> are explained (ie strip-root, ne etc).
>
> Regards
> Piotr Legiecki
>
>
> ---------------------------------------------------------------------
> Please check that your question  has not already been answered in the
> FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>
>
> To unsubscribe, e-mail:     <cocoon-users-unsubscribe@xml.apache.org>
> For additional commands, e-mail:   <cocoon-users-help@xml.apache.org>
>


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

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


Mime
View raw message