cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David J. Manura" <d...@Lehigh.EDU>
Subject model-view separation
Date Mon, 04 Sep 2000 18:04:44 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"?>
 <page>
   <country code="ca">Canada</country>
   <country code="de">Germany</country>
</page>

The XML file (model) contains an explicit (and unchangeable) reference to
the XSL file (view).

To view this in a web browser, one would refer to the model:
  www.asdfghjkl.com/test.xml

Instead, I would think that the view should be moved to the URL also:
  www.asdfghjkl.com/test.xsl?source=test.xml

Help appreciated,
David J. Manura
Dave's Math Tables
www.sisweb.com/math
djma@lehigh.edu, sismspec@ix.netcom.com


Mime
View raw message