[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: XSL - Transforming 2 XSL stylesheets from 1 XML fi

Subject: RE: XSL - Transforming 2 XSL stylesheets from 1 XML file
From: "Andrew Welch" <ajwelch@xxxxxxxxxxxxxxx>
Date: Thu, 5 May 2005 14:31:00 +0100
xsl for mobile devices
> >>>>> "Andrew" == Andrew Welch <ajwelch@xxxxxxxxxxxxxxx> writes:
>
>     >> In your case, it sounds like the medium should be sufficient -
>     >> the desktop would be selected by coding media="screen", and the
>     >> mobile device by media="handheld". You then invoke the XSLT
>     >> transformer, saying (by means of it's API) which medium to
>     >> target.
>
>     Andrew> Which mobile devices support client side transforms, and
>     Andrew> do so by detecting the media attribute?
>
> I have no idea (which is why I was mentioning invoking the
> transformer via it's API).
>
> But any agent that claims to support the xml-stylesheet PI,
> should behave like this.
> That doesn't mean to say any do (I've just tested Firefox - it doesn't
> - and Opera doesn't appear to do client-side XSLT at all).
> After all, whoever heard of a compliant web browser? <groan />

The OP was after transforming a single XML file with different
stylesheets based on the type of client device used, including mobiles.
The only way to this is to detect the user-agent server side and use the
correct stylesheet.

The idea that you can list xml-stylesheet processing instructions in the
XML each with a media type and then have the device correctly pick that
stylesheet is fantasy - what constitutes a 'handheld' anyway?  It may
have been devised with good intentions, but in practice you need one
stylesheet per device as the ability of each device varies massively.
In practice most XML content destined for mobile devices get transformed
into a proprpetary format and then goes through proprietary software
which converts it to code suitable for the phone making the request.

cheers
andrew

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.