XSL fallback to PHP?

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View
If a browser doesnt support XSL(T) parsing, can the browser somehow be
"told" to request the parsed document from the server instead? Are
there any working examples of this?

Re: XSL fallback to PHP?

You can determine if the browser accepts XML by reading the  
$_SERVER[HTTP_ACCEPT] variable. If it accepts XML, it will also accept XSL.  
If it doesn't accept XML, just parse the XML/XSL on the server and send it  
as plain HTML to the client.


Quoted text here. Click to load it

Site Timeline