[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: PHP with XML/XSL in Webbrowser
I think you want php to do the xslt transformation and send that to the browser. Check out the Php manual's documentation on XSLT here: http://www.us.php.net/manual/en/ref.xslt.php The xslt_process function does most of the work. You could have the browser do the xslt transformation but readers of your site would need a modern browser like IE6 or Mozilla for it to work. If you make php do it it will work for everyone. On Thu, 2002-09-26 at 02:23, Martin Gundersen wrote: > Hi, > I've created a homepage using XML/XSL (at least I think so - it works, and > it looks OK :-) ). Since this is a webpage it is "parsed/rendered" by the > browser (i.e.Internet Explorer). > Now I want to add PHP-scripting to the page (guestbook etc.), but I can't > get it to work. > PHP needs dot-PHP-extensions on the files, and Internet Explorer (or the > webserver?) needs dot-XML-extension to parse/render it as XML with the > XSL-file. > I've added PHP-scripting to the XSL file, but when I call the XML file the > scripting is ignored. > If I rename the .XML fila to .PHP I get an errormessage "Parse error" (from > PHP or Apache I think) > > I'm new to all this (XML, XSL and PHP) and some terms might be wrong. Take > a look at www.fagu.net/xml/fagu.xml to see how it works. > > Thanks in advance for any help! > > Regards > Martin Gundersen > martin@xxxxxxxxxxxxx > Oslo, Norway > > XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list > XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|