AW: AW: [docbook-apps] Centered table cells

2016-02-05 Thread Kallauch, Benjamin (EEIN/5)
Dear all

Shame on me. Long time ago it seems that I have customized the 
"table.cell.block.properties" template and pimped it with a fixed 'start' value.

My big excuse to the group and wasting your time. Next time I promise to be 
more thorough before posting problems. :-)

Thanks
Ben

Von: Kallauch, Benjamin (EEIN/5)
Gesendet: Freitag, 5. Februar 2016 08:57
An: Docbook
Betreff: AW: AW: [docbook-apps] Centered table cells


Hi Bob, dear all



you say, the block inside the cell may reset the text-align attribute. This is 
indeed the case in my fo-export. Here is a code snippet, where you can see, 
that the cell has got the text-align attribute set correctly to 'center', but 
then the following child block element resets it to 'start'.





content here 
should be centered





Second, what confuses me is that a "text-align" attribute is not specified 
within a  element in FO as far as I know. So, text-align should 
not even show up within fo:table cell, in my eyes.



By the way, there is no difference whether I use a  inside the  
element or nor. The only (not remarkable) difference is a further fo:block 
child element within the fo:block above.



FOP version 1.1

XSL stylesheets v. 1.78.1



Thanks a lot for your help.



regards

Benjamin





-Ursprüngliche Nachricht-
Von: Bob Stayton [mailto:b...@sagehill.net]
Gesendet: Donnerstag, 4. Februar 2016 18:18
An: Kallauch, Benjamin (EEIN/5); Docbook
Betreff: Re: AW: [docbook-apps] Centered table cells



The text-align property is an inherited property in FO, so setting it on

the cell should center its content unless the block inside the cell

resets the text-align property.  Are you using para inside the cell, and

does the para's fo:block have a text-align property on it?



Also, what is the FO processor and version?



Bob Stayton

Sagehill Enterprises

b...@sagehill.net<mailto:b...@sagehill.net>



On 2/4/2016 7:21 AM, Kallauch, Benjamin (EEIN/5) wrote:

> Dear Ron,

>

> it's about centering only the content/text within a single or more cells.

>

> regards,

> Ben

>

> -Ursprüngliche Nachricht-

> Von: Ron Catterall [mailto:r...@catterall.net]

> Gesendet: Donnerstag, 4. Februar 2016 16:01

> An: Kallauch, Benjamin (EEIN/5); Docbook

> Betreff: Re: [docbook-apps] Centered table cells

>

> Is your problem centering the whole table, or just the content of each cell

>

> On 02/04/2016 08:57 AM, Kallauch, Benjamin (EEIN/5) wrote:

>> Dear community

>> I encountered a problem using XSL --> FO where I can't get centered

>> table cells (horizontally). In my opinion the cause is in a false

>> fo-structure, where the 'text-align' attribute is set in the

>> fo:table-cell element rather than in the fo:block child element.

>> The problem is maybe well known and solved long ago. Please, forgive me,

>> but I feel overwhelmed by the huge amount of hits when searching the

>> group. Can anyone please direct me to a solution, if there is any?

>> Thanks and best regards,

>> Benjamin

>


AW: AW: [docbook-apps] Centered table cells

2016-02-04 Thread Kallauch, Benjamin (EEIN/5)
Hi Bob, dear all



you say, the block inside the cell may reset the text-align attribute. This is 
indeed the case in my fo-export. Here is a code snippet, where you can see, 
that the cell has got the text-align attribute set correctly to 'center', but 
then the following child block element resets it to 'start'.





content here 
should be centered





Second, what confuses me is that a "text-align" attribute is not specified 
within a  element in FO as far as I know. So, text-align should 
not even show up within fo:table cell, in my eyes.



By the way, there is no difference whether I use a  inside the  
element or nor. The only (not remarkable) difference is a further fo:block 
child element within the fo:block above.



FOP version 1.1

XSL stylesheets v. 1.78.1



Thanks a lot for your help.



regards

Benjamin





-Ursprüngliche Nachricht-
Von: Bob Stayton [mailto:b...@sagehill.net]
Gesendet: Donnerstag, 4. Februar 2016 18:18
An: Kallauch, Benjamin (EEIN/5); Docbook
Betreff: Re: AW: [docbook-apps] Centered table cells



The text-align property is an inherited property in FO, so setting it on

the cell should center its content unless the block inside the cell

resets the text-align property.  Are you using para inside the cell, and

does the para's fo:block have a text-align property on it?



Also, what is the FO processor and version?



Bob Stayton

Sagehill Enterprises

b...@sagehill.net



On 2/4/2016 7:21 AM, Kallauch, Benjamin (EEIN/5) wrote:

> Dear Ron,

>

> it's about centering only the content/text within a single or more cells.

>

> regards,

> Ben

>

> -Ursprüngliche Nachricht-

> Von: Ron Catterall [mailto:r...@catterall.net]

> Gesendet: Donnerstag, 4. Februar 2016 16:01

> An: Kallauch, Benjamin (EEIN/5); Docbook

> Betreff: Re: [docbook-apps] Centered table cells

>

> Is your problem centering the whole table, or just the content of each cell

>

> On 02/04/2016 08:57 AM, Kallauch, Benjamin (EEIN/5) wrote:

>> Dear community

>> I encountered a problem using XSL --> FO where I can't get centered

>> table cells (horizontally). In my opinion the cause is in a false

