on 05-20-2008 3:10 PM
Hi All,
After faceing so much of problem, i found that it would be better if i can go for an XSLT/java mapping:
1. It is adding an extra <b>ns0</b> to header line & end line which i dont want to be generated in the output xml file.
2. Namespace problem that basically sticking to 60 but i want 72 characters in my target xml file.
3. No carriage return at the end of each line which is not geting generated through graphical mapping.
Now i have an XSD provided by the client. So how can i use that and which mapping should best suits to solve all these problem.
Should i go for a java mapping or an XSLT/JAVA mapping.
I dont have any idea on both of them, So can you people send me the details for it.
Many Thanks & Best Regards,
JGD.
All,
Thanks for all your valuable information.
I am using the AF_Modules/XMLAnonymizerBean, but the output is generating without the namespace which sould not be the case.
Moreover, how can i add a carriage return at the end of each tag while generating my output XML file.
Many Thanks.
JGD.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Java mapping:
/people/prasad.ulagappan2/blog/2005/06/29/java-mapping-part-i
/people/prasad.ulagappan2/blog/2005/06/29/java-mapping-part-ii
ABAP Mapping:
XSLT mapping
/people/anish.abraham2/blog/2005/12/22/file-to-multiple-idocs-xslt-mapping
ABAP XSLT mapping
/people/r.eijpe/blog/2005/11/04/using-abap-xslt-extensions-for-xi-mapping
Reward points if this helps
Regards
Vani.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
1) Step by Step N.1 Mapping using XSLT
2) How To create an XSLT mapping file
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Based on the requirement and size we can choose the mapping.
If java is suitable to our requirement then we go for java.
If XSLT is suitable to our requirement then we go for XSLT.
Performance wise(high --> low) :
If data is less then
Graphical mapping -
> Java(sax parser)mapping -
> Java(dom parser)mapping -
> XSLT mapping -
> ABAP mapping.
If data is high then
XSLT mapping -
> Java(sax parser)mapping -
> Graphical mapping(internally it uses SAX)----> Java(dom parser)mapping -
> ABAP mapping.
If you choose XSLT then you can select Altova Map Force tool then no need to write the XSLT code here, it will automatically generates the code.
N:1 XSLT Mapping
XSLT mapping https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/006aa890-0201-0010-1eb1-afc5cbae...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Could you please provide me few of the blogs that i can refer to for the mapping.
And moreover is there any tool that can convert the XSD to XSL that i can use for the XSLT mapping.
Many Thanks .
JGD.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I recommend using the software Altova XMLSpy for testing and creating your xslt files. oXygen XML Editor is good also.
Some xslt tutorials:
www.w3schools.com/xsl/ (first steps)
http://www.4serendipity.com/xml/testfiles/xmlexamples.html
http://www.topxml.com/xsltstylesheets/ (many examples)
Good luck.
(please award points if usefull)
In my opinion XSLT is easier to write (since needs less "programming", less line codes), has easy maintence (since you only have to edit a xsl file) and its still power and flexible.
Java needs more "hard-working" since you must code everything. But java has the advantage that you can do any thing you want.
For information about java mapping, take a look on:
http://help.sap.com/saphelp_nw04/helpdata/en/e2/e13fcd80fe47768df001a558ed10b6/content.htm
My advice is to try first XSLT, and if it doesn´t fit your requirements, go to Java.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
95 | |
11 | |
11 | |
10 | |
9 | |
8 | |
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.