inline image, and a line break."> inline image, and a line break.">
Download presentation
Presentation is loading. Please wait.
Published byCoral Rich Modified over 9 years ago
1
An XML Introduction Next Generation Web Data Ian GRAHAM Centre for Academic Technology Tel: 978-4548 Email: Talk: http://www.utoronto.ca/ian/talks/
2
Overview zAn XML example y -- so what’s so special about XML? zThe birth of the Web -- HTML zHTML is not enough -- why? zXML for universal data zCommon uses and applications
3
XML Example: test.xml Title of text XHTML Document Heading of Page here is a paragraph of text. I will include inside this paragraph a bunch of wonky text so that it looks fancy. Here is another paragraph with inline emphasized text, and absolutely no sense of humor. And here is another paragraph, this one containing an <img src="image.gif" alt="waste of time" /> inline image, and a line break.
4
It Looks Like HTML …. zSort of …. zTags look just like HTML tags (although XML lets you ‘create’ your own) zThe “red bits” are special XML stuff (we will discuss them later) zIt’s got.xml at the end
5
The Birth of the Web zThe HyperText Markup Language yA simple language for distributing text zAll that other stuff yURLs, HTTP, CGI...
6
HTML Evolution zStarted with very few tags … zLanguage evolved, as more tags were added yforms ytables yfonts yframes
7
HTML Problems zDesire for personalized tags zWant to put data into HTML form ymathematics, database entries, literary text, poems, purchase orders …. zHTML just isn’t designed for that!
8
HTML Problems (2) zSoftware processing yServer management of data zBut -- HTML is so ill- formed, this is hard! HTML
9
Idea: Back to the Basics zHTML was defined using SGML yStandard Generalized Markup Language yA meta-language for defining languages. zComplex, sophisticated, powerful zIdea: Use SGML
10
Languages based on SGML SGML HTMLTEIDocBook...
11
Problems with SGML zToo complicated a language zRules are too strict yCan’t distribute ‘loosely’ formatted text (like HTML) zNot good in a distributed environment zCan’t mix different data together yCan’t add arbitrary tags
12
Idea (2): “Webified” SGML zNew eXtensible Markup Language: XML zCan use XML to define new languages zDistributes easily on the Web zCan mix different types of data together ycan easily add new tags, and tell a browser what to do with them.
13
Basic XML Rules zTags like in HTML, but... zTechnical details yTag names are case-sensitive yAlways need end tags ySpecial empty-element tags yAlways quote attribute values
14
Like this example ….. Title of text XHTML Document Heading of Page ….. And here is another paragraph, this one containing an inline image, and a line break.
15
XML Things z ySays that this is an XML document z ySays that the meaning of the tags inside (and including) the html “element” are defined here.
16
Evolution of XML zMany XML languages, optimised for different roles yMathML -- for mathematics ySMIL -- for synchronised multimedia yRDF -- for describing “things” yXUL -- for describing the Navigator 5 user interface
17
MathML zDesigned to express semantics of maths zAlso can express layout zCut & paste into Maple, Mathematica z x 2 + 4x + 4 =0 x 2 + 4 &invisibletimes; x + 4 = 0
18
SMIL zSynchronised Multimedia Integration Language zIntegration of multimedia with text, audio, video zSupport in RealPlayer G2
19
SMIL Example <region id="AnimChannel1" title="AnimChannel1" left="0" top="0" height="265" width="280" fit="hidden"/> <animation src="otscompfin.swf" id="Animation" region="AnimChannel1" title="Animation" fill="freeze"/>
20
XHTML: NextGen HTML Title of text XHTML Document Heading of Page here is a paragraph of text. I will include inside this paragraph a bunch of wonky text so that it looks fancy. Here is another paragraph with inline emphasized text, and absolutely no sense of humor. And another paragraph, this one with an <img src="image.gif" alt="waste of time" /> image, and a line break.
21
XHTML zJust like HTML, but based on XML rules zWill support integration of different data into a single document
22
XHTML and other Data Title of XHTML Document Heading of Page … MathML markup … more html stuff goes here … SMIL markup …
23
Displaying XML zMore complicated than HTML yXML represents data only, not how it looks yNeed extra instructions (a “style sheet” document) to define how things should look
24
What Browsers Do Now? yNetscape 5 -- ignores the tags... or so it seems... yInternet Explorer 5 -- shows a tree of elements yNavigator 4, Internet Explorer 4 xUggh…… (can’t handle it)
25
Other Use: Data Abstraction zXML as a universal format for data interchange yMachines exchange data as XML-format messages yEliminates proprietary data formats yLots of XML processing software available
26
XML Messaging Factory Supplier Place order Response
27
XML Messaging Database Other DB Request/send data
28
Example Message Gold sprockel grommets, with matching hamster 12 …. Order something else …..
29
The XML Family Tree SGML XML HTMLTEI...... XHTML SMIL MathML SpeechML RDF XUL
30
Other Examples zXUL: XML User Interface Language yHow Navigator 5 configures its interface zRDF: Resource Description Framework yFor describing things yUsed by Netscape Open Catalog project to define Web accessible resources
31
Summary za framework for distributing data on the Web zan integration tool for mixing different types of data za universal format for exchanging data between machines
32
An XML Introduction Next Generation Web Data Ian GRAHAM Centre for Academic Technology Tel: 978-4548 Email: Talk: http://www.utoronto.ca/ian/talks/
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.