0

I have a tag in xml like

<Radio values="Husband~Husband|Wife~Wife|Son~Son|Daughter~Daughter|Father~Father|Mother~Mother"></Radio>

Now I have to split the attribute into Husband, Wife, Son, Daughter, Father, Mother and use each one as a value for the value attribute in <input type = "radio" value = "<the value i get from the list>" />

Can anyone give me an idea how to achieve this?

user1602243
  • 179
  • 1
  • 2
  • 11
  • 2
    Based on research, appears you need a recursive template: http://stackoverflow.com/questions/136500/does-xslt-have-a-split-function http://stackoverflow.com/questions/3336424/does-xslt-have-split-function – A-Dubb Feb 26 '13 at 04:36
  • What language you are using? C#? Javascript? Java? PHP? etc etc? :) – Mujtaba Hassan Feb 26 '13 at 04:40
  • @Mujtaba Hassan: I am writing XSL to generate an HTML Output. – user1602243 Feb 26 '13 at 05:38
  • No problem. I couldn't post it as an answer because stackoverflow thought it was too simple. Maybe if I add more characters I guess. – A-Dubb Feb 26 '13 at 14:59

0 Answers0