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
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