Re: [xsl] XSL - Transforming 2 XSL stylesheets from 1 XML file

Subject: Re: [xsl] XSL - Transforming 2 XSL stylesheets from 1 XML file
From: Colin Paul Adams <colin@xxxxxxxxxxxxxxxxxx>
Date: 05 May 2005 14:28:46 +0100
>>>>> "Craig" == craig webber <craigwebber@xxxxxxxxxxx> writes:

    Craig> In my case I'm using an XDA II. it uses Windows Mobile
    Craig> Browser v3. it does not support a client side
    Craig> transform. Therefore by doing a server-side transform and
    Craig> sending a plain HTML file down the wire the device is able
    Craig> see the results and so would any other device that supports
    Craig> simple HTML.

    Craig> Are you suggesting that I could have 2 stylesheets defined
    Craig> on 1 xml document? One for Desktop and one for Mobile

Yes.

    Craig> device? And that the relevant browser would sniff out the
    Craig> correct stylesheet (media attribute) to use?

It won't, because it doesn't support client-side transformations
(according to your paragraph that I cite at the top of this message).

So I am suggesting, if your XSLT processor supports this (I can't give
you a comprehensive list of which transformers support this - I know
gestalt does :-), and Saxon 8 does from it's Java API, but not from
the command-line, if I remember correctly), that you do
a server-side transformation, passing the target media value to the
transformer via it's API.
-- 
Colin Paul Adams
Preston Lancashire

Current Thread