Monday, 2 September 2013

How this value use comma in xsl

How this value use comma in xsl

xml file like below I want concat value of name, add1, city, add2 with
separated by comma
<Details>
<name>abc</name>
<profile>
<address>
<add1>ccc</add1>
<add2>bbb</add2>
<city>CA</city>
</address>
</profile>
</Details>
I want Output like below:-
abc, ccc, CA, bbb
(I mean city will come first before add2 and if any value is blank then it
will adjust accordingly)

No comments:

Post a Comment