Moreover, you can transform XML into JSON via specific XSLT
True, I forgot to mention it in my post, XSL just transform, and similar 
structures can use the same XSL so another reason to prefer it over php in the 
html.

Regards

> Date: Wed, 27 May 2009 11:47:56 -0400
> From: aball...@gmail.com
> To: f...@thefsb.org
> CC: nrix...@gmail.com; php-general@lists.php.net
> Subject: Re: [PHP] templating engine options
> 
> On Tue, May 26, 2009 at 5:49 PM, Tom Worster <f...@thefsb.org> wrote:
> > thanks for taking the trouble to write your requirements. it made
> > interesting reading.
> >
> > i've questions on three points below...
> >
> >
> > On 5/25/09 6:44 PM, "Nathan Rixham" <nrix...@gmail.com> wrote:
> >
> >> XSL Templates are near perfect, built for the job, and very powerful -
> >> but time hasn't favoured them well; and until (if ever) a wide spread
> >> adoption happens something else needs to fill the gap.
> >
> > i don't know xsl well, but from what i read it seems to be about taking data
> > from one xml document and putting it into another.
> 
> Not really. The most common use may be that, but xsl can convert an
> XML document to pretty much any format you want and can even convert
> between compatible encodings. (You would lose something to try to
> convert from Chinese to Latin1, obviously, but you should be able to
> convert from Latin1 to UTF-8 or from UTF-8 to UTF-16 if desired.) It
> is even possible to go from XML to PDF. (I haven't tried it, so I
> don't know how well it works.)
> 
> [snip]
> > one thing i wasn't clear about with xsl is whether or not there's any output
> > language dependence? could i write a template to produce an sql file, or an
> > email in russian?
> 
> Exactly. The input XML document and the XSL stylesheet must both be
> valid XML, but the output can be just about anything you want.  You
> could have an XML table definition and use XSL to translate that
> structure into a valid SQL statements using that table in a specific
> SQL vendor dialect. Those could be anything as simple as generating
> CREATE TABLE statements to build a script to create a database or as
> complex as building stored procedures against those tables.
> 
> Andrew
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 

_________________________________________________________________
Drag n’ drop—Get easy photo sharing with Windows Live™ Photos.

http://www.microsoft.com/windows/windowslive/products/photos.aspx

Reply via email to