Here is a simple XSL output buffer class. Whenever you need to output something (to be later transformed) just call addXMLData(). When you are done adding your content, load a template then outputXSL() the data. If you need to output error messages while dubugging, just echo like normal. It will not interfere with the transformation. Just remember to maintain valid XML syntax to the data you add. If it is in an incorrect format, you will have problems. PS> Ignore loadTemplate(). Feel free to re-implement this as you see fit. Mike ----- Original Message ----- From: "Siim Einfeldt aka Itpunk" <[EMAIL PROTECTED]> To: "Michael Bell" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Saturday, December 30, 2000 10:33 AM Subject: Re: [PHP] XML > > 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. > > 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" <[EMAIL PROTECTED]> > > To: <[EMAIL PROTECTED]> > > 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 isn`t the > > > case. Could someone point me to some really informative site or explain > > > this (...topics concerning using XML) a bit? > > > > > > > > > Thanks > > > Siim Einfeldt > > > [EMAIL PROTECTED] > > > > > > > > > > > > -- > > > PHP General Mailing List (http://www.php.net/) > > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > > For additional commands, e-mail: [EMAIL PROTECTED] > > > To contact the list administrators, e-mail: [EMAIL PROTECTED] > > > > > > > > > >
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]