Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

detecting XSLT capable browsers

Status
Not open for further replies.

BlueMango

Programmer
Jun 22, 2002
34
0
0
CA
I am working on a project that uses XML formatted by XSLT. If possible, we want the user's browser to recieve the XML and process it itself using the necessary XSLT files, since this will relieve a lot of strain on our server. However, the server is also capable of processing the XML itself in order to serve them in HTML form.
I need a way that the browser can decide for itself (no server-side fiddling) whether it can process the XSLT rules or not, and redirect itself to the appropriate starting point (index.html or index.xml). Once it has made this initial decision, the pages themselves will ensure that the correct file-type is retrieved.

Can anyone think of a way of doing this?

We've tried an HTML redirect page which referances an XSLT style-sheet to cause it to go somewhere else... Basically, the XSLT rewrites the whole page, including the redirect header. That didn't seem to work. It always gets caught by the HTML redirect.

The solution must not use any technologies other than standard HTML4.1 and CSS2.0 If you could do it with only HTML, that would be even better. -----------------------
"To the small part of ignorance that we arrange and classify we give the name 'knowledge'" -- Ambrose Bierce
 
Hi,

Can you set the HTML redirect to be a longer time?

Otherwise, there is no way of doing it using just HTML and CSS alone. You need at least ASP to do it, or perl or java.

Sorry

James
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top