OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

 


 

   Re: A few thoughts on XML and EDI

[ Lists Home | Date Index | Thread Index ]
  • From: Richard Light <richard@light.demon.co.uk>
  • To: xml-dev@ic.ac.uk
  • Date: Mon, 2 Jun 1997 11:12:30 +0100

In message <199706011613.MAA10043@smtp2.erols.com>, Peat
<peat@erols.com> 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@light.demon.co.uk
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@ic.ac.uk the following message;
unsubscribe xml-dev
List coordinator, Henry Rzepa (rzepa@ic.ac.uk)





 

News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 2001 XML.org. This site is hosted by OASIS