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

calculating pow of numbers and a final sum

Subject: calculating pow of numbers and a final sum
From: "Andreas Mecky" <andreasmecky@xxxxxxxx>
Date: Wed, 22 Jan 2003 10:06:09 +0100
calculating pow
Hello everybody,

I am kind of a newbie to this mailing list and I have a problem that keeps
me busy for some time now.
I am working on a code generator for some java classes.
This is my XML:

<?xml version="1.0" ?>
<logging>
  <target name="init"/>
  <target name="debug"/>
  <target name="fatal"/>
</logging>

this should result in:

public static final int INIT = 1;
public static final int DEBUG = 2;
public static final int FATAL = 4;
public static final int ALL = 8;

I can get everything working except the numbers. How can I calculate the
numbers which
are something like counter=2^(pos-1)?
This all entry is generated automatically. At this point I need either to
sum all former values
or do the same calculation as mentioned above.

Some research on google did not helped me out.

Any suggestions?

Thanx in advance

Andreas

__________________________________________________________________

Gesendet von Yahoo! Mail - http://mail.yahoo.de
Bis zu 100 MB Speicher bei http://premiummail.yahoo.de


 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.