cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Marcelo F. Ochoa" <>
Subject RE: model-view separation
Date Mon, 04 Sep 2000 22:07:42 GMT

I'm considering using Cocoon is some projects.  However, why is the data
coupled with the presentation?  For example,

--- test.xml ---
 <?xml version="1.0"?>
 <?cocoon-process type="xslt"?>
 <?xml-stylesheet href="test.xsl" type="text/xsl"?>
   <country code="ca">Canada</country>
   <country code="de">Germany</country>

The XML file (model) contains an explicit (and unchangeable) reference to
the XSL file (view).
[Marcelo F. Ochoa]  This explicit specification of view concerns is removed in Cocoon 2.0
with the sitemap functionality.

To view this in a web browser, one would refer to the model:

Instead, I would think that the view should be moved to the URL also:

Help appreciated,
David J. Manura
Dave's Math Tables,
[Marcelo F. Ochoa]   Regards, Marcelo. 
View raw message