Can you increase the value of a variable in XSL/XML?

Can you increase the value of a variable in XSL/XML?

Post by Dave » Wed, 21 May 2003 17:10:28



Hi

Does anyone know if you can increment the value of a
variable in XML.

For example, based on if a condition exists, I would like
to increase the value of a variable and display this value
in my HTML file.

Any assistance would be appreciated

TIA
Dave

 
 
 

Can you increase the value of a variable in XSL/XML?

Post by Julian F. Reschk » Wed, 21 May 2003 17:30:07




Quote:> Hi

> Does anyone know if you can increment the value of a
> variable in XML.

You can't.

Quote:> For example, based on if a condition exists, I would like
> to increase the value of a variable and display this value
> in my HTML file.

Consider using the "count()" function or the xsl:number element.
Quote:> Any assistance would be appreciated

> TIA
> Dave


 
 
 

1. dynamic XSL path variable gives value of variable not of path

Hi,
Here is my XHTML..

<body>
 <input type="text" name="methodname"     id="method/methodname"  />
 <input type="text" name="methoddescription"
id="method/methoddescription" />
</body>

<data>
 <method>
   <methodname>   first method    </methodname>
   <methoddescription>  testing of add method html    
</methoddescription>
 </method>
</data>
...........

Now I want to get value of those nodes whose names(from body/input)
are matching inside <data/method> elements and the exact path is there
in body/input id.

so I have a variable $id  and then I want to go in //data/$id to look
for matching values. but //data/$id does not give value..How is this
possible..
Thanks in advance

Prabuddha

2. 4 xbox's

3. Increasing "rowspan" value automatically

4. can i use frontpage 2000 on a XP machine

5. Defining variables using variable values in XSLT.

6. IShellIconOverlay

7. value of a variable whose name is in a variable

8. IOCTL from user mode

9. VS Add-Ins for XML

10. unable to render value of xsl:variable in IE

11. How to test for the Value of a Variable in <xsl:when>

12. xsl: selecting nodes based on variable value (not the 'select' attribute)