origam.com

Double escaped special character in transformation

I’m processing (importing) the plain text file into database by the sequential workflow.
I have the & character in the input file.
The output of transformation is double escaped: &
instead of &
so it is not saved as & but as &

As & character is invalid value in XSLT, it is already on input translated into &.

XML source is

<ROOT>
<line value=“Sons & Guns” />
</ROOT>

XSLT is

<xsl:param name=“IN” />

<xsl:template match=“ROOT”>
<xsl:variable name=“SIGN”><![CDATA[&]]></xsl:variable>

<result No=“1”><xsl:value-of select=“line/@value” /></result>
<result No=“2”><xsl:value-of select="$SIGN" /></result>
<result No=“3”><xsl:value-of select="$IN" /></result>
</ROOT>
</xsl:template>
</xsl:stylesheet>

Then you get result Origam Architect DataResult tab like on the picture

If your case is different, just show some XSLT code transformation and input file example.