cancel
Showing results for 
Search instead for 
Did you mean: 

CDATA Issue

Former Member
0 Kudos

Hi Everybody,

I have to pass a xml string to a single element. I have decided to send it as CDATA. But could you pls guide me through the steps that i need to take to implement CDATA mapping.

ie where do i write this code?

what format should it have?

Do i have to make a jar file of some sort?

Regards,

Ashish

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Ashish,

answer is certainly in this weblog:

XI: XML node into a string with graphical mapping?

/people/michal.krawczyk2/blog/2005/11/01/xi-xml-node-into-a-string-with-graphical-mapping

Moreover you can read this thread:

Regards

Mickael

Former Member
0 Kudos

Thanks Mickael for your prompt reply. However could you tell how to actually implement this. Ie.

Where should I write this code:

<?xml version='1.0' ?>

<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:p2="http://frik.bcc.com.pl">

<xsl:template match="/">

<p2:inside xmlns:p2="http://frik.bcc.com.pl">

<name>

<xsl:text disable-output-escaping="yes"><![CDATA[<![CDATA[]]></xsl:text>

<xsl:copy-of select="p2:outside/name"/>

<xsl:text disable-output-escaping="yes"><![CDATA[]]]]></xsl:text>

<xsl:text disable-output-escaping="yes"><![CDATA[>]]></xsl:text>

</name>

</p2:inside>

</xsl:template>

</xsl:stylesheet>

as given by Michael.

Do i need to import it as external defination?

Regards,

Ashish

Former Member
0 Kudos

Hi AShish,

You need to import it as an 'Imported archive' under 'Mapping Objects'

rgds

Dirk

Answers (0)