Subject: Re: [xsl] Typing variables From: Michael Kay <mike@xxxxxxxxxxxx> Date: Tue, 18 Sep 2012 08:59:20 +0100 |
Michael Kay Saxonica
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 |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Typing variables, Ihe Onwuka | Thread | [xsl] Breaking up Program Code Exam, Craig Sampson |
Re: [xsl] Typing variables, Andrew Welch | Date | Re: [xsl] Is xs:date('2012-09-10+14, Michael Kay |
Month |