Loading ...
Sorry, an error occurred while loading the content.

2250Re: [XSL-FO] Additon of 2 numbers

Expand Messages
  • G. Ken Holman
    Oct 1, 2002
      At 2002-10-01 12:54 +0200, Nitin Kumar wrote:
      >suppose i have number
      >a = 10
      >b = 20
      >how can i store the sum of a and b in a
      >ie is a = a+b possible

      No, once a variable is bound with a value, that value cannot be changed
      within the scope of the variable.

      If you re-open the scope you can assign a new value to the variable for the
      new scope. This is done in a recursive call, or in the context of the
      processing of another source tree node.

      I hope this helps.

      ......................... Ken

      G. Ken Holman mailto:gkholman@...
      Crane Softwrights Ltd. http://www.CraneSoftwrights.com/f/
      Box 266, Kars, Ontario CANADA K0A-2E0 +1(613)489-0999 (F:-0995)
      ISBN 0-13-065196-6 Definitive XSLT and XPath
      ISBN 0-13-140374-5 Definitive XSL-FO
      ISBN 1-894049-08-X Practical Transformation Using XSLT and XPath
      ISBN 1-894049-10-1 Practical Formatting Using XSL-FO
      Next public training: 2002-12-08,2003-03-03,06
    • Show all 2 messages in this topic