This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: XSL FO: scaling graphics
Nikolai Grigoriev writes:
> > c) I want the graphic to occupy 80% of the width of the enclosing box:
> >
> > <fo:external-graphic src="foo" content-width="90%"/>
>
> NO. A quote from the draft [7.12.3 "content-width"]: "If the value is a
> percentage, the value of this property is the percentage applied to the
> intrinsic width". You get 90% of the original width, not of the surrounding
> block's.
oh DANG. back to the drawing board.
> After a thorough search, I still cannot find any evident way of
> achieving what you are asking for. Probably, there should be something like
> content-width="0.8 * from-parent('width')",
sigh. I really dont want to have to play a game like that
surely "set the graphic so that it scales up or down to fit the page
width" is a very common requirement?
Sebastian
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list