Insert CDATA into XML in a mapping
Summary
Insert CDATA into XML in a mappingContent
I am using OIC to call quickBase API. Trying to insert CDATA in xml ,output should look like below.
<qdbapi>
<records_csv>
<![CDATA sid,sflag
1234,1
4321,1
4567,1
]]>
</records_csv>
</qdbapi>
Trying with below in xslt:
<nsmpr9:records_csv xml:id="id_92">
<xsl:value-of disable-output-escaping="no" select='concat("<![CDATA["," ")'/>
<xsl:text> sid,sync</xsl:text>
<xsl:text disable-output-escaping="yes"> </xsl:text>
<xsl:for-each select="$v1/nsmpr1:testResponse/nsmpr5:testbapi/nsmpr5:record">
<xsl:value-of select="concat(@sid, ',', '1')"/>
<xsl:choose>
<xsl:when test="position()!=last()">
<xsl:text disable-output-escaping="yes"> </xsl:text>
Tagged:
0