on 05-29-2006 6:28 PM
Is it possible to map 2 xml files into 1 with only one XSLT mapping?
I need to use XSLT because the target message is a xml with only one tag of type string, and inside this string I need to pass the content of both source messages. But the only way of performing XML to string conversion is through XSLT.
I've managed to successfully perform 1 XML to string mapping, but I don't know how to proceed with 2 source xml's.
Thanks in advance.
Hi,
>>>> Is it possible to map 2 xml files into 1 with only one XSLT mapping?
in general it is but I'm not sure if it works with the XI
anyway you can try the <b>document </b>function:
http://www.mhonarc.org/archive/html/xsl-list/2005-02/msg01364.html
Regards,
michal
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
As expected, it's kinda hard (maybe impossible? :P) to use the document() expression in XI.
And about the methods, yeah, Michal, concatenating two strings should be much easier than creating a datatype with two subnodes of the types of my source messages and than transforming to string the entire new datatype.
Thank you all for your fast replies!
Hi Henrique,
Could you pls tell me in detail about how to achieve One whole xml into one string element. I am new to all this and have not used xslt or java mapping before.
Regards,
Ashish
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
I think, XSLT mapping will read one xml document at a time.
So if get two xmls files under one tag(root element) then you can achieve this with message/xslt/java mapping.
Then it will be of type N:1 mapping
How are you planning to do in XI.. Are you using BPM here ? so that in the fork step you can two receivers (2 files) and execute transformation steps and send with 1 message.
http://help.sap.com/saphelp_nw2004s/helpdata/en/0e/56373f7853494fe10000000a114084/content.htm
Hope this helps,
Regards,
Moorthy
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
88 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.