Re: adjust width of block to previous block
I am using Apache FOP version 0.95. Furthermore I am using xsl-fo to generate pdf out of Matlab (matlab generates an xml-file and I use a xsl-fo file as style sheet)
The only time I've seen a width change based on content is with a side float, and even then putting more text than the width of the graphic would simply widen the float area.
Some XSL-FO tools have an intermediate format that you might be able to exploit to determine and massage the values needed. But nothing I know of is standardized in this regard.
If your graphic's intrinsic size is maintained as metadata somewhere you could use that information to establish the width of the block, but there are no facilities in XSLT with which to do this with the actual image file.
I hope this helps, even if doesn't give you what you want.
. . . . . . . . . . . Ken
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