A customer supplied XML contains the delivery address as a comma separated string, I would like to split this string into named nodes using XSLT 1.0.

```
<?xml version="1.0" encoding="UTF-8"?>
<root>
   <text>
     Company, Streetaddress 20, 1234 AA, City
   </text>
</root>

```

Output

```
<?xml version="1.0" encoding="UTF-8"?>
<root>
  <text>
    <COMPANY>Company</COMPANY>
    <ADDRESS>Streetaddress 20</ADDRESS>
    <ZIPCODE>1234 AA</ZIPCODE>
    <CITY>City</CITY>
  </text>
</root>

```

I tried several recursive templates for XSLT 1.0 which do a fine job splitting but the resulting nodes are identically named.

If possible, how can this be achieved using XSLT 1.0?