IMPORTANT:
this is not a Support Forum! Experienced users might answer from time to time questions posted here. If you need a professional and reliable answer, or if you want to report a bug, please contact Altova Support instead.

style in TOC Options · View
julian31
Posted: Friday, July 17, 2020 2:39:22 PM
Rank: Member

Joined: 4/10/2019
Posts: 19
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

Users browsing this topic
guest

Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Use of the Altova User Forum(s) is governed by the Altova Terms of Use.