[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

table column to fit graphic

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

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.