An XML Primer An XML Primer and and Demonstration Demonstration Gus Creedon and Travis Dykes LMI 16 September 1999 LMI
An XML PrimerAn XML Primerandand
DemonstrationDemonstration
Gus Creedon and Travis DykesLMI
16 September 1999LMI
Today’s Objective
Learn about the technology Provide snapshot of current XML efforts Identify our first steps
Extensible??
ex·ten·si·ble (k-stns-bl) adjective1. Capable of being extended or protruded: an extensible tongue; extensible tables.2. Computer Science. Of or relating to a programming language or a system that can be modified by changing or adding features.
The American Heritage® Dictionary of the English Language, Third Edition copyright © 1992 by Houghton Mifflin Company. Electronic version licensed from InfoSoft International, Inc. All rights reserved.
Key Terms
XML - eXtensible Markup Language Tag - a label that encloses a data element DTD - Document Type Definition XSL - extensible stylesheet language Parser - checks structure and syntax of XML data Well Formed - an XML data file that passes a
parser’s syntax check Valid - an XML data file that adheres to a DTD Repository - a web server where DTDs reside
Agenda
XML Primer Processing XML Data Prototype Demonstration Who’s Playing EDI/XML FAQs Discussion & Next Steps
X12 Standard Defines Both...
Syntax
Transaction SetsSegmentsData ElementsDelimitersNotes
Vocabulary
204, 304, 404N1, L1,G6298, 128, 150 ~, *P0102, E0304
XML Defines Only Syntax
Syntax
DeclarationsEntitiesAttributesTags
Vocabulary
{Extensible}{Extensible}{Extensible}{Extensible}
Data File Building Blocks
Toolkit DeclarationsStyle Sheets (XSL)Attributes (DTD)
Tagged Data
XML Data File
External Links (XLINK)
View Data on
Web Servers
Pull Toolkitfrom Repository
WEB
Data is Marked Up (or Tagged)
<Candidate Name>Busch</Candidate Name>
<Candidate Name>Gore</Candidate Name>
<Name>Busch</Name>
<Name>Gore</Name>
Generic Tag
Specific Tag
XML Tags
Tag Type Description
<Start Tag> Used to define the start of an individual XML element. Start tagsare always required. A start tag is indicated by the character <followed by a descriptive name and a closing character.
<End Tag > Used to define the end of an individual XML element. An end tagis identified by the characters </ followed by a descripting nameand a closing character >. End tags are optional, but must bepresent to have a well formed document.
<Start Tag:Attributes>
Used to attach additional information to an element. Attributesdescribe characteristics of an element, to include outsidestandards references. Attributes can only occur in start and emptyelements.
<EmptyElement Tags>
Used to identify an empty element. Empty elements are used forillustrations, figures, and other graphic data types.
DTD Declarations
Declaration FunctionElement Indicates the declaration contains a model that
constrains the permitted contents of a particularelement
ATTLIST Indicates the declaration defines the names, permittedvalues/types and default values of a list of attributesthat are to be associated with the named element
Entity Indicates the declaration contains either thereplacement text, or a pointer to a file containing thereplacement text, that is to be used to replace a namedentity reference within messages associated with theDTD
Notation Indicates the declaration assigns a locally significantnotation name to a process managed by a resourcewhose location is defined as part of the notationdeclaration.
X12 Toolkit Characteristics
X12 Data FileX12 Data File
Imp. ConventionImp. Convention
Table of StandardsTable of Standards
X12 Toolkit
- Resides on trading partner systems- Need to purchase standards- Does not travel with the data file
XML Toolkit Travels with the Data
XML Data FileXML Data File
Style SheetsStyle Sheets
DTDsDTDs
- Travels with data or is declared in data file- Currently no need to purchase standards
Agenda
XML Primer Processing XML Data Demonstration Who’s Playing EDI/XML FAQs Discussion & Next Steps
Customer
X12Toolkit
X12 Translator VAN
X12 Operating Concept
Vendor
X12Toolkit
X12 Translator
XML Toolkit
XML Toolkit
XML Server
XML Toolkit
InternetCarrier/Vendor
GTN
Web Browser
Web Browser
XML Operating Concept
Why XML Could Reach Everyone
Need employee(s) who use the Web Browsers are COTS and low $$ Both trading partners use the same toolkit Toolkits can reside in public domain
XML Toolkit
Parser
XSL
DTD
XML Web Browser- Netscape ‘2000- Microsoft IE 5.0
- Extensible stylesheet language
- Non-validating parser- Validating parser
- Document type definition
Parser
XSL
DTD
XML Web Browser
Style Sheet Controls View of Data
XMLData File
One Data SetManyStyles
XSL
Examples:- Bill of Lading- Manifest
Parser
XSL
DTD
XML Web BrowserXML
Data File
Parser Ensures Well FormedData File
Data Fileadheres to XML syntax
- Non-validating parser
Parser
XSL
DTD
XML Web BrowserXML
Data File
- Validating parser
Ensures that Data Tags and Attributes
Agree with DTD
DTD Validates Content
Parser
XSL
DTD
XML Web BrowserXML
Data File
The Tookit Can Work Together
Ensures Valid, Well-formed,
Controlled View of the Data File
Agenda
XML Primer Processing XML Data Demonstration Who’s Playing EDI/XML FAQs Discussion & Next Steps
Demonstration
Data File Tags XSL declaration DTD declaration XLINK - external reference
Document Type Definition (DTD) DTD Authoring Tool - “Near and Far” Stylesheet Language (XSL) File Bill of Lading Style Manifest Style
Agenda
XML Primer Processing XML Data Demonstration Who’s Playing XML FAQs Discussion & Next Steps
How Did XML Evolve?
HTML SGML W3C Recommendation
The XML Technical [Syntax] Specifications
Are developed by the World Wide Web Consortium (W3C)
Issued as W3C recommendations Not submitted to standards bodies
History of the XML Technical Specifications
Approved Recommendations XML 1.0 Document Object Model Level 1 Namespaces in XML Associating Stylesheets with XML documents
Proposed Recommendations Resource Description Framework (RDF) Schemas
Working Drafts XML Information Set XML Schema Part 1: Structures XML Schema Part 2: Datatypes Extensible Stylesheet Language Document Object Model Level 2
The XML Spec Does Not...
Define a standard business vocabulary Which means it does not contain...
tag identifiers data elements document structures document contents exchange requirements
Who is Standardizing the Business Vocabulary?
CommerceNet RosettaNet BizTalk OASIS XML/EDI European Committee for Standardization EB XML Individual industry, supply chain, enterprise
level efforts
Transportation Efforts?
DHL RosettaNet Members
UPS FEDEX
Union Pacific
Technical Applications
Application to Application Exchange Human to Application Exchange Search using XML search engines External linking (XLINK) Enables electronic commerce with SMEs
Agenda
XML Primer Processing XML Data Prototype Demonstration Who’s Playing EDI/XML FAQs Discussion & Next Steps
FAQs
Who will establish EDI/XML vocabulary? How will X12I play and active role in
XML/EDI development? Who will conduct and control maintenance
of DTDs, Schemas, etc.? Will DTDs exist separately from the
vocabulary and where will they reside? Do we support recasting of X12
nomenclature into XML tag structure?
Agenda
XML Primer Processing XML Data Prototype Demonstration Who’s Playing EDI/XML FAQs Discussion & Next Steps
The ENDThe END