Sunday, December 16, 2007

A cool example of MVC Pattern

MVC (Model-View-Controller) can be bit confusing for some. I like to demonstrate same using a simple example here.

Open my resume [not my latest, if you interested in my latest resume here it is :-)] in any xml-friendly browser such as Firefox and see how the XML is rendered.

1. The xml file is the Model in this case; which contains structured data.
2. The resume.xsl is the Controller which translates this xml to HTML, the View, which gets rendered in the browser user interface.

Note that the Model is not coupled with View and Controller is the binder of the Model to the View.

1 comment:

Opa said...

Good words.

I am well fed with these !!