Thanks Andreas.  That worked perfectly.

I have one other problem.  The way make it so that the items print 3 across is 
by putting the following inside a "for" loop (the code has been stripped down 
to make it more legible):

   <fo:table-cell>               
    <fo:block>
     <xsl:apply-templates select="item"/>     
    </fo:block>
   </fo:table-cell>
   <fo:table-cell>                  
    <fo:block>
        <xsl:value-of select="following-sibling::item[1]"/>     
    </fo:block>
   </fo:table-cell>
   <fo:table-cell>                  
    <fo:block>
     <xsl:value-of select="following-sibling::item[2]"/>   
    </fo:block>
   </fo:table-cell>
  </fo:table-row>

I use "apply-templates" for the row X, col 1 item, but I have to use "value-of" 
on the second and third items in the row.

This is satisfactory for getting the text, but there are some formatting tags 
within the <item> tags which are implemented when I use "apply-templates" but 
which are ignored by "value-of". 

 What I would really like to use is something like:

    <xsl:apply-templates select="following-sibling::item[1]"/>

but it doesn't work, because xslfo won't let me create a template of the form

<xsl:template match="following-sibling::item[1]">  
      <xsl:apply-templates/>
</xsl:template>

as following-sibling:: is not allowed within "match"s attribute value.

Anybody have any ideas what I can do here.

Cheers

Jon


-----Original Message-----
From: Andreas L. Delmelle [mailto:[EMAIL PROTECTED]
Sent: Monday, November 22, 2004 10:13 AM
To: [EMAIL PROTECTED]
Subject: RE: Question about full page tables


> -----Original Message-----
> From: Jon Steeves [mailto:[EMAIL PROTECTED]
> 
Hi,

>  
> The problem I'm having is each item has a different amount of 
> text so that some rows are thinner than others.  Can anyone help me?
>  

IIUC, the best way to solve this is by setting the row-height explicitly to the 
height necessary for the item with the largest content. If the row that 
contains the largest item is actually 20mm in height, set them all to 20mm, like

<fo:table ...>
  ...
  <fo:table-body ...>
    <fo:table-row height="20mm">
    ...

Use the 'display-align' property on the individual fo:table-cells to make sure 
the smaller items are neatly centered, if necessary.

Hope this helps!

Greetz,

Andreas


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to