This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

RE: printing using a different XSL



>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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]