lenya-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Emyr Tomos <emyr.tomos.gam...@gmail.com>
Subject Get error "Streaming of an internal pipeline is not possible with a reader". - only occurs at second level of the publication content tree
Date Wed, 10 Oct 2012 10:42:16 GMT
I have created a pipeline like so:

    <map:match pattern="fetchPortfolioList-*">
     <map:select type="parameter">
        <map:parameter name="parameter-selector-test" value="{1}"/>
        <map:when test="portfolio">
            <map:generate src="test.xml"/>
      <map:transform type="xslt" src="test2html.xsl"/>
            <map:generate src="emptytest.xml"/>
     <map:serialize type="xml"/>

and am calling it within the aggregator which creates the cmsbody
element like so:

       <map:match pattern="lenyabody-raw-*/*/*/*/*/*/**">
        <map:aggregate element="cmsbody">
          <map:part src="cocoon:/document-content/{1}/{2}/{3}/{7}"/>

      <map:part src="cocoon:/fetchPortfolioList-{7}"/>

       <map:serialize type="xml"/>
(7 will be the path from the lenyabody-raw-*/*/*/*/*/*/** pattern).

I am looking to generate something different for the "portfolio"
section, specifically get a dynamic collection and put it through a
different transform though here I'm just loading test files.
This works fine when I am at the top level of the publication tree,
i.e /[publication]/[area]/[whatever].html
However when I go deeper down the tree e.g
/[publication]/[area]/[[section]/whatever].html I get:

Streaming of an internal pipeline is not possible with a reader.

and the line identified is where I call the serializer directly after
the aggregator.
I'm using a generator and serializer in my new pipeline, so I'm kinda
guessing there's something in the path processing that hands back a
reader, but I don't know what. Any ideas?


To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
For additional commands, e-mail: user-help@lenya.apache.org

View raw message