You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by "David J. Manura" <dj...@Lehigh.EDU> on 2000/09/04 20:04:44 UTC
model-view separation
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