[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

[xsl] Typing variables

Subject: [xsl] Typing variables
From: Ihe Onwuka <ihe.onwuka@xxxxxxxxxxxxxx>
Date: Tue, 18 Sep 2012 07:29:28 +0100

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

"<xsl;value-of select="local-name(),$thinge" separator='":['/>] where $thing is

<xsl:variable name="thing">"<xsl:value-of
select="replace(.,',',concat($quot,',',$quot))"/>"</xsl:variable> and
the value of the variable $quot is obvious.

If I were to make $thing a typed variable what would it  be.

Current Thread