xsl-list
[Top] [All Lists]

Re: Variables

2003-02-12 08:35:54

  How can i perform the following operation in xslt.

  <xsl:if test=(_at_)steve != 0>
        x= x + 1
  </xsl:if>

  where x is a variable.

if x = x + 1 then 0 = 1 and the world would be inconsistent.
this would be bad, so XSLT, like other declarative programing languages
doesn't let you change the value of a variable once it is bound.

This is a FAQ.

If you said what you were trying to generate rather than which illegal
operation you were trying to peform, someone could offer some further
help.

David

________________________________________________________________________
This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk
________________________________________________________________________

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list



<Prev in Thread] Current Thread [Next in Thread>