personnaly, I agree with you, and I would really like to see more PHP frameworks (or template systems) rely on XML/XSLT. you can have a look at : http://www.interakt.ro/products/Krysalis/
it's a sort of rewrite of cocoon in PHP ... I had a look to the code, but never used it yet on a real project. looks interesting ... > -----Original Message----- > From: Jerome Houston [mailto:[EMAIL PROTECTED]] > Sent: mardi 25 juin 2002 20:51 > To: [EMAIL PROTECTED]; [EMAIL PROTECTED] > Subject: RE: [PHP] Seperating presentation from logic > > > Is there a particular reason everyone is skipping over the idea of using > XML/XSLT? What you're talking about is EXACTLY what XSLT was > designed for. > You can write scripts that access the DB, and output XML. Then > you just use > XSL files written by your designers to translate your XML into > HTML. they > get to choose EVERYTHING about what the page looks like. > > Granted, your designers need to learn a little XSL, but it sounds > like, for > what you're doing, they wouldn't need to learn much. If you're going to > teach them to use something proprietary like pattemplate (as mentioned > below), why not spend that time teaching them to use XSL, which > is easy to > use and isn't proprietary, it's actually W3 specified. > > for info on how to get it working with php, go to: > http://www.webmasterbase.com/article/602 > > some people may disagree. > > -jerome > > >Basically, like someone else said, you teach your HTML > >designers to use custom tags that your template engine will recognize > >and place the correct values for. > > > >To make a loop, you'd tell your designers to do something like this > ><table> > ><pattemplate:loop> > ><tr><td><a href='{download_link}'>{filename}</a></td></tr> > ></pattemplate:loop> > > > >It's not exactly like that, mind you, but you get the idea. > > > >You can't ever completely separate you designers and programmers. What > >you do is provide an easy to understand way for your designers to > >include the programming elements. What's easier, teaching them to put > ><?=$_POST['name']?> or {name} in the document??? > > > _________________________________________________________________ > MSN Photos is the easiest way to share and print your photos: > http://photos.msn.com/support/worldwide.aspx > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > ______________________________________________________________________________ ifrance.com, l'email gratuit le plus complet de l'Internet ! vos emails depuis un navigateur, en POP3, sur Minitel, sur le WAP... http://www.ifrance.com/_reloc/email.emailif -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php