Subject: Re: Global variable From: "G. Ken Holman" <gkholman@xxxxxxxxxxxxxxxxxxxx> Date: Mon, 01 Mar 1999 12:54:27 -0500 |
At 99/03/01 10:35 -0500, J-P Theberge wrote: >It seem theres is no set! in Dsssl. Correct, there isn't one. >Is there a way to define a global variable from within a function? No, DSSSL is side-effect free, therefore there are no globals. You can calculate and bind values to variables (a bit of a misnomer since they can't vary!) within a given (let) scope, you can bind a fixed value to a top level variable, but you can't change the value of a variable once bound. If you want something calculated from the tree, you need to calculate it within each element rule. I hope this helps (even if it isn't the answer you were looking for). ................. Ken -- G. Ken Holman mailto:gkholman@xxxxxxxxxxxxxxxxxxxx Crane Softwrights Ltd. http://www.CraneSoftwrights.com/d/ Box 266, Kars, Ontario CANADA K0A-2E0 +1(613)489-0999 (Fax:-0995) Website: XSL/XML/DSSSL/SGML services outline, XSL/DSSSL shareware, stylesheet resource library, conference training schedule, commercial stylesheet training materials, on-line XSL CBT. DSSSList info and archive: http://www.mulberrytech.com/dsssl/dssslist
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: Global variable, Tony Graham | Thread | Re: Global variable, Frank A. Christoph |
Re: HTML4 Table stylesheet request., Chris Maden | Date | Re: Global variable, Frank A. Christoph |
Month |