I'm writting an application, a control panel for a web site, and it will be great if I can separe data from presentation, I know that I have to work with XML and XSL but I didn't understand how it works.
Can you give me a simple example? Let guess that a client request index.php, and I have index.xml for the data, index.xsl for the data transformation and index.php, how it works? "Geoff Hankerson" <[EMAIL PROTECTED]> escribió en el mensaje [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > > > > >Can anyone direct me to a page with xml in use? Something that can help me > >grasp what its all about. > > > > > > > > I didn't understand xml at all until I started using it . I asked > pretty much the same question as you (what is it good for?). Now I will > almost always use xml in any app I work on. > > One application that is simply wonderful is xsl transformations. This > allows you to take xml and transform it into html, wml, pdf, rtf , etc... > > What this ultimately means to me is seperation of presentation from > logic and data which makes for a very flexible and easy to maintain > application. > > I have made a php class to make a database query into xml in the form of: > <record><fieldname> value </fieldname></record> > > Now stuff I used to do that took a whole page to code nows uses about 5 > lines. This is a real world benefit for me. > > Spend some time learning about xml and you won't regret it > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php