Re: XML
| From: | Alex Black | Date: | Wed, 03 Jan 2001 01:56:46 +0000 |
| Subject: | Re: XML | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-32446@lists.php.net to get a copy of this message | ||
> Thank you for the good introduction. Have you got some working code
> which does the exact thing you`re describing?php->XML->XSLT->HTML and
> maybe some databases too? If you had, I`d appreciate if you could send me
> something. Let me know, thanks.
I did a test project this way, and was not satisfied. I find php itself to
be a better intermediary: get the data you need into arrays, etc w/php, then
include templates for your various markup formats.
going directly to xml is extremely inefficient, and unless you're doing
actual DTD translation, I have found XSLT to be fairly useless for real
html-oriented production use. also, that only works well (and is clean) if
you're doing fairly standard "document-oriented" stuff.
XSLT is very much like CFML, obviously a performing a more specialized
function, but who wants to revert back to a special "interpreted markup"
language? ergh. There are, of course, soem cases where you will absolutely
want to use XSLT, and it will be the right choice... but for fairly
html-centric web development it's a bunch of extra hoo-ha.
anyway, my 2 cents, people disagree w/me, which is fine. but my advice: try
it on a small scale _first_. make sure it jives w/you.
:)
_alex
> Siim Einfeldt
>
>> XML directly is the IE issue you are refering to. XML is a set of rules
>> (such as HTML is) that are ment to be interperted by something. An ideal
>> setup (for a web-based application) is this:
>> 1) PHP executes code that creates XML data as it's output (instead of just
>> echo'ing it to the screen)
>> 2) XSLT (see manual) translates the XML that was generated into HTML which
>> is what is sent to the browser.
>>
>> This allows you to create a seperation between PHP code and HTML output. You
>> loose speed in the long run but it is sometimes worth it. If you are however
>> going to be talking directly with a piece of software capable of
>> understanding the XML directly, you don't need to do any translating from
>> XML to HTML.
>>
>> This is a VERY, VERY, VERY minimal overview on the issue.
>>
>> Mike
>>
>>
>> ----- Original Message -----
>> From: "Siim Einfeldt aka Itpunk" <siim_e@pshg.edu.ee>
>> To: <php-general@lists.php.net>
>> Sent: Wednesday, December 27, 2000 2:14 PM
>> Subject: [PHP] XML
>>
>>
>>>
>>> hi,
>>>
>>> I`d like to know a bit more about combining xml-php-mysql in web
>>> applications (or just sites). I`ve read somewhere that it can only be
>>> used properly starting from IE5, but I
m almost sure this
>>> isnt the
>>> case. Could someone point me to some really informative site or explain
>>> this (...topics concerning using XML) a bit?
>>>
>>>
>>> Thanks
>>> Siim Einfeldt
>>> itpunk@itpunk.com
>>>
>>>
>>>
>>> --
>>> PHP General Mailing List (http://www.php.net/)
>>> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
>>> For additional commands, e-mail: php-general-help@lists.php.net
>>> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>>>
>>>
>>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>