[Home] [By Thread] [By Date] [Recent Entries]
I would write it as
<xsl:variable name="thing" type="xs:string" select="string-join(for $t in tokenize(., ',') return concat('"', $t, '"'), ',')"/> i.e avoid construction of text nodes, keep it all in terms of atomic values. Michael Kay Saxonica On 18/09/2012 07:29, Ihe Onwuka wrote: If I have an element <elem>A,B,C</elem> and I want it to render as JSON - "elem":["A","B","C"], so I do
|

Cart



