开发者

XSLT for xml to EDI

Is there any sample xslt available which I can use as reference to migrate xml to edi format. More precisely开发者_如何学JAVA, I am looking for 837 format files.

Regards,

Shishir Kumar Mishra


If you have a source XML document and need to convert it to EDI, USE A TRANSLATOR.

If you're looking for open source (free), Java based transformation solution - check out Jitterbit. It has an intuitive mapper and would allow you to transform XML into EDI.

If you have a budget, check out Delta and ECS from Liaison. For less than $20K you'll have software that will do the transformation, provide you with a full EDI dictionary, and give you a set of tools to extend past this current project.

Transforming an XML document into an 837 using XSLT and code, well you're just asking for trouble, headaches and heartaches. There are so many widely available commercial tools to do what you're looking to do.


You don't mention if you're looking for X12 or EDIFACT. The X12 site does offer XML Schemas but you have to register.


Check out the open source X12Parser. The source code has some good X12 XSLT schemas in it (though they're built specifically for use in the parser). Or just modify the parser to suite your needs. It does a good job of transforming X12 to and from XML.


That's exactly what I am doing, using XSLT to handle EDI.

You should do your transformation into 2 XSLT steps:

(1) Your XML -------------------- XSLT#1 --> XML representation of 837

(2) XML representation of 837 --- XSLT#2 --> 837

The XSLT#2 would be a "universal" script which can serialized any XML-ized X12.

I have done such a "universal" script for EDIFACT, see http://code.google.com/p/parse-edifact/source/browse/trunk/Serialiser/SerialiseEDIFACT.xsl.

If you create by-hand one resulting 837 you want to get, I can do the step (2) for you, and if you know a bit of XSLT you will see how easily you can do the step (1).

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