Add hex number strings given by variables in XSLT (was erroneously reported to comp.text group befor

R

Rolf Kemper

Dear All,

does have anybody have an idea how to add to number strings in xslt ?

My strings are in variables eg. '1A2' , '00F' which should sum up to '1B1'.

I may prefix the variables with 0x if nessesary.
If there is some idea to deal with leading zeros it would be even better.

Thanks a lot for your ideas and comments

Rolf
 
D

Dimitre Novatchev

Rolf Kemper said:
Dear All,

does have anybody have an idea how to add to number strings in xslt ?

My strings are in variables eg. '1A2' , '00F' which should sum up to
'1B1'.

I may prefix the variables with 0x if nessesary.
If there is some idea to deal with leading zeros it would be even better.

Thanks a lot for your ideas and comments

Rolf

Trivial to do if the transform-and-sum template from FXSL is used.

For an early example see:

http://sources.redhat.com/ml/xsl-list/2001-11/msg00831.html


Cheers,

Dimitre Novatchev
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,997
Messages
2,570,241
Members
46,831
Latest member
RusselWill

Latest Threads

Top