[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: Colin Paul Adams <colin@xxxxxxxxxxxxxxxxxx>
Date: 05 May 2005 12:12:23 +0100
xml selectable xsl
>>>>> "craig" == craig webber <craigwebber@xxxxxxxxxxx> writes:

    craig> One being for a desktop and the other for a
    craig> mobile device.

    craig> I have 2 different XSL stylesheets to do this. But, I can
    craig> only assign one XSL stylesheet to the single XML file. Sure
    craig> I can duplicate the single XML file, rename it and assign
    craig> the 2nd stylesheet and create my 2nd HTML transformation.

No. You can have multiple xml-stylesheet PIs, selectable according to
the target medium, and by a named preference.

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.
-- 
Colin Paul Adams
Preston Lancashire

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.