cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Thomas Alexnat <tho...@alexnat.de>
Subject Issue in Cocoon views preventing XSLT working properly?
Date Sat, 04 Dec 2004 16:26:24 GMT
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.

This can be verified by calling:
http://localhost:8888/a?cocoon-view=pretty-content
http://localhost:8888/b?cocoon-view=pretty-content  (here you will get 
a corrupt html tree)

Do you have any idea what is wrong? The sitemap is the original sitemap 
shipped with Cocoon, slightly modified with the code beneath:

----------------
-   test.xml   -
----------------
<test>
    Hello World XML
</text>


----------------
- sitemap.xmap - (added to the original sitemap)
----------------
<map:pipeline>
     <map:match pattern="a">
         <map:generate src="test.xml"/>
         <map:serialize/>
     </map:match>
</map:pipeline>
<map:pipeline>
   <map:match pattern="b">
         <map:generate src="cocoon:/a" />
         <map:serialize/>
   </map:match>
</map:pipeline>


This issue has been tested on Cocoon 2.1.5 and 2.1.6 on OS X 10.3.6 on 
a PowerMac Dual G5 and Java 1.4.2_05.

Any comments wanted,
   Thomas


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message