Hi John,

FOP has changed a great deal since version 12, so it's hard to say what
exactly is happening.

It may just be that I'm getting tired, but I can't quite figure out what
the FO file is going to look like from your partial XML and XSL. It
would be helpful if you could send either the complete files or maybe
just the FO code for the table which isn't working correctly. You can
get the FO by running XALAN or some other XSLT processor on your XSL and
XML files without running FOP.

HTH,
Karen Lease

> John Wyman wrote:
> 
> I am outputting a centered line of text and the text in the cell
> appears to start at the end of the cell and writes into the adjacent
> cell, the data in 'three3' runs of the side of the page. This worked
> OK in .12, what did I do wrong?
> John
> xml
> <tgroup cols="3">
> <colspec colnum="1" colname="pad1" colwidth="6*" rowsep="0" colsep="0"
> align="left"/>
> <colspec colnum="2" colname="three1" colwidth="12*" rowsep="0"
> colsep="0" align="left"/>
> <colspec colnum="3" colname="pad3" colwidth="6*" rowsep="0" colsep="0"
> align="left"/>
> <colspec colnum="4" colname="three2" colwidth="9*" rowsep="0"
> colsep="0" align="left"/>
> <colspec colnum="5" colname="pad5" colwidth="11*" rowsep="0"
> colsep="0" align="left"/>
> <colspec colnum="6" colname="three3" colwidth="13*" rowsep="0"
> colsep="0" align="left"/>
> 
> <colspec colname="linepad" colnum="7" colwidth="0.8507463*"
> align="left" rowsep="0" colsep="0"/><colspec colname="line" colnum="8"
> colwidth="5.955224*" align="right" rowsep="0" colsep="0"/><tbody>
> <row><entry colname="pad1"></entry><entry colname="three1"><ccol>If
> the price is at least</ccol></entry>
> <entry colname="pad3"></entry><entry colname="three2"><ccol>But not
> more than</ccol></entry>
> <entry colname="pad5"></entry><entry colname="three3"><ccol>The amount
> of the tax is</ccol></entry>
> 
> using below xsl
> <xsl:template match="ccol">
>       <xsl:call-template name="DoBlock">
>            <xsl:with-param name="align" select="'center'"/>
>       </xsl:call-template>
>    </xsl:template>
> <xsl:template name="DoBlock">
>   <xsl:param name="margin" select="0.1" />
>   <xsl:param name="right-margin" select="0" />
>   <xsl:param name="indent" select="$margin" />
>   <xsl:param name="prefix" />
>   <xsl:param name="suffix" />
>   <xsl:param name="align" select="'start'" />
>   <xsl:param name="font" select="'Courier'" />
>   <xsl:param name="weight" select="'normal'" />
>   <xsl:param name="size" select="11" />
>   <xsl:param name="before" select="0" />
> 
>   <fo:table>
>   <fo:table-column column-number="1" column-width="{concat(67 * $cw,
> 'mm')}"/>
>   <fo:table-column column-number="2" column-width="{concat(1 * $cw,
> 'mm')}"/>
>   <fo:table-column column-number="3" column-width="{concat(7 * $cw,
> 'mm')}"/>
>   <fo:table-body>
>   <fo:table-row>
>   <fo:table-cell column-number="1">
>   <fo:block font-family="{$font}" font-size="{concat($size,'pt')}"
> font-weight="{$weight}" text-align="{$align}"
>    space-before.optimum="{concat($before,'pt')}"
> text-indent="{concat($indent * $cw,'mm')}"
> start-indent="{concat($margin * $cw,'mm')}">
>   <xsl:apply-templates/>
>   </fo:block>
>   </fo:table-cell>
>   <fo:table-cell column-number="2"/>
>   <fo:table-cell column-number="3">
>     <fo:block space-before.optimum="{concat($before,'pt')}">
>     <xsl:for-each select="descendant::line">
>        <fo:block text-align="end">
>            <fo:inline font-weight="normal"
> text-decoration="none"><xsl:value-of
> select="format-number(@id,$linenofmt)"/></fo:inline>
>        </fo:block>
>     </xsl:for-each>
>   </fo:block>
>   </fo:table-cell>
>   </fo:table-row>
>   </fo:table-body>
>   </fo:table>
>   </xsl:template>
> 
> John H. Wyman
> 5160 Darry Lane
> Dublin, OH 43016
> (614)-889-0698
> [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>
> Wyman Genealogy Site <http://www.wyman.org>
> Francis Wyman Assoc email List
> http://groups.yahoo.com/group/FrancisWymanAssoc
> Wyman Family Genealogy Forum <http://genforum.genealogy.com/wyman/>
> The Wyman Surname Message Board
> <http://www.familyhistory.com/messages/messages.asp?category=surname&forum=Wyman>
> 
> 
> 
>

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

Reply via email to