xsl-list
[Top] [All Lists]

Re: XSL - Transforming 2 XSL stylesheets from 1 XML file

2005-05-05 04:12:23
"craig" == craig webber <craigwebber(_at_)hotmail(_dot_)com> 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

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--