Re: Variables and Strings

Subject: Re: Variables and Strings
From: Norman Walsh <ndw@xxxxxxxxxx>
Date: 27 Aug 2000 10:44:13 -0400
/ skvenkat@xxxxxxx was heard to say:
| Hi,
| 
|   In DSSSL, how do you transfer a string say "2" to a variable say x(=2)

(define x 2)

|   and how can one transfer the contents of a tag element say 
| 
|   <fn>This a footnote</fn> on to a string say fn-string?

(define fn-string (data (current-node)))

Assuming <fn> is the current node.

Note that DSSSL is side-effect free. Variables are immutable. You can't
say (setq x (+ x 2)). 

                                        Be seeing you,
                                          norm

-- 
Norman Walsh <ndw@xxxxxxxxxx> | Graduate school is where you learn to
http://nwalsh.com/            | call a spade a leveraged
                              | tactile-feedback geomass delivery
                              | system.--Martha Koester


 DSSSList info and archive:  http://www.mulberrytech.com/dsssl/dssslist


Current Thread
  • Variables and Strings
    • skvenkat - Sat, 26 Aug 2000 09:37:30 -0400 (EDT)
      • Norman Walsh - Sun, 27 Aug 2000 11:09:22 -0400 (EDT) <=
      • <Possible follow-ups>
      • skvenkat - Mon, 28 Aug 2000 01:54:25 -0400 (EDT)
      • skvenkat - Tue, 29 Aug 2000 09:52:28 -0400 (EDT)