This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

table column to fit graphic


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]