List Info

Thread: Turning off table side borders




Turning off table side borders
user name
2007-02-21 11:28:38
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:attribut
e>        
       <xsl:attribute
name="border-right-width">0pt</xsl:attribute
>        
       <xsl:attribute
name="border-left-width">0pt</xsl:attribute&
gt;        
       <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:attribut
e>
        <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&
gt;
</xsl:attribute-set>

<xsl:attribute-set name="table.properties"> 
      
        <xsl:attribute
name="border-right-style">none</xsl:attribut
e>
        <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&
gt;
</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-ta
ble-side-borders-tf3268123.html#a9085239
Sent from the docbook apps mailing list archive at
Nabble.com.


------------------------------------------------------------
---------
To unsubscribe, e-mail: docbook-apps-unsubscribelists.oasis-open.org
For additional commands, e-mail: docbook-apps-helplists.oasis-open.org


Re: Turning off table side borders
user name
2007-02-21 11:36:19
Hi 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
bobssagehill.net


----- Original Message ----- 
From: "paul_moloney" <paul_moloneyhotmail.com>
To: <docbook-appslists.oasis-open.org>
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:attribut
e>
>       <xsl:attribute
name="border-right-width">0pt</xsl:attribute
>
>       <xsl:attribute
name="border-left-width">0pt</xsl:attribute&
gt;
>       <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:attribut
e>
>        <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&
gt;
> </xsl:attribute-set>
>
> <xsl:attribute-set
name="table.properties">
>        <xsl:attribute
name="border-right-style">none</xsl:attribut
e>
>        <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&
gt;
> </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-ta
ble-side-borders-tf3268123.html#a9085239
> Sent from the docbook apps mailing list archive at
Nabble.com.
>
>
>
------------------------------------------------------------
---------
> To unsubscribe, e-mail: docbook-apps-unsubscribelists.oasis-open.org
> For additional commands, e-mail: docbook-apps-helplists.oasis-open.org
>
>
> 



------------------------------------------------------------
---------
To unsubscribe, e-mail: docbook-apps-unsubscribelists.oasis-open.org
For additional commands, e-mail: docbook-apps-helplists.oasis-open.org


Re: Turning off table side borders
user name
2007-02-21 11:56:02

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-ta
ble-side-borders-tf3268123.html#a9085789
Sent from the docbook apps mailing list archive at
Nabble.com.


------------------------------------------------------------
---------
To unsubscribe, e-mail: docbook-apps-unsubscribelists.oasis-open.org
For additional commands, e-mail: docbook-apps-helplists.oasis-open.org


Re: Turning off table side borders
user name
2007-02-21 13:24:40
Hi 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
bobssagehill.net


----- Original Message ----- 
From: "paul_moloney" <paul_moloneyhotmail.com>
To: <docbook-appslists.oasis-open.org>
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-ta
ble-side-borders-tf3268123.html#a9085789
> Sent from the docbook apps mailing list archive at
Nabble.com.
>
>
>
------------------------------------------------------------
---------
> To unsubscribe, e-mail: docbook-apps-unsubscribelists.oasis-open.org
> For additional commands, e-mail: docbook-apps-helplists.oasis-open.org
>
>
> 



------------------------------------------------------------
---------
To unsubscribe, e-mail: docbook-apps-unsubscribelists.oasis-open.org
For additional commands, e-mail: docbook-apps-helplists.oasis-open.org


[1-4]

about | contact  Other archives ( Real Estate discussion Medical topics )