|
[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: A few thoughts on XML and EDI
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! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|
|||||||||

Cart








