You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

create-nodeset-from-string: from string to element list

edited Dec 6, 2017 8:00AM in Integration 5 comments

Summary

create-nodeset-from-string: from string to element list

Content

Hi,

I have done this mapping for transforming a string with comma separated values to a list of elements, what I wasn't able to do was to infer the namespace dinamically from the current schema, I tried trough function as name() and local-name() but with no results.

This was my implementation:

for-each
   create-nodeset-from-string in otherTransport_c
qname  '{http://crm.clientName.com}OtherTransport'
string  element
delimiter  ','
<****:OtherTransport>
value-of current()

<yy:sourceElement>string1,string2</yy:sourceElement>

result:

<****:OtherTransport>string1</****:OtherTransport>

<****:OtherTransport>string2</****:OtherTransport>

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!