Top Banner
An XML Primer An XML Primer and and Demonstration Demonstration Gus Creedon and Travis Dykes LMI 16 September 1999 LMI
35
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Xml

An XML PrimerAn XML Primerandand

DemonstrationDemonstration

Gus Creedon and Travis DykesLMI

16 September 1999LMI

Page 2: Xml

Today’s Objective

Learn about the technology Provide snapshot of current XML efforts Identify our first steps

Page 3: Xml

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.

Page 4: Xml

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

Page 5: Xml

Agenda

XML Primer Processing XML Data Prototype Demonstration Who’s Playing EDI/XML FAQs Discussion & Next Steps

Page 6: Xml

X12 Standard Defines Both...

Syntax

Transaction SetsSegmentsData ElementsDelimitersNotes

Vocabulary

204, 304, 404N1, L1,G6298, 128, 150 ~, *P0102, E0304

Page 7: Xml

XML Defines Only Syntax

Syntax

DeclarationsEntitiesAttributesTags

Vocabulary

{Extensible}{Extensible}{Extensible}{Extensible}

Page 8: Xml

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

Page 9: Xml

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

Page 10: Xml

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.

Page 11: Xml

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.

Page 12: Xml

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

Page 13: Xml

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

Page 14: Xml

Agenda

XML Primer Processing XML Data Demonstration Who’s Playing EDI/XML FAQs Discussion & Next Steps

Page 15: Xml

Customer

X12Toolkit

X12 Translator VAN

X12 Operating Concept

Vendor

X12Toolkit

X12 Translator

Page 16: Xml

XML Toolkit

XML Toolkit

XML Server

XML Toolkit

InternetCarrier/Vendor

GTN

Web Browser

Web Browser

XML Operating Concept

Page 17: Xml

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

Page 18: Xml

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

Page 19: Xml

Parser

XSL

DTD

XML Web Browser

Style Sheet Controls View of Data

XMLData File

One Data SetManyStyles

XSL

Examples:- Bill of Lading- Manifest

Page 20: Xml

Parser

XSL

DTD

XML Web BrowserXML

Data File

Parser Ensures Well FormedData File

Data Fileadheres to XML syntax

- Non-validating parser

Page 21: Xml

Parser

XSL

DTD

XML Web BrowserXML

Data File

- Validating parser

Ensures that Data Tags and Attributes

Agree with DTD

DTD Validates Content

Page 22: Xml

Parser

XSL

DTD

XML Web BrowserXML

Data File

The Tookit Can Work Together

Ensures Valid, Well-formed,

Controlled View of the Data File

Page 23: Xml

Agenda

XML Primer Processing XML Data Demonstration Who’s Playing EDI/XML FAQs Discussion & Next Steps

Page 24: Xml

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

Page 25: Xml

Agenda

XML Primer Processing XML Data Demonstration Who’s Playing XML FAQs Discussion & Next Steps

Page 26: Xml

How Did XML Evolve?

HTML SGML W3C Recommendation

Page 27: Xml

The XML Technical [Syntax] Specifications

Are developed by the World Wide Web Consortium (W3C)

Issued as W3C recommendations Not submitted to standards bodies

Page 28: Xml

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

Page 29: Xml

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

Page 30: Xml

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

Page 31: Xml

Transportation Efforts?

DHL RosettaNet Members

UPS FEDEX

Union Pacific

Page 32: Xml

Technical Applications

Application to Application Exchange Human to Application Exchange Search using XML search engines External linking (XLINK) Enables electronic commerce with SMEs

Page 33: Xml

Agenda

XML Primer Processing XML Data Prototype Demonstration Who’s Playing EDI/XML FAQs Discussion & Next Steps

Page 34: Xml

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?

Page 35: Xml

Agenda

XML Primer Processing XML Data Prototype Demonstration Who’s Playing EDI/XML FAQs Discussion & Next Steps

The ENDThe END