I have the following XML which has to be tranformed into JAVA via an XSL transformer:
And the output must be:
case 7: throw new Exception(wrongnumber);
I can get it to work for two comma-separated values with XSL funcions substring -after and substring-before, but not for three values. I was thinking of a recursive solution, but I undestand recursiveness is not possible in XSL. I am required to do this in XSL, otherwise I would have used Perl.
I hope anyone can help me out with this.