You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by "Pokorny, Michael" <Mi...@tvratings.com> on 2001/06/19 21:27:09 UTC

[C2] Aggregation

I am a newbie to aggregation and am having problems.  When I try to
aggregate two (or three) files together via the sitemap aggregate tag, I get
the following error. Can somebody point me in the right direction so that I
can use aggregation.  I cannot seem to find much documentation on using
aggregation in the sitemap.  Also, does anyone know why a second top level
element is being generated?

Thank you ...

-- Michael Pokorny
Nielsen Media Research



++++++++++++++++++++++++++++++++++++++++++
ERROR from IE 5 browser
++++++++++++++++++++++++++++++++++++++++++

The XML page cannot be displayed 
Cannot view XML input using XSL style sheet. Please correct the error and
then click the Refresh button, or try again later. 


----------------------------------------------------------------------------
----

Only one top level element is allowed in an XML document. Line 2, Position
145 
 

<HTML-mike xmlns:ns3="http://foo.bar.com/peggy"
xmlns:ns2="http://foo.bar.com/steve"
xmlns:ns1="http://foo.bar.com/michael"><body/></HTML-mike><html
xmlns:error="http://apache.org/cocoon/2.0/error">
----------------------------------------------------------------------------
---------------------------^
++++++++++++++++++++++++++++++++++++++++++
End of error:  ERROR from IE 5 browser
++++++++++++++++++++++++++++++++++++++++++


(Here is my aggregation snippet from my sitemap)

   <map:match pattern="hello-aggregation-michael.html">
     <map:aggregate element="page" ns="http://foo.bar.com/myspace">
       <map:part src="docs/samples/hello-michael.xml" element="michael"
ns="http://foo.bar.com/michael"/>
       <map:part src="docs/samples/hello-steve.xml"   element="steve"
ns="http://foo.bar.com/steve"/>
     </map:aggregate>
     <map:transform
src="stylesheets/page/simple_aggregated_michael-page2html.xsl"/>
     <map:serialize type="xml"/>
   </map:match>



---------------------------------------------------------------------
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: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>


Re: [C2] Aggregation

Posted by giacomo <gi...@apache.org>.
On Tue, 19 Jun 2001, Pokorny, Michael wrote:

> I am a newbie to aggregation and am having problems.  When I try to
> aggregate two (or three) files together via the sitemap aggregate tag, I get
> the following error. Can somebody point me in the right direction so that I
> can use aggregation.  I cannot seem to find much documentation on using
> aggregation in the sitemap.  Also, does anyone know why a second top level
> element is being generated?

You totally missed the concept of the sitemap aggregation. Instead of
aggregating xml files like you did you have to aggregate cocoons own
URIs. If you look at the sitemap xmap samples of aggregator each src
attribute of the map:part elements denot a URI that is server by the
sitemap.

Giacomo

>
> Thank you ...
>
> -- Michael Pokorny
> Nielsen Media Research
>
>
>
> ++++++++++++++++++++++++++++++++++++++++++
> ERROR from IE 5 browser
> ++++++++++++++++++++++++++++++++++++++++++
>
> The XML page cannot be displayed
> Cannot view XML input using XSL style sheet. Please correct the error and
> then click the Refresh button, or try again later.
>
>
> ----------------------------------------------------------------------------
> ----
>
> Only one top level element is allowed in an XML document. Line 2, Position
> 145
>
>
> <HTML-mike xmlns:ns3="http://foo.bar.com/peggy"
> xmlns:ns2="http://foo.bar.com/steve"
> xmlns:ns1="http://foo.bar.com/michael"><body/></HTML-mike><html
> xmlns:error="http://apache.org/cocoon/2.0/error">
> ----------------------------------------------------------------------------
> ---------------------------^
> ++++++++++++++++++++++++++++++++++++++++++
> End of error:  ERROR from IE 5 browser
> ++++++++++++++++++++++++++++++++++++++++++
>
>
> (Here is my aggregation snippet from my sitemap)
>
>    <map:match pattern="hello-aggregation-michael.html">
>      <map:aggregate element="page" ns="http://foo.bar.com/myspace">
>        <map:part src="docs/samples/hello-michael.xml" element="michael"
> ns="http://foo.bar.com/michael"/>
>        <map:part src="docs/samples/hello-steve.xml"   element="steve"
> ns="http://foo.bar.com/steve"/>
>      </map:aggregate>
>      <map:transform
> src="stylesheets/page/simple_aggregated_michael-page2html.xsl"/>
>      <map:serialize type="xml"/>
>    </map:match>
>
>
>
> ---------------------------------------------------------------------
> 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: <co...@xml.apache.org>
> For additional commands, e-mail: <co...@xml.apache.org>
>
>
>
>


---------------------------------------------------------------------
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: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>


RE: [C2] Aggregation

Posted by Vadim Gritsenko <vg...@hns.com>.
It looks like that you have got an error during aggregation, when aggregator tries to access "hello-steve" pipeline.
Look inside Cocoon log file for the reason.

Vadim

> -----Original Message-----
> From: Pokorny, Michael [mailto:Michael_Pokorny@tvratings.com]
> Sent: Tuesday, June 19, 2001 15:27
> To: 'cocoon-users@xml.apache.org'
> Subject: [C2] Aggregation
> 
> 
> I am a newbie to aggregation and am having problems.  When I try to
> aggregate two (or three) files together via the sitemap aggregate tag, I get
> the following error. Can somebody point me in the right direction so that I
> can use aggregation.  I cannot seem to find much documentation on using
> aggregation in the sitemap.  Also, does anyone know why a second top level
> element is being generated?
> 
> Thank you ...
> 
> -- Michael Pokorny
> Nielsen Media Research
> 
> 
> 
> ++++++++++++++++++++++++++++++++++++++++++
> ERROR from IE 5 browser
> ++++++++++++++++++++++++++++++++++++++++++
> 
> The XML page cannot be displayed 
> Cannot view XML input using XSL style sheet. Please correct the error and
> then click the Refresh button, or try again later. 
> 
> 
> ----------------------------------------------------------------------------
> ----
> 
> Only one top level element is allowed in an XML document. Line 2, Position
> 145 
>  
> 
> <HTML-mike xmlns:ns3="http://foo.bar.com/peggy"
> xmlns:ns2="http://foo.bar.com/steve"
> xmlns:ns1="http://foo.bar.com/michael"><body/></HTML-mike><html
> xmlns:error="http://apache.org/cocoon/2.0/error">
> ----------------------------------------------------------------------------
> ---------------------------^
> ++++++++++++++++++++++++++++++++++++++++++
> End of error:  ERROR from IE 5 browser
> ++++++++++++++++++++++++++++++++++++++++++
> 
> 
> (Here is my aggregation snippet from my sitemap)
> 
>    <map:match pattern="hello-aggregation-michael.html">
>      <map:aggregate element="page" ns="http://foo.bar.com/myspace">
>        <map:part src="docs/samples/hello-michael.xml" element="michael"
> ns="http://foo.bar.com/michael"/>
>        <map:part src="docs/samples/hello-steve.xml"   element="steve"
> ns="http://foo.bar.com/steve"/>
>      </map:aggregate>
>      <map:transform
> src="stylesheets/page/simple_aggregated_michael-page2html.xsl"/>
>      <map:serialize type="xml"/>
>    </map:match>
> 
> 
> 
> ---------------------------------------------------------------------
> 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: <co...@xml.apache.org>
> For additional commands, e-mail: <co...@xml.apache.org>
> 
> 

---------------------------------------------------------------------
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: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>