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

performing calculations with variables / params in FO

Subject: performing calculations with variables / params in FO using certain units (mm, px, etc)
From: "SANWAL, ABHISHEK (HP-Houston)" <abhishek.sanwal@xxxxxx>
Date: Thu, 30 Oct 2003 11:41:50 -0600
fo calculations
Sample statement.

<fo:table-column column-width="{$SBWidth-$ImageWidthRender}"/>

This one place where I am using variables to define widths for FO table
columns

(I am primarily using FO tables and nested tables for laying out my
document)

QUESTION:

If I am specifying those variables as, 300mm and 200mm respectively I
suppose there will be a problem in trying to subtract them with the
units present.

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)?

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? 

FYI - We are using a licensed version of Apoc FO Renderer
(www.chive.com)
and .NET System.Xml.Xsl classes. ( derivative from MSXML 4.0)

Please do let me know what you think.

Thanks,

Abhishek Sanwal
HP - Houston Campus
abhishek.sanwal@xxxxxx


 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.