Wrox Programmer Forums
Go Back   Wrox Programmer Forums > XML > XSLT
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 June 4th, 2014, 01:01 PM
Authorized User
Join Date: Mar 2014
Posts: 26
Thanks: 2
Thanked 0 Times in 0 Posts
Default attribute set for printing to printer


I'm experimenting with attribute-sets. I've got the following attribute-set for my table borders:

<xsl:attribute-set name="table_light_border">
<xsl:attribute name="border">1em</xsl:attribute>
<xsl:attribute name="bordercolor">#D1CACA</xsl:attribute>
<xsl:attribute name="cellspacing">0</xsl:attribute>
<xsl:attribute name="cellpadding">1</xsl:attribute>

As you can see, the border color is set to grey. But when I print (either to my printer or to PDF), the borders print out black. Is there any such attribute tag that specifies settings specifically for printing?
Old June 4th, 2014, 01:18 PM
mhkay's Avatar
Wrox Author
Join Date: Apr 2004
Posts: 4,962
Thanks: 0
Thanked 292 Times in 287 Posts

It's not clear to me whether you are generating HTML, or XSL-FO, or some other presentation vocabulary. Whichever it is, I think your problem is not an XSLT problem, but a problem in understanding the semantics of the target vocabulary. To put it another way, if you don't know how to generate a particular output from your stylesheet, that's an XSLT problem, but if you don't know what output you want your stylesheet to generate, that isn't.
Michael Kay
Author, XSLT 2.0 and XPath 2.0 Programmer\'s Reference
Old June 4th, 2014, 01:44 PM
Authorized User
Join Date: Mar 2014
Posts: 26
Thanks: 2
Thanked 0 Times in 0 Posts

Ok, so this isn't an XSLT problem.
Old June 10th, 2014, 03:48 PM
Authorized User
Join Date: May 2014
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts

Yes this is not XSLT problem.

Similar Threads
Thread Thread Starter Forum Replies Last Post
Printing With Dot Matrix Printer BluefoxBoy Beginning VB 6 0 November 27th, 2013 03:15 AM
Console Based Printing to Printer jaybinod BOOK: Professional C#, 2nd and 3rd Editions 0 December 26th, 2005 07:06 AM
Printing worksheet with printer tray # 3 shamigc Excel VBA 2 July 23rd, 2004 02:17 PM
Printing with default printer lletnek Beginning VB 6 1 March 4th, 2004 06:26 PM
Printing directly to a printer Louisa VB.NET 2002/2003 Basics 4 January 16th, 2004 09:26 AM

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