This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
table column to fit graphic
- To: XSL-List at lists dot mulberrytech dot com
- Subject: [xsl] table column to fit graphic
- From: "Lisa Rupe" <LRupe at questia dot com>
- Date: Mon, 9 Jul 2001 17:14:49 -0500
- Reply-To: xsl-list at lists dot mulberrytech dot com
Hi,
I'm a xslfo newbie. I want to put the figure in one column of a table and
the text in the other. The graphic side of the column should be as wide as
the graphic and the text side the remaining width. Since I don't have the
width of the graphic as an attribute value, I'm not sure how to do this.
Thank you!
Lisa
Sample XML:
<p>This paragraph has an inline figure<fig><image src
="filename.jpg"/>figure caption</fig></p>
Partial XSL:
<xsl:when test="child::fig">
<fo:table width="3.875in" >
<fo:table-column column-width="auto"/>
<fo:table-column column-width="0.125in"/>
<fo:table-column column-width="auto"/>
<fo:table-body>
<fo:table-row>
<fo:table-cell>
<xsl:for-each select="fig">
<fo:block><xsl:apply-templates/></fo:block>
</xsl:for-each>
</fo:table-cell>
<fo:table-cell></fo:table-cell>
<fo:table-cell>
<fo:block ><xsl:apply-templates/></fo:block>
</fo:table-cell>
</fo:table-row>
</fo:table-body>
</fo:table>
</xsl:when>
<><><><><><><><><><><><><><><><><>
Lisa Rupe lrupe@questia.com
XML Specialist 713 358-2696 voice
Questia Media, Inc. 713 358-2990 fax
<><><><><><><><><><><><><><><><><>
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list