cancel
Showing results for 
Search instead for 
Did you mean: 

XSLT MAPPING/JAVA MAPPING

Former Member
0 Kudos

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.

Accepted Solutions (0)

Answers (6)

Answers (6)

Former Member
0 Kudos

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.

vijay_b4
Active Contributor
0 Kudos

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:

https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/5c46ab90-0201-0010-42bd-9d0...

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.

GabrielSagaya
Active Contributor
0 Kudos
Former Member
0 Kudos

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

https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/30ac53f2-21d7-2a10-afa2-ce1a0577...

XSLT mapping https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/006aa890-0201-0010-1eb1-afc5cbae...

Former Member
0 Kudos

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.

Former Member
0 Kudos

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)

Former Member
0 Kudos

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.