XML Editor
Sign up for a WebBoard account Sign Up Keyword Search Search More Options... Options
Chat Rooms Chat Help Help News News Log in to WebBoard Log in Not Logged in
Show tree view Topic
Topic Page 1 2 3 4 5 6 7 8 9 Go to previous topicPrev TopicGo to next topicNext Topic
Postnext
siva ramanSubject: variable increment
Author: siva raman
Date: 01 Apr 2005 06:40 AM
hello all

Pls help me in variable increment.

Postnext
Tony LavinioSubject: variable increment
Author: Tony Lavinio
Date: 01 Apr 2005 10:02 AM
Variables in XSLT and XQuery don't vary after definition,
similarly to how variables act in algebra.
Perhaps if you told us what you were trying to accomplish
we could help.

Postnext
(Deleted User) Subject: variable increment
Author: (Deleted User)
Date: 01 Apr 2005 10:03 AM
Unfortunately XSLT cannot change the value of a variable like a procedural
language does, but you can simulate this by invoking a named template
passing a parameter computed using an expression like "$varName+1".

If this is not what you meant, please give us more details about what you
want to do.

Alberto

Postnext
siva ramanSubject: variable increment
Author: siva raman
Date: 02 Apr 2005 07:09 AM
many thanks for your reply.

I got the solution from saxon:assign instruction




thanks
siva


Postnext
noor  Subject: variable increment
Author: noor
Date: 24 Apr 2008 09:03 AM
hello mr. siva raman,

can u pls show the code which contain the usability of saxon:assign

thanks in advance...

Postnext
Sean VenganSubject: variable increment
Author: Sean Vengan
Date: 11 May 2005 01:26 AM
Hi,

This is actually what I am trying to do can you please explain.

ie I have a global variable which I declare outside a for loop to loop through the values.

What i'd like to do is populate the global variable with the running total. This will give me a summed total when the loop has finished. NOTE: I have to be selective when I loop though i.e I can't just use the sum of ALL nodes.

Sean

Postnext
Ivan PedruzziSubject: variable increment
Author: Ivan Pedruzzi
Date: 11 May 2005 06:50 AM

Siva is referring to an extension function that works only with the Saxon processor:
http://saxon.sourceforge.net/saxon7.2/extensions.html#saxon:assign

If you provide a better description of what you trying to do

- an example of input document
- what you mean by "be selective"
- the expected result

we can show you some possible solution

Ivan

Postnext
noor  Subject: variable increment
Author: noor
Date: 24 Apr 2008 09:03 AM
>hello all
>
>Pls help me in variable
>increment.

Postnext
noor  Subject: variable increment
Author: noor
Date: 24 Apr 2008 09:05 AM
hai all,
can anybody Pls help me in variable increment steps in xsl.

or by using saxon:assign

Postnext
noor  Subject: variable increment
Author: noor
Date: 24 Apr 2008 09:05 AM
hai all,
can anybody Pls help me in variable increment steps in xsl.

or by using saxon:assign

Posttop
Tony LavinioSubject: variable increment
Author: Tony Lavinio
Date: 24 Apr 2008 12:34 PM
Although saxon:assign is available, it is really not a good
idea to use it. There is nothing that can be done with saxon:assign
that cannot be done with XSLT 2.0 and not using it.

XSLT is a functional language, and it requires a different way of
thinking about problems. The assumptions of the language are that
variables are like they are in algebra, in that they are symbols for
values, and not "buckets" which can hold any old value at any time.

Using saxon:assign is working against the language.

That being said, if you do want to use it, you might want to ask on
the saxon-help mail list at SourceForge or the xsllist at Mulberry
Technologies. But most likely in either case, they will recommend
against using it.

 
Topic Page 1 2 3 4 5 6 7 8 9 Go to previous topicPrev TopicGo to next topicNext Topic
Download A Free Trial of Stylus Studio 6 XML Professional Edition Today! Powered by Stylus Studio, the world's leading XML IDE for XML, XSLT, XQuery, XML Schema, DTD, XPath, WSDL, XHTML, SQL/XML, and XML Mapping!  
go

Log In Options

Site Map | Privacy Policy | Terms of Use | Trademarks
Stylus Scoop XML Newsletter:
W3C Member
Stylus Studio® and DataDirect XQuery ™are from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2016 All Rights Reserved.