I'm trying to explain my problem in following example.
I've following kind of xml
<Tag value="grade:1">
.....
</Tag>
<Tag value="sub:B">
....
</Tag>
<Tag value="grade:2">
.....
</Tag>
<Tag value="grade:3">
...
</Tag>
<Tag value="sub:A">
...
</Tag>
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.
Thanx,
Vikram.
cknell(_at_)onebox(_dot_)com wrote:
-----Original Message-----
From: Vikram Barate <vikram(_at_)kenati(_dot_)com>
Can I change value of variable declared using <xsl:variable> tag.
No
If no then is there any other way i can create VARIABLES and update
those.
No
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.