Wrox Programmer Forums
Go Back   Wrox Programmer Forums > XML > XSLT
| Search | Today's Posts | Mark Forums Read
XSLT General questions and answers about XSLT. For issues strictly specific to the book XSLT 1.1 Programmers Reference, please post to that forum instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the XSLT section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old April 17th, 2006, 02:56 PM
Registered User
Join Date: Apr 2006
Location: , , .
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Change display when printing

I'm parsing XML and creating address mailing labels using XSL FO. On the screen, I want borders to appear around each address label. But when the user prints the labels, I don't want the borders to print, since they will be printing onto paper that already has the pre-cut label stickers. Can anyone help me make the borders not display when the page is printed? Can I somehow use a different XSL when rendering the screen than when printing?
Old April 17th, 2006, 03:44 PM
mhkay's Avatar
Wrox Author
Points: 18,487, Level: 59
Points: 18,487, Level: 59 Points: 18,487, Level: 59 Points: 18,487, Level: 59
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
Join Date: Apr 2004
Location: Reading, Berks, United Kingdom.
Posts: 4,962
Thanks: 0
Thanked 292 Times in 287 Posts

I'm not an expert on XSL-FO, but the answer to the question "can I use different stylesheets to process the same source document" is YES: one could say that's the whole point of XSLT!

You can also arrange that the two stylesheets share a lot of common code (two stylesheets A and B that import a common module C), or you can use the same stylesheet with different parameters.

The only time this is a bit difficult is if you are controlling XSLT evaluation using the <?xml-stylesheet?> processing instruction.

How are you invoking the transformation?

Michael Kay
Author, XSLT Programmer's Reference and XPath 2.0 Programmer's Reference

Similar Threads
Thread Thread Starter Forum Replies Last Post
Printing Arunachalam Beginning VB 6 2 October 12th, 2006 07:44 AM
Printing uchkid Pro Visual Basic 2005 1 September 7th, 2006 03:37 AM
capturing printing settings when printing reports nikolaosk Access VBA 0 February 8th, 2005 04:14 AM
How to change the display control for Yes/No field Caz Access VBA 1 June 21st, 2004 11:55 AM
Printing NiNe ADO.NET 5 April 7th, 2004 04:28 AM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.