IMPORTANT:
this is not a Support Forum! Experienced users might answer from time to time questions posted here. If you need a professional and reliable answer, or if you want to report a bug, please contact Altova Support instead.

How to do Copy-of? Options · View
thzman
Posted: Tuesday, October 1, 2019 1:48:56 PM
Rank: Newbie

Joined: 3/25/2019
Posts: 2
Location: Sweden
Hi!

I'm doing a tranformation where the input file contains a field that is a XML structure. It's stored in the database "as is" and is just needed to be copied over to the output in the correct place accodring to the output schema file.

If I do it in XSLT code it simply looks like this:
Quote:
<xsl:copy-of select="/print_file/datalist/specification/DocumentSpecifications"/>


What I can't seem to figure out is how to do this in MapForce?
I don't want to map each individual field, I just want to copy the whole structure since it's up to the customer to send the correct XML structure in this node.

See the attached pictures. There must be some way to do this other than to export the code and edit it by hand, right?


thzman attached the following image(s):
Data_input_text.png
Expected_output_text.png
MapForce_picture.png

that
Posted: Tuesday, October 1, 2019 2:35:49 PM
Rank: Advanced Member

Joined: 6/16/2006
Posts: 486
Location: AT
Connect DocumentSpecifications (instead of "specification") to DocumentSpecifications, right-click the connection and select "Copy-All".
thzman
Posted: Tuesday, October 1, 2019 2:40:08 PM
Rank: Newbie

Joined: 3/25/2019
Posts: 2
Location: Sweden
Ahhh…... Excellent!
Exactly what I was looking for.


Thanks for the quick reply!

Users browsing this topic
guest

Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Use of the Altova User Forum(s) is governed by the Altova Terms of Use.