Ok, got it. The table in question is at the bottom.
___________________________________________________ Brian Trezise Staff Software Engineer IntelliData, Inc 22288 E Princeton Dr aurora, colorado 80018 T: 720.524.4864 [EMAIL PROTECTED] From: David Gerdt [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 12, 2008 2:29 PM To: [email protected] Subject: Re: Problem with table formatting This looks like a snippet from your XSL. Can you provide a sample of the actual *FO* file produced when your transform is run? Without the associated XML, we can't render the snippet you provide. >>> "Brian Trezise" <[EMAIL PROTECTED]> 8/12/2008 4:07 PM >>> I'm having a problem formatting table cells where FOP wants to wrap lines for every word in the cell, even though there is plenty of room for the entire contents of the cell without line wrapping. I'm building a fo:table as follows: <fo-snippet> <fo:block-container absolute-position='fixed'> <fo:block margin-top='340pt' margin-left='325pt' font-weight='bold' font-size='12pt'> <xsl:value-of select='part/spec-data/caption'/> </fo:block> </fo:block-container> <fo:block-container absolute-position='fixed'> <fo:block margin-top='365pt' margin-left='160pt' text-align='left'> <fo:table> <fo:table-column column-width='150pt'/> <fo:table-column column-width='150pt'/> <fo:table-body> <xsl:for-each select="part/spec-data/row"> <fo:table-row> <fo:table-cell> <fo:block font-size='8pt' font-weight='bold'> <xsl:value-of select='table-header'/>: </fo:block> </fo:table-cell> <fo:table-cell> <fo:block font-size='8pt'> <xsl:value-of select='table-data'/> </fo:block> </fo:table-cell> </fo:table-row> </xsl:for-each> </fo:table-body> </fo:table> </fo:block> </fo:block-container> </fo-snippet> However, when I run fop on this table, I am getting the word wrapping (see attachment for screenshot). Can somebody tell me what I'm doing wrong here? Thanks, ___________________________________________________ Brian Trezise Staff Software Engineer IntelliData, Inc 22288 E Princeton Dr aurora, colorado 80018 T: 720.524.4864 [EMAIL PROTECTED]
<?xml version="1.0" encoding="UTF-8"?> <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format"> <fo:layout-master-set> <fo:simple-page-master margin="2cm" page-width="21.0cm" page-height="29.7cm" master-name="A4-portrait"> <fo:region-body/> </fo:simple-page-master> </fo:layout-master-set> <fo:page-sequence master-reference="A4-portrait"> <fo:flow flow-name="xsl-region-body"> <fo:block-container absolute-position="fixed"> <fo:block margin-left="60pt" margin-top="20pt" font-weight="bold" font-size="15pt">C0805C101J8GACTU</fo:block> </fo:block-container> <fo:block-container absolute-position="fixed"> <fo:block margin-left="75pt" margin-top="35pt" font-size="9pt"> aka C0805C101J8GAC7800 null</fo:block> </fo:block-container> <fo:block-container absolute-position="fixed"> <fo:block margin-left="60pt" margin-top="60pt" font-weight="bold" font-size="15pt">KEMET</fo:block> </fo:block-container> <fo:block-container absolute-position="fixed"> <fo:block margin-right="75pt" margin-left="300pt" margin-top="60pt" font-size="15pt">Ceramic Chip Capacitor, 100 pF +/-5%, 10V, 0805</fo:block> </fo:block-container> <fo:block-container absolute-position="fixed"> <fo:block text-align="center" margin-top="125"> <fo:external-graphic src="test.svg"/> </fo:block> </fo:block-container> <fo:block-container absolute-position="fixed"> <fo:block font-size="12pt" font-weight="bold" margin-left="60pt" margin-top="340pt">Dimensional Data (mm)</fo:block> </fo:block-container> <fo:block-container absolute-position="fixed"> <fo:block text-align="left" margin-left="30pt" margin-top="365pt"> <fo:table> <fo:table-column column-width="90pt"/> <fo:table-column column-width="90pt"/> <fo:table-column column-width="90pt"/> <fo:table-header> <fo:table-row> <fo:table-cell> <fo:block font-weight="bold" font-size="10pt">ID</fo:block> </fo:table-cell> <fo:table-cell> <fo:block font-weight="bold" font-size="10pt">Dimensions</fo:block> </fo:table-cell> <fo:table-cell> <fo:block font-weight="bold" font-size="10pt">Tolerance</fo:block> </fo:table-cell> </fo:table-row> </fo:table-header> <fo:table-body> <fo:table-row> <fo:table-cell> <fo:block font-weight="bold" font-size="8pt">L</fo:block> </fo:table-cell> <fo:table-cell> <fo:block font-size="8pt">2.00</fo:block> </fo:table-cell> <fo:table-cell> <fo:block font-size="8pt">+/-0.20</fo:block> </fo:table-cell> </fo:table-row> <fo:table-row> <fo:table-cell> <fo:block font-weight="bold" font-size="8pt">W</fo:block> </fo:table-cell> <fo:table-cell> <fo:block font-size="8pt">1.25</fo:block> </fo:table-cell> <fo:table-cell> <fo:block font-size="8pt">+/-0.20</fo:block> </fo:table-cell> </fo:table-row> <fo:table-row> <fo:table-cell> <fo:block font-weight="bold" font-size="8pt">T</fo:block> </fo:table-cell> <fo:table-cell> <fo:block font-size="8pt">0.78mm</fo:block> </fo:table-cell> <fo:table-cell> <fo:block font-size="8pt">0.1</fo:block> </fo:table-cell> </fo:table-row> <fo:table-row> <fo:table-cell> <fo:block font-weight="bold" font-size="8pt">B</fo:block> </fo:table-cell> <fo:table-cell> <fo:block font-size="8pt">0.50</fo:block> </fo:table-cell> <fo:table-cell> <fo:block font-size="8pt">+/-0.25</fo:block> </fo:table-cell> </fo:table-row> <fo:table-row> <fo:table-cell> <fo:block font-weight="bold" font-size="8pt">S</fo:block> </fo:table-cell> <fo:table-cell> <fo:block font-size="8pt">0.75</fo:block> </fo:table-cell> <fo:table-cell> <fo:block font-size="8pt">min</fo:block> </fo:table-cell> </fo:table-row> </fo:table-body> </fo:table> </fo:block> </fo:block-container> <fo:block-container absolute-position="fixed"> <fo:block font-size="12pt" font-weight="bold" margin-left="325pt" margin-top="340pt">Specifications</fo:block> </fo:block-container> <fo:block-container absolute-position="fixed"> <fo:block text-align="left" margin-left="160pt" margin-top="365pt"> <fo:table> <fo:table-column column-width="150pt"/> <fo:table-column column-width="150pt"/> <fo:table-body> <fo:table-row> <fo:table-cell> <fo:block font-weight="bold" font-size="8pt">Application: </fo:block> </fo:table-cell> <fo:table-cell> <fo:block font-size="8pt">Standard Chip</fo:block> </fo:table-cell> </fo:table-row> <fo:table-row> <fo:table-cell> <fo:block font-weight="bold" font-size="8pt">Capacitance: </fo:block> </fo:table-cell> <fo:table-cell> <fo:block font-size="8pt">100 pF</fo:block> </fo:table-cell> </fo:table-row> <fo:table-row> <fo:table-cell> <fo:block font-weight="bold" font-size="8pt">Tolerance: </fo:block> </fo:table-cell> <fo:table-cell> <fo:block font-size="8pt">5%</fo:block> </fo:table-cell> </fo:table-row> <fo:table-row> <fo:table-cell> <fo:block font-weight="bold" font-size="8pt">Voltage: </fo:block> </fo:table-cell> <fo:table-cell> <fo:block font-size="8pt">10V</fo:block> </fo:table-cell> </fo:table-row> <fo:table-row> <fo:table-cell> <fo:block font-weight="bold" font-size="8pt">Chip Size: </fo:block> </fo:table-cell> <fo:table-cell> <fo:block font-size="8pt">0805</fo:block> </fo:table-cell> </fo:table-row> <fo:table-row> <fo:table-cell> <fo:block font-weight="bold" font-size="8pt">Temperature Coefficient: </fo:block> </fo:table-cell> <fo:table-cell> <fo:block font-size="8pt">C0G</fo:block> </fo:table-cell> </fo:table-row> <fo:table-row> <fo:table-cell> <fo:block font-weight="bold" font-size="8pt">Dissipation Factor: </fo:block> </fo:table-cell> <fo:table-cell> <fo:block font-size="8pt">0.1%</fo:block> </fo:table-cell> </fo:table-row> <fo:table-row> <fo:table-cell> <fo:block font-weight="bold" font-size="8pt">Insulation Resistance: </fo:block> </fo:table-cell> <fo:table-cell> <fo:block font-size="8pt">100 GOhm</fo:block> </fo:table-cell> </fo:table-row> <fo:table-row> <fo:table-cell> <fo:block font-weight="bold" font-size="8pt">Dielectric Strength: </fo:block> </fo:table-cell> <fo:table-cell> <fo:block font-size="8pt">25V</fo:block> </fo:table-cell> </fo:table-row> <fo:table-row> <fo:table-cell> <fo:block font-weight="bold" font-size="8pt">Termination Type: </fo:block> </fo:table-cell> <fo:table-cell> <fo:block font-size="8pt">Tin</fo:block> </fo:table-cell> </fo:table-row> <fo:table-row> <fo:table-cell> <fo:block font-weight="bold" font-size="8pt">Marking: </fo:block> </fo:table-cell> <fo:table-cell> <fo:block font-size="8pt">Unmarked</fo:block> </fo:table-cell> </fo:table-row> <fo:table-row> <fo:table-cell> <fo:block font-weight="bold" font-size="8pt">Packaging: </fo:block> </fo:table-cell> <fo:table-cell> <fo:block font-size="8pt">T&R, Plastic Tape, 7 in.</fo:block> </fo:table-cell> </fo:table-row> <fo:table-row> <fo:table-cell> <fo:block font-weight="bold" font-size="8pt">Package Quantity: </fo:block> </fo:table-cell> <fo:table-cell> <fo:block font-size="8pt">4000</fo:block> </fo:table-cell> </fo:table-row> </fo:table-body> </fo:table> </fo:block> </fo:block-container> </fo:flow> </fo:page-sequence> </fo:root>
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
