One advantage of adding XSL is flexibility in format. You could do this:

Database > PHP > XML

Then use XSL to transform the XML document into multiple formats: HTML, RSS feed, CSV, PDF, plain text, etc. This would be useful if you want to let Web visitors download a page in different formats, or if you need to provide the same information to different users in different formats.

If you ONLY want to produce HTML files, then XSL may not be worth the extra effort. Just stick with Database > PHP > HTML.

Kelly

-----Original Message-----
From: web400-bounces@xxxxxxxxxxxx [mailto:web400-bounces@xxxxxxxxxxxx] On Behalf Of TAllen@xxxxxxxxxxxx
Sent: Wednesday, January 20, 2010 8:49 AM
To: Web Enabling the AS400 / iSeries
Subject: Re: [WEB400] Php and XSL

Unless the data in your database is XML, I don't see why you'd want or need
to use XSL. You'd be adding another level of complexity. And the ultimate
product would be HTML. So, you'd be doing this:
database -> SQL -> XML -> XSL -> HTML
instead of this:
database -> SQL -> HTML

Either way you'll still need to use PHP/SQL to access the database.

Thanks,
Todd Allen
EDPS
Electronic Data Processing Services
tallen@xxxxxxxxxxxx




David FOXWELL
<David.FOXWELL@ag
ipi.com> To
Sent by: Web Enabling the AS400 / iSeries
web400-bounces@mi <web400@xxxxxxxxxxxx>
drange.com cc

Subject
2010-01-20 09:32 Re: [WEB400] Php and XSL


Please respond to
Web Enabling the
AS400 / iSeries
<web400@midrange.
com>






-----Message d'origine-----
[mailto:web400-bounces@xxxxxxxxxxxx] De la part de TAllen@xxxxxxxxxxxx

I'm not following you here. XSL is used to transform an XML
document to another form, such as HTML. What would you be
using as your source to translate? The final document would
ultimately be HTML since that is what the browser expects.
XSL would be add another layer and slow things down a bit.

I think I would have to convert my mysql data to xml first. I'm not too
concerned about performance. Its a case of using my XSL skills to do my web
site, or relying on my lack of php skills and not doing my website. At the
moment, I have php reading from a mysql database and generating HTML. Now I
want to generate HTML with XSL/XML. I was wondering if I could mix the two
(php and xsl) but maybe that's not possible.






This communication and any transmitted documents are intended to be confidential. If there is a problem with this transmission, please contact the sender. If the reader of this message is not the intended recipient, or the employee or agent responsible to deliver it to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited.


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.