server/executionhandlers/ruby/dsl_to_dslx.xsl in cpee-2.1.61 vs server/executionhandlers/ruby/dsl_to_dslx.xsl in cpee-2.1.62
- old
+ new
@@ -620,11 +620,11 @@
<xsl:value-of select="name()"/>
</xsl:with-param>
</xsl:call-template>
</xsl:otherwise>
</xsl:choose>
- <xsl:text>, :value => ->{ </xsl:text>
+ <xsl:text>, :value => </xsl:text>
<xsl:choose>
<xsl:when test="not(node())">
<xsl:text>nil</xsl:text>
</xsl:when>
<xsl:when test="child::node()[not(self::text())]">
@@ -643,20 +643,22 @@
</xsl:choose>
</xsl:when>
<xsl:otherwise>
<xsl:choose>
<xsl:when test="substring(text(),1,1) = '!'">
- <xsl:value-of select="substring(text(),2)"/>
+ <xsl:text>🠊("</xsl:text>
+ <xsl:value-of select="str:replace(str:replace(substring(text(),2),'\','\\'),'"','\"')"/>
+ <xsl:text>")</xsl:text>
</xsl:when>
<xsl:otherwise>
<xsl:text>"</xsl:text>
<xsl:value-of select="str:replace(str:replace(text(),'\','\\'),'"','\"')"/>
<xsl:text>"</xsl:text>
</xsl:otherwise>
</xsl:choose>
</xsl:otherwise>
</xsl:choose>
- <xsl:text> }</xsl:text>
+ <xsl:text> </xsl:text>
<xsl:for-each select="@*">
<xsl:text>, :</xsl:text>
<xsl:value-of select="name()"/>
<xsl:text> => "</xsl:text>
<xsl:value-of select="string(.)"/>