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
Conferences Close Tree View
+ Stylus Studio Feature Requests (1192)
+ Stylus Studio Technical Forum (14621)
+ Website Feedback (249)
+ XSLT Help and Discussion (7625)
- XQuery Help and Discussion (2017)
-> + Issue with Processing Instruct... (2)
-> + problem converting json to XML... (2)
-> + Problem base64 decoding string... (3)
-> + Problems posting multipart for... (5)
-> + trouble with download of price... (2)
-> + Problem with http-post not bei... (3)
-> + path problem, xps_file:writeAl... (9)
-> + Xquery update support? (2)
-> + problem with Stylus studio try... (5)
-> + adding dtd reference to xml ou... (4)
-> + xquery escaping ambarsand when... (3)
-> + Whitespace problem when return... (5)
-> + Problem with namespace prefix ... (5)
-> - Sending via SFTP returns unexp... (1)
-> + Query and Sftp clent (4)
-> + xquery and try - catch (3)
-> + Query + ddtek:http-post optio... (5)
-> + Example files referenced in do... (3)
-> - Automatic Error Detection and ... (3)
-> ->Automatic Error Detection...
-> ->Automatic Error Detection...
-> + Working with result of ddtek:h... (2)
-- [1-20] [21-40] [41-60] Next
+ Stylus Studio FAQs (159)
+ Stylus Studio Code Samples & Utilities (364)
+ Stylus Studio Announcements (113)
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

   
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.