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

Re: performing calculations with variables / params in

Subject: Re: performing calculations with variables / params in FO usingcertain units (mm, px, etc)
From: "J.Pietschmann" <j3322ptm@xxxxxxxx>
Date: Thu, 30 Oct 2003 22:55:55 +0100
measurements without units
SANWAL, ABHISHEK (HP-Houston) wrote:
Sample statement.
<fo:table-column column-width="{$SBWidth-$ImageWidthRender}"/>
...
Is there some way to specify a particular UNIT to be used all over so
that I can specify those values without the units appended (makes
subtraction easy)?

You don't need to worry, column-width="300mm-200mm" is a perfect legal property expression, although I'd add whitespace around the minus sign just in case.

Is there a way to have this subtraction performed with the units
present, without having to write intensive string parsing functions to
separate the values & units?

No. Measurements without units are interpreted as pixels, the treatment of which is more or less processor specific (may include bailing out, although the spec is somewhat unclear whether this is allowed).

J.Pietschmann


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.