cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vadim Gritsenko" <vadim.gritse...@verizon.net>
Subject RE: Aggregation problem
Date Wed, 13 Mar 2002 12:43:00 GMT
> From: KOZLOV Roman [mailto:r-kozlov@opencascade.com]
> 
> Hi Arnaud,
> 
> It is necessary to define element for each map:part also:
>           <map:part src="cocoon:/autolayout.xml" element="uuu"/>
>           <map:part src="cocoon:/coco.xml" element="ooo"/>

This is *not* necessary.


>     Best regards.
>         Roman
> 
> Arnaud Vandyck wrote:
> 
> > Hi all,
> >
> > I have these entries in a sub-sitemap:
> >
> >       <map:match pattern="autolayout.xml">
> >         <map:read src="docs2/autolayout.xml" mime-
> type="text/xml"></map:read>
> >                 <map:serialize type="xml" />

This is invalid pipeline. When you use <map:read/>, you can not use
serializer. And, IIRC, pipeline with the map:read can not be aggregated.
Try map:generate instead (with map:serialize).

Vadim

> >           </map:match>
> >
> >       <map:match pattern="test.xml">
> >         <map:aggregate element="site">
> >           <map:part src="cocoon:/autolayout.xml" />
> >           <map:part src="cocoon:/coco.xml" />
> >         </map:aggregate>
> >         <map:serialize type="xml" />
> >       </map:match>
> >
> >       <map:match pattern="**.xml">
> >         <map:read src="docs2/{1}.xml"
mime-type="text/xml"></map:read>
> >                 <map:serialize type="xml" />
> >           </map:match>
> >
> > Accessing autolayout.xml  and index.xml  (first and last  entries)
are
> > OK. But the aggregation fails:
> >
> > $ lynx -source http://localhost/cocoon/ste/test.xml
> >
> > <?xml version="1.0" encoding="UTF-8"?>
> > <site>
> >   <autolayout/>
> > </site>
> > <html>
> >   <head><title>Internal server error</title>
> >     <STYLE>
> >   <!--H1{font-family : sans-serif,Arial,Tahoma;color :
white;background-
> color : #0086b2;}
> >       BODY{font-family : sans-serif,Arial,Tahoma;color :
black;background-
> color : white;}
> >       B{color : white;background-color : #0086b2;} HR{color :
#0086b2;} -->
> >     </STYLE>
> >   </head>
> >   <body>
> >   <h1>Cocoon 2 - Internal server error</h1>
> >   <HR size="1" noshade>
> >   <p><b>type</b> internal-server-error</p>
> >   <p><b>message</b> <u>Attempted to process incomplete
pipeline.</u></p>


<snip/>


---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.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