Skip to Main Content

Integration

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

XSL transfomations 'disable-output-escaping' not working as expected

697668Apr 22 2009 — edited Apr 22 2009
I am trying to create an .xsl transformation for an ESB message flow.

The problem is that the xsl seems to force the data inside tags to be escaped.

for example:

....
<tag1>
<xsl:text disable-output-escaping="yes">&lt![CDATA[</xsl:text>
<xsl:text disable-output-escaping="no">text inside cdata</xsl:text>
<xsl:text disable-output-escaping="yes">]]&gt;</xsl:text>
</tag1>
...

I assumed would output:

<tag1><![CDATA[text inside cdata]]></tag1>

but it actually outputs:


<tag1>&lt;![CDATA[text inside cdata]]&gt;</tag1>

This also seems to be the same for <xsl:value-of disable-output-escaping="yes" select="//xpath...">

So it seems that the 'disable-output-escaping' attribute seems to do nothing.

I need to find a way to output tags within tags but the < and > characters are always being escaped.

can anyone help produce xml output that is not escaped?
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 20 2009
Added on Apr 22 2009
1 comment
905 views