Lists Home |
Date Index |
On Monday 17 December 2001 06:15 am, Leigh Dodds wrote:
> > > The separation of content from presentation (or processing) in XML
> > > seems to work okay with similar notions in relational databases, but
> > > goes against much of the grain of object-oriented development.
> > I don't know. MVC is a common pattern, and I think XML+XSL represents the
> > M+V parts very well.
> I agree. I'm doing some investigation into various presentation
> technologies, and have concluded that the best way to architect a web
> interface is as an Model-View-Controller architecture, with the view
> implemented using XSLT. It gives the strongest separation between the
> developer and page builder roles. (Of course if the same people are
> fulfilling both roles, then the distinction does become somewhat blurred).
You might want to have a look at some (now somewhat dated) papers I wrote on
this... I called the idea XSL Beans. Essentially, it takes the perspective
that XSLT can be used to take a declaration/serialization of an object, and
instantiate a new object from it. Looking at it that way, XML is used to
instantiate a model, and XSLT is used to instantiate a new object
heirarchy/graph from that (not necessarily just views). In that world, a
"bean" is made up of an XML instance (the data), and one or more XSLT
stylesheets that create views/applications.