|
View:
New views
4 Messages
—
Rating Filter:
Alert me
|
|
|
Turning off table side bordersI've added the following to my customized layer (I realise it's overkill, but I'm not sure of the relationship between table.properties and table.table.properties, or if table.cell.properties overrides them or is overridden by them):
<xsl:attribute-set name="table.table.properties"> <xsl:attribute name="border-right-style">none</xsl:attribute> <xsl:attribute name="border-right-width">0pt</xsl:attribute> <xsl:attribute name="border-left-width">0pt</xsl:attribute> <xsl:attribute name="border-left-style">none</xsl:attribute> </xsl:attribute-set> <xsl:attribute-set name="table.cell.properties"> <xsl:attribute name="border-right-style">none</xsl:attribute> <xsl:attribute name="border-left-style">none</xsl:attribute> <xsl:attribute name="border-right-width">0pt</xsl:attribute> <xsl:attribute name="border-left-width">0pt</xsl:attribute> </xsl:attribute-set> <xsl:attribute-set name="table.properties"> <xsl:attribute name="border-right-style">none</xsl:attribute> <xsl:attribute name="border-left-style">none</xsl:attribute> <xsl:attribute name="border-right-width">0pt</xsl:attribute> <xsl:attribute name="border-left-width">0pt</xsl:attribute> </xsl:attribute-set> Overkill or not, in any case, in PDF output tables still has side borders. Can anyone tell me where I'm going wrong? Thanks, P. |
|
|
Re: Turning off table side bordersHi Paul,
The template named 'table.frame' is called after the table.table.properties attribute-set is applied. It processes the table @frame attribute to choose the table border style, and CALS defaults to 'all'. Since you are setting your own borders, you could just make table.frame an empty template in your customization to turn it off. Bob Stayton Sagehill Enterprises DocBook Consulting bobs@... ----- Original Message ----- From: "paul_moloney" <paul_moloney@...> To: <docbook-apps@...> Sent: Wednesday, February 21, 2007 9:28 AM Subject: [docbook-apps] Turning off table side borders > > I've added the following to my customized layer (I realise it's overkill, > but > I'm not sure of the relationship between table.properties and > table.table.properties, or if table.cell.properties overrides them or is > overridden by them): > > <xsl:attribute-set name="table.table.properties"> > <xsl:attribute name="border-right-style">none</xsl:attribute> > <xsl:attribute name="border-right-width">0pt</xsl:attribute> > <xsl:attribute name="border-left-width">0pt</xsl:attribute> > <xsl:attribute name="border-left-style">none</xsl:attribute> > </xsl:attribute-set> > > <xsl:attribute-set name="table.cell.properties"> > <xsl:attribute name="border-right-style">none</xsl:attribute> > <xsl:attribute name="border-left-style">none</xsl:attribute> > <xsl:attribute name="border-right-width">0pt</xsl:attribute> > <xsl:attribute name="border-left-width">0pt</xsl:attribute> > </xsl:attribute-set> > > <xsl:attribute-set name="table.properties"> > <xsl:attribute name="border-right-style">none</xsl:attribute> > <xsl:attribute name="border-left-style">none</xsl:attribute> > <xsl:attribute name="border-right-width">0pt</xsl:attribute> > <xsl:attribute name="border-left-width">0pt</xsl:attribute> > </xsl:attribute-set> > > Overkill or not, in any case, in PDF output tables still has side > borders. > Can anyone tell me where I'm going wrong? > > Thanks, > > P. > -- > View this message in context: > http://www.nabble.com/Turning-off-table-side-borders-tf3268123.html#a9085239 > Sent from the docbook apps mailing list archive at Nabble.com. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: docbook-apps-unsubscribe@... > For additional commands, e-mail: docbook-apps-help@... > > > --------------------------------------------------------------------- To unsubscribe, e-mail: docbook-apps-unsubscribe@... For additional commands, e-mail: docbook-apps-help@... |
|
|
Re: Turning off table side bordersThanks Bob; that worked for the border around the table. However, the left/right hand borders of the cells are still there (table now looks like a tic-tac-toe grid). Is there another relevant template I need to override so that table.cell.properties is applied to each cell? Regards, P. |
|
|
Re: Turning off table side bordersHi Paul,
table.cell.properties is a template, not an attribute-set. You need to customize the template, which is in fo/table.xsl. The colsep value is inherited from the default for CALS table, so you need to override that. Bob Stayton Sagehill Enterprises DocBook Consulting bobs@... ----- Original Message ----- From: "paul_moloney" <paul_moloney@...> To: <docbook-apps@...> Sent: Wednesday, February 21, 2007 9:56 AM Subject: Re: [docbook-apps] Turning off table side borders > > > Bob Stayton wrote: >> >> The template named 'table.frame' is called after the >> table.table.properties >> attribute-set is applied. It processes the table @frame attribute to >> choose the table border style, and CALS defaults to 'all'. Since you >> are >> setting your own borders, you could just make table.frame an empty >> template >> in your customization to turn it off. >> > > Thanks Bob; that worked for the border around the table. However, the > left/right hand borders of the cells are still there (table now looks > like a > tic-tac-toe grid). > > Is there another relevant template I need to override so that > table.cell.properties is applied to each cell? > > Regards, > > P. > > -- > View this message in context: > http://www.nabble.com/Turning-off-table-side-borders-tf3268123.html#a9085789 > Sent from the docbook apps mailing list archive at Nabble.com. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: docbook-apps-unsubscribe@... > For additional commands, e-mail: docbook-apps-help@... > > > --------------------------------------------------------------------- To unsubscribe, e-mail: docbook-apps-unsubscribe@... For additional commands, e-mail: docbook-apps-help@... |
| Free embeddable forum powered by Nabble | Forum Help |