Re: [xsl] Can I change variable contents.

Subject: Re: [xsl] Can I change variable contents.
From: Vikram Barate <vikram@xxxxxxxxxx>
Date: Thu, 08 Apr 2004 17:38:33 +0530
I'm trying to explain my problem in following example.
I've following kind of xml

<Tag value="grade:1">
<Tag value="sub:B">
<Tag value="grade:2">
<Tag value="grade:3">
<Tag value="sub:A">

and I want to generate output in text format as follows:

1 2 3 from grade
A B from sub

values attribute of Tag1 node can contain anything in fomat "X:Y", and I've to print all values of the Ys for all the Xs in above shown format.
I tried appling some logics but I could not achieve this yet. Can anyone suggest me simple logic in xsl to achieve this.

One general Question: If we can't change xsl:variable, then why it is named variable? is should be xsl:constant.


cknell@xxxxxxxxxx wrote:

-----Original Message-----
From:     Vikram Barate <vikram@xxxxxxxxxx>

Can I change value of variable declared using <xsl:variable> tag.


If no then is there any other way i can create VARIABLES and update those.


As has been said here before many times, tell us what you need to accomplish, not how you wish to accomplish it, and we can help.

Current Thread