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

Re: [XSL-FO] Value assignment to a variable

Expand Messages
  • G. Ken Holman
    ... XSLT and XPath questions would be better posted to the following list: http://www.mulberrytech.com/xsl/xsl-list There are a number of subscribers who would
    Message 1 of 2 , May 28 7:13 AM
    • 0 Attachment
      At 2003-05-28 18:23 +0500, Nabeel wrote:
      >How can we

      XSLT and XPath questions would be better posted to the following list:

      http://www.mulberrytech.com/xsl/xsl-list

      There are a number of subscribers who would enthusiastically respond to
      such questions.

      There is also an *excellent* FAQ at:

      http://www.dpawson.co.uk

      >assign value to a variable which is defined in the outer loop and
      >accessedd inside loop in XSL.

      I'm not sure what you mean by "loop". Classical programming concepts such
      as "global variables with varying values" and "loops" do not apply to XSLT
      ... one should regard XSLT as a templating language with built-in
      facilities for iterating over information and counting the constructs found
      in the source node tree. Variables are bound values and do not vary in
      XSLT so could not be changed from within a "loop".

      Perhaps if you expressed to the XSLT list the nature of the problem you are
      trying to solve (are you interating over and numbering chapters? are you
      summing a set of values to produce a total?) rather than asking how to
      express a classical programming concept that may not apply to the language,
      you might get a more applicable response to your question.

      I hope this helps.

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

      --
      Upcoming hands-on courses: (registration still open!)
      - (XSLT/XPath and/or XSL-FO) North America: June 16-20, 2003

      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-11-X Practical Formatting Using XSL-FO
      Member of the XML Guild of Practitioners: http://XMLGuild.info
      Male Breast Cancer Awareness http://www.CraneSoftwrights.com/f/bc
    Your message has been successfully submitted and would be delivered to recipients shortly.