|
[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
>>>>> "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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








