[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: A few thoughts on XML and EDI

  • From: Richard Light <richard@l...>
  • To: xml-dev@i...
  • Date: Mon, 2 Jun 1997 11:12:30 +0100

edi duns number
In message <199706011613.MAA10043@s...>, Peat
<peat@e...> writes
>XML/EDI
>Advantages of including Electronic Data Interchange (EDI)
>entities with eXtensible Markup Language (XML)
>
>What could the EDI entities look like?
>
>The general format of the transaction would be described in HTML.  The EDI
>segments and elements could go something like this...
>....
>DUNS Number:
><![CDATA[<N101>FR</N101><N103>1</N103><N104>123456</N104>]]>
>
> <or>
>
>DUNS Number:
><![CDATA[<N1>FR*1*123456</N1>]]>

Bruce,

Another approach (which is compatible with that used for the XML linking
specification) is to have attributes which identify certain elements as
holding EDI information.  That way, the EDI information is explicitly
labelled, and an XML processor can be asked to return it to an
application using standard API calls.

This approach means that the EDI information forms part of the logical
structure of the XML document, rather than being a CDATA 'implant'.  It
also means that users can define their own element types to hold EDI
information, so long as they label them with the agreed attributes.
Furthermore, it allows them to use XML's built-in validation facilities
to check for structurally valid input, e.g.:

in the DTD:
<!ELEMENT DUNS-GROUP (N101, N102?, N103, N104) >
<!ATTLIST DUNS-GROUP EDI-TYPE CDATA #FIXED "ANALYSED DUNS NUMBER">
<!ELEMENT N101 (#PCDATA) >
<!ATTLIST N101 EDI-TYPE CDATA #FIXED "DUNS NUMBER PREFIX">
...

in the document:
....
<DUNS-GROUP>
<N101>FR</N101><N103>1</N103><N104>123456</N104>
</DUNS-GROUP>

Note that the EDI-TYPE information is declared once and once only, in
the DTD, and does not add to the markup overhead in the actual document.

Richard Light
SGML and Museum Information Consultancy
richard@l...
3 Midfields Walk 
Burgess Hill
West Sussex RH15 8JA
U.K.
tel. (44) 1444 232067

xml-dev: A list for W3C XML Developers
Archived as: http://www.lists.ic.ac.uk/hypermail/xml-dev/
To unsubscribe, send to majordomo@i... the following message;
unsubscribe xml-dev
List coordinator, Henry Rzepa (rzepa@i...)


PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

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