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

Re: XSL FO: scaling graphics

Subject: Re: XSL FO: scaling graphics
From: "Nikolai Grigoriev" <grig@xxxxxxx>
Date: Thu, 4 May 2000 00:58:58 +0400
xsl fo from parent
> 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. 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')", with a function that refers to the
closest block-area ancestor of the image instead of from-parent(); but I could
not find such a function in the spec. Awaiting for clarifications from somebody
of the WG ;-).

> d) I want the graphic scaled to 50% of its natural size

See c) above ;-).

Best regards,

Nikolai Grigoriev
RenderX



 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.