[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: "Chris Bayes" <Chris@xxxxxxxxxxx>
Date: Wed, 13 Sep 2000 19:16:59 +0100
changestylesheet.js
>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?
>Thanks.  Eric

Eric,
What you want to do seems reasonable. It might be better to change the print
button to open a new window with the print formatted stuff and print that.
Call it a print preview ;-)
Using the changeStylesheet.js change it so that instead of opening document
do

newWin = window.open("about:blank", "the attributes for no buttons nav menu
etc")
newDoc = newWin.document
newDoc.write etc
newWin.print()

Note there is also a media attribute on the <?stylesheet pi


Ciao Chris

XML/XSL Portal
http://www.bayes.co.uk/xml


 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.