Thomas Alexnat wrote:
Dear Cocoon-Users,

I have discovered an interesting issue with Cocoon. Using views seems work, until your content is being loaded internally via a 'cocoon:/xyz' url or content aggregation. When you then XSL transform the XML in a view, the resulting tree seems to be corrupted.

Could it be that the pretty-content stylesheet gets called twice?

Views are defined on components, so whenever that component gets executed the view kicks in if the default request parameter "cocoon-view" is present.

So in effect,
<map:match pattern="a">
    <map:generate src="test.xml"/>
    <map:serialize/>
</map:match>

with request parameter cocoon-view=pretty-content does actually

<map:match pattern="a">
    <map:generate src="test.xml"/>
    <map:transform src="stylesheets/system/xml2html.xslt"/>
    <map:serialize type="html"/>
</map:match>

IMO pipeline b tries to transform the already transformed output from pipeline a and messes something up.

Note that this is all highly speculative .... <wandering off to actually test what i've just said>... but true :)

Try to change the generator in pipline a to one that does not use the label "content" ie
<map:generator name="file1" src="org.apache.cocoon.generation.FileGenerator"/>


and
<map:match pattern="a">
    <map:generate type="file1" src="test.xml"/>
....

Whether this is expected behaviour or a bug i don't know. Someone from dev@ maybe??


HTH Jorg


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to