PHP templates vs XML

From: Date: Mon, 29 Oct 2001 14:02:32 +0000
Subject: PHP templates vs XML
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-72717@lists.php.net to get a copy of this message
In an on-again-off-again desultory style, I keep trying to find the time to study template systems - and quite separately see if I can find a practical use for XML. The idea of a template system is that the HTML code/presentation of the final view to the user/browser, can be devised/maintained quite separately from the PHP code required to pull data out of the back-end db/processing/whatever. Correct? The systems I've looked at do this by allowing you to put 'tags' into the HTML which are subsequently expanded/replaced with 'real data' by the template processor immediately before presentation to the browser. Now, again broadly speaking, XML allows us to define our own tags, which are subsequently ... Correct? So: when would you use a template system and when would you use XML? (and thus: on which one should I concentrate my research? ) Any all pointers/references to online information sources will be much appreciated. =dn

« previous php.general (#72717) next »