>> fo-structure, where the 'text-align' attribute is set in the

>> fo:table-cell element rather than in the fo:block child element.

>> The problem is maybe well known and solved long ago. Please, forgive me,

>> but I feel overwhelmed by the huge amount of hits when searching the

>> group. Can anyone please direct me to a solution, if there is any?

>> Thanks and best regards,

>> Benjamin

>


Re: AW: [docbook-apps] Centered table cells

2016-02-04 Thread Ron Catterall
I have no problem centering content of cells for Docbook 5.1 using 
Oxygen 17.1 with docbook-xsl-ns-1.79.1 (or 1.79.0)


I do NOT implement the extensions - this might possibly be relevant.


Just for the record I do have some table customization but these do not 
appear to be relevant)  These I do implement:












  true





0.5em
1.0em
2.0em
0.5em
1.0em
2.0em
auto





  true





  true


  

  
  
  http://docbook.sourceforge.net/xmlns/l10n/1.0;>

  

  
  


  
  

  
  


  

  
  
  


On 02/04/2016 09:21 AM, Kallauch, Benjamin (EEIN/5) wrote:

Dear Ron,

it's about centering only the content/text within a single or more cells.

regards,
Ben

-Ursprüngliche Nachricht-
Von: Ron Catterall [mailto:r...@catterall.net]
Gesendet: Donnerstag, 4. Februar 2016 16:01
An: Kallauch, Benjamin (EEIN/5); Docbook
Betreff: Re: [docbook-apps] Centered table cells

Is your problem centering the whole table, or just the content of each cell

On 02/04/2016 08:57 AM, Kallauch, Benjamin (EEIN/5) wrote:

Dear community
I encountered a problem using XSL --> FO where I can't get centered
table cells (horizontally). In my opinion the cause is in a false
fo-structure, where the 'text-align' attribute is set in the
fo:table-cell element rather than in the fo:block child element.
The problem is maybe well known and solved long ago. Please, forgive me,
but I feel overwhelmed by the huge amount of hits when searching the
group. Can anyone please direct me to a solution, if there is any?
Thanks and best regards,
Benjamin




--
Ron Catterall Ph.D, DSc
r...@catterall.net

-
To unsubscribe, e-mail: docbook-apps-unsubscr...@lists.oasis-open.org
For additional commands, e-mail: docbook-apps-h...@lists.oasis-open.org



Re: AW: [docbook-apps] Centered table cells

2016-02-04 Thread Bob Stayton
The text-align property is an inherited property in FO, so setting it on 
the cell should center its content unless the block inside the cell 
resets the text-align property.  Are you using para inside the cell, and 
does the para's fo:block have a text-align property on it?


Also, what is the FO processor and version?

Bob Stayton
Sagehill Enterprises
b...@sagehill.net

On 2/4/2016 7:21 AM, Kallauch, Benjamin (EEIN/5) wrote:

Dear Ron,

it's about centering only the content/text within a single or more cells.

regards,
Ben

-Ursprüngliche Nachricht-
Von: Ron Catterall [mailto:r...@catterall.net]
Gesendet: Donnerstag, 4. Februar 2016 16:01
An: Kallauch, Benjamin (EEIN/5); Docbook
Betreff: Re: [docbook-apps] Centered table cells

Is your problem centering the whole table, or just the content of each cell

On 02/04/2016 08:57 AM, Kallauch, Benjamin (EEIN/5) wrote:

Dear community
I encountered a problem using XSL --> FO where I can't get centered
table cells (horizontally). In my opinion the cause is in a false
fo-structure, where the 'text-align' attribute is set in the
fo:table-cell element rather than in the fo:block child element.
The problem is maybe well known and solved long ago. Please, forgive me,
but I feel overwhelmed by the huge amount of hits when searching the
group. Can anyone please direct me to a solution, if there is any?
Thanks and best regards,
Benjamin




-
To unsubscribe, e-mail: docbook-apps-unsubscr...@lists.oasis-open.org
For additional commands, e-mail: docbook-apps-h...@lists.oasis-open.org



AW: [docbook-apps] Centered table cells

2016-02-04 Thread Kallauch, Benjamin (EEIN/5)
Dear Ron,

it's about centering only the content/text within a single or more cells.

regards,
Ben

-Ursprüngliche Nachricht-
Von: Ron Catterall [mailto:r...@catterall.net] 
Gesendet: Donnerstag, 4. Februar 2016 16:01
An: Kallauch, Benjamin (EEIN/5); Docbook
Betreff: Re: [docbook-apps] Centered table cells

Is your problem centering the whole table, or just the content of each cell

On 02/04/2016 08:57 AM, Kallauch, Benjamin (EEIN/5) wrote:
> Dear community
> I encountered a problem using XSL --> FO where I can't get centered
> table cells (horizontally). In my opinion the cause is in a false
> fo-structure, where the 'text-align' attribute is set in the
> fo:table-cell element rather than in the fo:block child element.
> The problem is maybe well known and solved long ago. Please, forgive me,
> but I feel overwhelmed by the huge amount of hits when searching the
> group. Can anyone please direct me to a solution, if there is any?
> Thanks and best regards,
> Benjamin

-- 
Ron Catterall Ph.D, DSc
r...@catterall.net

-
To unsubscribe, e-mail: docbook-apps-unsubscr...@lists.oasis-open.org
For additional commands, e-mail: docbook-apps-h...@lists.oasis-open.org