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

RE: RE: xslt and bitwise operations

Subject: RE: RE: xslt and bitwise operations
From: "Clapham, Paul" <pclapham@xxxxxxxxxxxxx>
Date: Wed, 10 Jan 2001 15:48:56 -0800
xsl bitwise
Not directly, but it does support the arithmetic operations "div" and "mod"
that you can use to simulate bitwise calculations.  For example, to extract
the low-order bit from x you could use "x mod 2", and to extract the bit to
the left of that you could use "floor(x div 2) mod 2" and like that.

Extracting more than one bit at a time using a mask (e.g. "x and 17") is
Left As An Exercise For The Student.

PC2

-----Original Message-----
From: Hahn, Kimberly [mailto:Kim.Hahn@xxxxxxxxxx]

Does anyone know if XSLT supports bitwise calculations (ex. '2 and 34'
evaluates to 2 or True)?  From what I have been able to tell 'and' and 'or'
expressions do not apply bitwise operations.  Are there other functions
available that do this?

 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.