How to read values from JSON embedded in XML with XSLT?

This is my XML, which I want to convert into DOT:

    <label>Layanan Profile ASN</label>
    <items>[{"url": "/tampilanData/pns", "label": "Profile Pegawai", "subMenu": "pns"}, {"url": "/tampilanData/pppk", "label": "Profile Pegawai PPPK", "subMenu": "pppk"}, {"url": "/tampilanData/JPTNonASN", "label": "Profile Pegawai PPT Non-ASN", "subMenu": "ppt"}]</items>

Below is a picture of my XSL code with the DOT file rules.

XSL code:

The problem is, I want to get the values from <items>, like below:

  • /displayData/pns
  • /displayData/pppk
  • /displayData/JPTNoASN

and I want to take the value points above into my XSL as outlined in red in the image.

How would the XSL look like that can take the values from my XML? The <items> value is quite difficult, unlike the <role> values, which I have managed to take.

Read more here: Source link