Re: [xsl] PHP with XML/XSL in Webbrowser

Subject: Re: [xsl] PHP with XML/XSL in Webbrowser
From: Geoff <ghank@xxxxxxxxxxx>
Date: 26 Sep 2002 07:04:46 -0500
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


Current Thread