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

Re: printing using a different XSL

Subject: Re: printing using a different XSL
From: Jeni Tennison <mail@xxxxxxxxxxxxxxxx>
Date: Tue, 12 Sep 2000 18:55:01 +0100
xsl print media
Eric,

>Hi all.  One again I'm messing with stuff way over my head (though I
>understand more than I did a month ago!)--I appreciate all the patient
>assistance I've gotten!  When my page gets printed, it needs to look
>different than when displayed on the screen--is there a way to use a
>different XSL for printing (with IE5) than for  on screen viewing with IE5?

The xml-stylesheet processing instruction has almost exactly the same
pseudo-attributes as the HTML 'link' element has attributes, so presumably
the intended usage is something like:

<?xml-stylesheet type="text/xsl" href="screen.xsl" media="screen" ?>
<?xml-stylesheet type="text/xsl" href="print.xsl" media="print" ?>

with your browser choosing between them.  However, having tried this out
with IE5, MSXML (July), I can report that the 'media' pseudo-attribute is
resolutely ignored: the first xml-stylesheet processing instruction is used
no matter what the 'media' it declares.

Probably your best bet is to have a link from your screen version to a
'printable version' that either uses a different stylesheet or the same
stylesheet with a parameter indicating whether it's intended for screen or
print.

Sorry not to be more help,

Jeni

Jeni Tennison
http://www.jenitennison.com/


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


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.