This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: xml-stylesheet p.i. and other options
- From: "Chris Bayes" <chris at bayes dot co dot uk>
- To: <xsl-list at lists dot mulberrytech dot com>
- Date: Mon, 24 Jun 2002 19:40:17 +0100
- Subject: RE: [xsl] xml-stylesheet p.i. and other options
- Reply-to: xsl-list at lists dot mulberrytech dot com
> Chris Bayes wrote:
> >Well if he had done it properly he would have used the media="print"
> >pseudo attribute
>
> Sadly not part of wd-xsl.
It is part of the xml spec not any of the xsl specs
>
> >There is nothing stopping you having 20 xml-stylesheets if
> you want all
> >with different media types.
>
> This is interesting. How would this work in-real-life if you have an
> xml file with two stylesheet pi's - one screen and one print.
> How does
> the processor know which stylesheet to use?
The user agent should use the stylesheet that matches it's media type
If it is a print agent then it should use the media="print" stylesheet.
Or a pen plotter should use media="pen"
Ie6 is a lot better at handling the stylesheet pi but I don't know if it
uses the media="print" when you print a page. But at least if you want
to print a page you know which stylesheet to use. There are a lot of
little print hacks around from when ie was useless at printing along the
lines of 1. get the stylesheet 2. create a hidden frame 3. transform the
xml with the print stylesheet 4. hiddenFrame.print()
Ciao Chris
XML/XSL Portal
http://www.bayes.co.uk/xml
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list