Hi!

I am trying to write a XSLT stylesheet to send CDATA to a connected
system via the SOAP driver. However I cant figure out how to do this.

For this post, I'm using dummy data just to simplify what I'm trying to
do:

Input to stylesheet is this:

<nds dtdversion="4.0" ndsversion="8.x">
<source>
<product edition="Advanced" version="4.0.2.0">DirXML</product>
<contact>Novell, Inc.</contact>
</source>
<input>
<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Header/>
<soapenv:Body>
<add
class-name="User"src-dn="\DEV-TREE\pulsen\Meta\Users\MSJO">
<add-attr attr-name="Given Name">
<value type="string">Marcus</value>
</add-attr>
<add-attr attr-name="Surname">
<value type="string">Jonsson</value>
</add-attr>
</add>
</soapenv:Body>
</soapenv:Envelope>
</input>
</nds>

I want the output to be:

<nds dtdversion="4.0" ndsversion="8.x">
<source>
<product edition="Advanced" version="4.0.2.0">DirXML</product>
<contact>Novell, Inc.</contact>
</source>
<input>
<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Header/>
<soapenv:Body>
<per:Push>

<perata><![CDATA[<Firstname>Marcus</FirstName><LastName>Jonsson</LastName>]]></perata>
</per:Push>
</soapenv:Body>
</input>
</nds>

I have tried to use
<xsl:text
disable-output-escaping="yes">to insert CDATA-tags, and I have
tried to work with
<xslutput method="xml"
cdata-section-elements="perata" encoding="UTF-8"/>.

The best result I've gotten is with
<xslutput method="xml"
cdata-section-elements="perata" encoding="UTF-8"/> in an online
test tool, but I've never been able to get it to work within IDM (either
engine or Designer simulations)

Any help is greatly appriciated. Thanks for reading my post!

Best Regards
Marcus


--
marcus_jonsson
------------------------------------------------------------------------
marcus_jonsson's Profile: https://forums.netiq.com/member.php?userid=1157
View this thread: https://forums.netiq.com/showthread.php?t=52348