|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] 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@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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








