« Return to Thread: Error with mapping repeating xml structure

Error with mapping repeating xml structure

by Trond Strømme :: Rate this Message:

Reply to Author | View in Thread

Hello.
I have a problem where I'm not seeing the expected behavior in the
output from a xsd->xsd mapping
A zip file with a sample BPEL and CA project is attached to this mail.

I thought that mapping (this is in pseudo/xml/xsd/)
<people>
   <person>  1->*
      <name>  1-1
      <age>1-1
      <sex> 1-1
   </person>
</people>
to
<folks>
   <dude> 1->*
      <name> 1-1
      <isdummy> 1-1
      <sex> 1-1
    </dude>
 </folks>
would work by adding an assign element in the bpel and using the mapper
to correlate name-> name, sex->sex, and for fun add a string literal to
isdummy

However the output after deployment is;
<folks>
   <dude>
      <name>trond</name>
      <name>nils</name>
      <name>mari</name>
   ..... cut ....

What i expected is;
<folks>
   <dude>
      <name>trond</name>
      <isdummy>true</isdummy>
      <sex>M</sex>
    </dude>
   <dude>
         <name>nils</name<
         .-.... cut

The OpenESB/NetBeans version is the combination bundled in version
200803250006.
OS is windows, JVM is Sun 1.5.0_15

Am I just doing something totally wrong or is this an issue, in that
case for which module should i log it in?

thanks

--
Trond Strømme
Software Specialist

Sun Microsystems, Inc.
NO
Phone x43744/+47-23-369 744
Mobile +4797509388
Email Trond.Stromme@...




demoproject.zip (62K) Download Attachment

 « Return to Thread: Error with mapping repeating xml structure