[xsl] table column to fit graphic

Subject: [xsl] table column to fit graphic
From: "Lisa Rupe" <LRupe@xxxxxxxxxxx>
Date: Mon, 9 Jul 2001 17:14:49 -0500
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!

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"/>
        <xsl:for-each select="fig">
           <fo:block ><xsl:apply-templates/></fo:block>

Lisa Rupe                  lrupe@xxxxxxxxxxx
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

Current Thread