Rank: Member
Joined: 4/10/2019 Posts: 25
|
Hello, I have a xml like this <Datas> <Category> <Name>ACCE</Name> <ColorCode>Red</ColorCode> </Category> <Category> <Name>CMD</Name> <ColorCode>Blue</ColorCode> </Category> <Datas>
<Category> is a dynamic list.
In my document, I need to have a TOC which list the <Name> in the <Category> like that:
1 ACCE......1 2 CMD.......2
But I have a problem, the color of each item must change depending on the <ColorCode>
1 ACCE......1 2 CMD.......2
I tried to use the Xpath:
$XML/Datas/Category[index]/ColorCode
but I don't know how to have the index of the items when I'm in the TOC
I use Altova StyleVision 2019
|