XML Editor
Sign up for a WebBoard account Sign Up Keyword Search Search More Options... Options
Chat Rooms Chat Help Help News News Log in to WebBoard Log in Not Logged in
Show tree view Topic
Go to previous topicPrev TopicGo to next topicNext Topic
Postnext
Sharad KarkeraSubject: Automatic Error Detection and Quick-Fix Corrections
Author: Sharad Karkera
Date: 02 Mar 2021 08:01 AM
Hi,

Can you share the steps to load the file and how to detect the error in X12 or EDIFACT files?

I am using Stylus Studio X16 XML Enterprise Suite.

Regards,
Sharad K

Postnext
Ivan PedruzziSubject: Automatic Error Detection and Quick-Fix Corrections
Author: Ivan Pedruzzi
Date: 02 Mar 2021 04:14 PM
Hi Sharad,

There are video tutorials that show how to validate EDI using Stylus Studio EDI to XML editor

- http://www.stylusstudio.com/videos/EDItoXMLPart1/editoxmlPart1.html
- http://www.stylusstudio.com/videos/EDItoXMLPart2/editoxmlPart2.html

If you want to automate EDI validation or EDI to XML conversion using XQuery you can use the EDI analyzer API. you can read more in the
XML Converters User's Guide located in your Stylus Studio installation here

c:\Program Files\
-Stylus Studio X16 XML Enterprise Suite 64-bit\
--Components\
---XML Converters for Java\
----doc\
-----xmlconverters-ug.pdf

Please notice that Stylus Studio is strictly a design tool, if you want to deploy an automated solution you will need to license the runtime, see XML Pipeline Server at http://www.xmlpipelineserver.com

Let us know If you like to setup meeting.

Hope this helps
Ivan Pedruzzi
Stylus Studio Team

Posttop
Ivan PedruzziSubject: Automatic Error Detection and Quick-Fix Corrections
Author: Ivan Pedruzzi
Date: 04 Mar 2021 12:53 AM
Originally Posted: 02 Mar 2021 08:01 PM
In addition you may want to read chapter "EDI Analysis Functions" in the DataDirect XQuery User's Guide located in your Stylus Studio installation here

c:\Program Files\
-Stylus Studio X16 XML Enterprise Suite 64-bit\
--Components\
---DataDirect XQuery\
----books\
-----ddxquery\
------ddxqug\
-------ddxqug.pdf

The following is an extract from the chapter

Notice that the EDI Analyzer API can create the acknowledge message automatically.

let $edi := "EDI:tbl=yes?file:///c:/EDI/code99.x12"
let $report := ddtek:analyze-edi-from-url($edi)
let $ack := $report/AnalyzeReport/Response/Acknowledgement/X12
let $receipt := $report/AnalyzeReport/Response/Receipt/X12
let $xml := ddtek:edi-to-xml-from-url($edi, $report)
return(
ddtek:serialize-to-url($report ,"file:///c:/EDI/code99.x12.report.xml", "")
,ddtek:serialize-to-url($xml ,"file:///c:/EDI/code99.x12.xml", "")
,ddtek:serialize-to-url($receipt,"file:///c:/EDI/code99.rec.x12","method=EDI"
)
,ddtek:serialize-to-url($ack ,"file:///c:/EDI/code99.ack.x12","method=EDI")



Ivan Pedruzzi
Stylus Studio Team

 
Go to previous topicPrev TopicGo to next topicNext Topic
Download A Free Trial of Stylus Studio 6 XML Professional Edition Today! Powered by Stylus Studio, the world's leading XML IDE for XML, XSLT, XQuery, XML Schema, DTD, XPath, WSDL, XHTML, SQL/XML, and XML Mapping!  
go

Log In Options

Site Map | Privacy Policy | Terms of Use | Trademarks
Stylus Scoop XML Newsletter:
W3C Member
Stylus Studio® and DataDirect XQuery ™are from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2016 All Rights Reserved.