Dear Jorg,
I can confirm your thougts: When adding a custom label to my second matcher called "B" everything is fine. Unfortunally this does not really solve my problem:
How can I see the XML content of my pipelines, before the transformation starts. Adding a special lables for each pipleline seems not to be the greatest solution and I need a more generic approach...
Thanks for your response, Thomas
On 06.12.2004, at 17:54, Jorg Heymans wrote:
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]
Schoene Gruesse, Thomas
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
