iNET Interactive - Online Advertising Agency
          
   Home    Authors    About    Login    Contact Us
   Search:   
Advanced Search     
  Articles

  ASP (26)
  ASP.NET (19)
  C and C++ (4)
  CFML (2)
  CGI and Perl (16)
  Flash (2)
  Java (7)
  JavaScript (28)
  PHP (92)
  MySQL (13)
  MSSQL (3)
  HTML (34)
  SEO (9)
  Visual Basic (12)
  CSS (13)
  SSI (5)
  XML (12)
  C# (14)

  Developer News

Courtesy of moreover.com
 
Want to receive new articles via e-mail? Click here!
Comments for Smarty vs. XML/XSLT

simply put...
by someuser1 on 3/05/07 11:33 PM   Message # 8188
XML is great for computer-to-computer data transactions, but is horrible for humans to read and write. Smarty is easy to read, easy to understand. Do you really need the template source parsed by an XML parser? That said, the OUTPUT of the template can easily be XML compliant and parsible.

Yeah yeah, XML/XSL, standards compliant, yadda yadda. At the end of the day it comes down to development time, and time is money. I'll take Smarty. :)
[ Reply to This ] Report inappropriate comment
simply put...
by oneuser on 3/05/07 11:26 PM   Message # 8187
XML is good for computer-to-computer data transactions, but horrible for humans to read and write. Templates are edited by humans, there is rarely a case where template files would be parsed by an XML parser. The *output* of the template can easily be XML compliant, so parse to your hearts content :)
[ Reply to This ] Report inappropriate comment
A jumble of code and HTML tags
by Roman on 7/30/06 05:41 PM   Message # 8147
The author said: "Basically, Smarty is a jumble of PHP code and HTML tags." But the same can be said about XSL -- a jumble of XSL code and HTML (or whatever else) tags. So, this isn't a good argument for using XSL. That XSL can be used with other languages without modification is a good argument, though.
[ Reply to This ] Report inappropriate comment
Re: A missed point
by Roman on 7/30/06 05:36 PM   Message # 8146
So, we need developers of PHP to add a method to transform query results into XML form.
[ Reply to This ] Report inappropriate comment
A missed point
by David Lynch on 3/14/06 04:29 PM   Message # 8116
To use XML/XSLT one has to generate XML.

However, using a templating system like Smarty or XTemplate, one can pass database query results directly into the templates as associative arrays.
[ Reply to This ] Report inappropriate comment
Pages: 
Subscribe to Comments
Add a comment
Name*:
E-mail*:
Subject*:
Message*:
Security word*: Enter the text you see from the image
Enter the text you see from the image
 
 
  Sponsors