Thanks, i'l try that. There was a lot of issues around CDATA, in the past,
and I was wondering if Synapse (Axis, Axiom..) handles them before
experimenting further ?

Kim


Andreas Veithen-2 wrote:
> 
>> Is the Javascript the problem ?
>> Note it is impossible to insert the CDATA in the Javascript as then the
>> Javscript become invalid due to the nested CDATA. Hence why I used Java.
> 
> I see 3 possible ways to achieve this (assuming that the XML scripting
> supports CDATA sections, which needs to be confirmed):
> 
> * I think scripts can be loaded from registry entries and that plain
> text files are supported by the registry. In that case there is no
> problem with escaping.
> 
> * Instead of escaping the JavaScript using a CDATA section, use
> entities, i.e. replace all < by &lt;:
> 
> &lt;ws1:claimData>&lt;![CDATA["{claimData}"]]>&lt;/ws1:claimData>
> 
> * Escape the JavaScript using a CDATA section, except for the embedded
> ]]>:
> 
> <![CDATA[
> ...
> <ws1:claimData><![CDATA["{claimData}"]]>]]><![CDATA[</ws1:claimData>
> ...
> ]]>
> 
> Alternatively, if you want something (slightly) more readable:
> 
> <![CDATA[
> ...
> <ws1:claimData>]]>&lt;![CDATA["{claimData}"]]><![CDATA[</ws1:claimData>
> ...
> ]]>
> 
> 
> Andreas
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Does-CData-work---tp23052352p23067194.html
Sent from the Synapse - Dev mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to