CS 331 – Programming LanguagesDate: Internet Programming Group Presenter: Aren Ray Topics: Internet Programming XML
CS 331 – Programming LanguagesDate: History of the World Wide Web 1990: Sir Tim Berners-Lee – CERN Sharing information among researchers World Wide Web Conference in 1994 W3C Commercialization Boom/Bust Where are we now?
CS 331 – Programming LanguagesDate: HTTP Hypertext Transfer Protocol Purpose How it works Client (user) Request messages and URLs query=item#fragment Other common schemes: https, ftp, mailto Server (website) Process and/or reply
CS 331 – Programming LanguagesDate: History of Browser Clients 1991: WorldWideWeb 1992: Unix and Mac browsers appear 1993: Mosaic 1994: Netscape : IE 1.0 introduced in Win 95
CS 331 – Programming LanguagesDate: “Browser Wars” Netscape dominant, IE challenges Rapid-fire versions IE pulls ahead Included with Windows (then Macs) More money 1998: Antitrust Lawsuit (US v Microsoft) Settled in 2001
CS 331 – Programming LanguagesDate: Markup Languages Standard Generalized Markup Language Metalanguage Hypertext Markup Language
CS 331 – Programming LanguagesDate: HTML - Elements Types Structural: Presentational,, Hypertext: Attribute: Content: Bold Text
CS 331 – Programming LanguagesDate: HTML Versions 1993: HTML : HTML 2.0 Tables Image Maps Internationalization HTML 3.0 (Never Implemented) Complex Math Elements Text Flow 1997: HTML 4.0 “Flavors” Strict Transitional Frameset
CS 331 – Programming LanguagesDate: HTML – Code Example This is the title of the page. This is a line of text. This is a URL link Bold Text List Item 1 List Item 2 Cell 1 Cell 2
CS 331 – Programming LanguagesDate: HTML – Display Example
CS 331 – Programming LanguagesDate: XML - Overview What is XML? Extensible Markup “Language” Specification User-defined Elements History Growth of the Web 1996: Jon Bosak Support from Microsoft 1998: W3C Recommendation Current: XML 1.0 & 1.1
CS 331 – Programming LanguagesDate: XML – Purpose Carry vs. Display XML and HTML Doesn’t “do” anything
CS 331 – Programming LanguagesDate: XML – Processing Files Simple API for XML Extraction Document Object Model Navigation Extensible Stylesheet Language Display/Printing
CS 331 – Programming LanguagesDate: XML – Documents Well-Formed Documents Syntax rules Content More content Valid Documents (User-defined rules) Document Type Definition XML Schema W3C
CS 331 – Programming LanguagesDate: XML – Example (1) Code Everyday Italian Giada De Laurentiis
CS 331 – Programming LanguagesDate: XML – Example (2)
CS 331 – Programming LanguagesDate: XHTML Document HTML saved in Microsoft Word <html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns=" …
CS 331 – Programming LanguagesDate: XHTML Page MS Office HTML file size: 2687 B Notepad HTML file size: 115 B
CS 331 – Programming LanguagesDate: XML - Summary Generalization User-Defined Elements & Rules Stores Data Advantages Text-Based Unicode Support Hierarchical Structure Disadvantages Content Attributes Verbosity Redundancy/Inefficiency
CS 331 – Programming LanguagesDate: XML – Future Directions Document Authoring
CS 331 – Programming LanguagesDate: Sources x-xml2008prevw.html x-xml2008prevw.html Lee/FAQ.html Lee/FAQ.html