1 CS 502: Computing Methods for Digital Libraries Lecture 6 DTDs.

Slides:



Advertisements
Similar presentations
CSCI N241: Fundamentals of Web Design Copyright ©2004 Department of Computer & Information Science Introducing XHTML: Module B: HTML to XHTML.
Advertisements

XML and Enterprise Computing. What is XML? Stands for “Extensible Markup Language” –similar to SGML and HTML –document “tags” are used to define content.
HTML/XML XHTML Authoring. Creating Tables  Table: An arrangement of horizontal rows and vertical columns. The intersection of a row and a column is called.
Pengantar Teknologi Mobile 13 Antonius Rachmat C, S.Kom, M.Cs XHTML.
History Leading to XHTML
XML Document Type Definitions ( DTD ). 1.Introduction to DTD An XML document may have an optional DTD, which defines the document’s grammar. Since the.
Tutorial 9 Working with XHTML
XHTML 16-Apr-17.
XML Study-Session: Part II Validating XML Documents.
CS 898N – Advanced World Wide Web Technologies Lecture 21: XML Chin-Chih Chang
1 XML: Document Type Definitions 2 Road Map  Introduction to DTDs  What’s a DTD?  Why are they important?  What will we cover?  Our First DTD 
More XML namespaces, DTDs CS 431 – February 16, 2005 Carl Lagoze – Cornell University.
Tutorial 9 Working with XHTML. XP Objectives Describe the history and theory of XHTML Understand the rules for creating valid XHTML documents Apply a.
Creating a Well-Formed Valid Document. 2 Objectives Introducing XHTML Creating a Well-Formed Document Creating a Valid Document Creating an XHTML Document.
F DIGITAL MEDIA: COMMUNICATION AND DESIGN INTRODUCTION TO XML AND XHTML.
COS 381 Day 14. Agenda Questions?? Resources Source Code Available for examples in Text Book in Blackboard
1 HTML’s Transition to XHTML. 2 XHTML is the next evolution of HTML Extensible HTML eXtensible based on XML (extensible markup language) XML like HTML.
1 CS 430: Information Discovery Lecture 15 Library Catalogs 3.
Working with XHTML Creating a Well-Formed Valid Document.
XP Tutorial 9New Perspectives on Creating Web Pages with HTML, XHTML, and XML 1 Working with XHTML Creating a Well-Formed Valid Document Tutorial 9.
XP The University of Akron Summit College Business Technology Department Computer Information Systems 2440: 140 Internet Tools Instructor: Enoch E. Damson.
1 CS 502: Computing Methods for Digital Libraries Lecture 4 Text.
Session III Chapter 7 – Entities and Notation in DTD’s
 XHTML is aimed to replace HTML  XHTML is almost identical to HTML 4.01  XHTML is a stricter and cleaner version of HTML  XHTML is HTML defined as.
XML Technologies Surekha Akula
Document Type Definitions Kanda Runapongsa Dept. of Computer Engineering Khon Kaen University.
1 CS 430: Information Discovery Lecture 14 Automatic Extraction of Metadata.
XML - DTD. The building blocks of XML documents Elements, Tags, Attributes, Entities, PCDATA, and CDATA.
XML What is XML? XML v.s. HTML XML Components Well-formed and Valid Document Type Definition (DTD) Extensible Style Language (XSL) SAX and DOM.
1 herbert van de sompel CS 502 Computing Methods for Digital Libraries Cornell University – Computer Science Herbert Van de Sompel
Introduction. Document Structure Overview  XML declaration (prolog)  Document type declaration  Root element (namespace)  Document header  Document.
3 XHTML.
XML 1 Enterprise Applications CE00465-M XML. 2 Enterprise Applications CE00465-M XML Overview Extensible Mark-up Language (XML) is a meta-language that.
Cornell CS 502 More XML XHTML, namespaces, DTDs CS 502 – Carl Lagoze – Cornell University.
XML Extensible Markup Language. What is XML? ● meta-markup language ● a language for defining a family of languages ● semantic/structured mark-up language.
XHTML. Introduction to XHTML What Is XHTML? – XHTML stands for EXtensible HyperText Markup Language – XHTML is almost identical to HTML 4.01 – XHTML is.
What is XML?  XML stands for EXtensible Markup Language  XML is a markup language much like HTML  XML was designed to carry data, not to display data.
Lecture 6 XML DTD Content of.xml fileContent of.dtd file.
1 herbert van de sompel CS 502 Computing Methods for Digital Libraries Cornell University – Computer Science Herbert Van de Sompel
XML A web enabled data description language 4/22/2001 By Mark Lawson & Edward Ryan L’Herault.
1 Chapter 10: XML What is XML What is XML Basic Components of XML Basic Components of XML XPath XPath XQuery XQuery.
XP Tutorial 9 1 Working with XHTML. XP SGML 2 Standard Generalized Markup Language (SGML) A standard for specifying markup languages. Large, complex standard.
1 CS/INFO 430 Information Retrieval Lecture 16 Metadata 3.
CIS 451: XML DTDs Dr. Ralph D. Westfall February, 2009.
Lesson 4.
More XML namespaces, DTDs CS 431 – Carl Lagoze – Cornell University.
Introduction to XML This presentation covers introductory features of XML. What XML is and what it is not? What does it do? Put different related technologies.
XML Instructor: Charles Moen CSCI/CINF XML  Extensible Markup Language  A set of rules that allow you to create your own markup language  Designed.
17 Apr 2002 XML Syntax: Documents Andy Clark. Basic Document Structure Element tags – Elements have associated attributes Text content Miscellaneous –
Lecture 16 Introduction to XML Boriana Koleva Room: C54
Internet & World Wide Web How to Program, 5/e. © by Pearson Education, Inc. All Rights Reserved.2.
1 herbert van de sompel CS 502 Computing Methods for Digital Libraries Cornell University – Computer Science Herbert Van de Sompel
COMP9321 Web Application Engineering Semester 2, 2015 Dr. Amin Beheshti Service Oriented Computing Group, CSE, UNSW Australia Week 4 1COMP9321, 15s2, Week.
Copyright © 2003 Pearson Education, Inc. Slide 1-1 Created by Cheryl M. Hughes The Web Wizard’s Guide to XHTML by Cheryl M. Hughes.
XP Tutorial 9New Perspectives on HTML and XHTML, Comprehensive 1 Working with XHTML Creating a Well-Formed Valid Document Tutorial 9.
XML Technology. Emerging Importance of XML –HTML-tagging is display oriented. –XML-based content tagging has important uses: data mining role-oriented.
Tutorial 9 Working with XHTML. New Perspectives on HTML, XHTML, and XML, Comprehensive, 3rd Edition 2 Objectives Describe the history and theory of XHTML.
1 CS 430: Information Discovery Lecture 8 Collection-Level Metadata Vector Methods.
CIS 228 The Internet 9/20/11 XHTML 1.0. “Quirks” Mode Today, all browsers support standards Compliant pages are displayed similarly There are multiple.
Jackson, Web Technologies: A Computer Science Perspective, © 2007 Prentice-Hall, Inc. All rights reserved Chapter 7 Representing Web Data:
Tutorial 9 Working with XHTML. XP Objectives Describe the history and theory of XHTML Understand the rules for creating valid XHTML documents Apply a.
XML Introduction to XML Extensible Markup Language.
1 CS 430: Information Discovery Lecture 7 Automatic Generation of Catalog Records.
Extensible Markup Language (XML) Pat Morin COMP 2405.
Creating a Well-Formed Valid Document
CITA 330 Section 3 XHTML.
Tutorial 9 Working with XHTML
Web Programming Maymester 2004
Tutorial 9 Working with XHTML
Allyson Falkner Spokane County ISD
Presentation transcript:

1 CS 502: Computing Methods for Digital Libraries Lecture 6 DTDs

2 Markup and Style Sheets style sheet rendering software document content and structure formatted document

3 Computer Systems for Markup and Style Sheets style sheet rendering software document with XML markup formatted document DTD Client Server(s)

4 Document with XML Markup (Metadata) Digital Libraries and the Problem of Purpose David M. Levy Corporation for National Research Initiatives January 2000 article Continued on next slide

5 Continued from previous slide /january2000-levy English Continued on next slide Document with XML Markup (Metadata) - 2

6 Document with XML Markup (Metadata) - 3 Continued from previous slide D-Lib Magazine Copyright (c) David M. Levy

7 The D-Lib Magazine DTD - 1 Continued on next slide

8 The D-Lib Magazine DTD - 2 Continued on next slide

9 The D-Lib Magazine DTD - 3 <!ATTLIST date date-type CDATA #FIXED "publication"> <!ATTLIST type resource-type CDATA #FIXED "work"> Continued on next slide

10 The D-Lib Magazine DTD - 4 <!ATTLIST identifier uri-type (DOI | URL) #REQUIRED>

11 The D-Lib Magazine DTD - 5 <!ATTLIST relation rel-type CDATA #FIXED "InSerial"> Continued on next slide

12 The D-Lib Magazine DTD - 6

13 Constructing a DTD: Grammar Every DTD has a grammar that defines: entities elements The grammar is expressed as a set of rules that can be processed automatically.

14 Constructing a DTD: Parameters A parameter entity is a shorthand notation, e.g., Example. Given the following declarations: The replacement text for the entity "book" is: La Peste: Camus, © 1947 Éditions Gallimard.

15 An Example (DTD for XHTML) Objective: Design a markup specification that is (a) Correct XML (b) Similar to HTML, so that users of HTML can learn it easily existing HTML documents can be converted (c) Has features that permit long-term growth in the web

16 Some Assumptions Full Unicode and UTF-8 support All tags are structural no,, etc Empty tags defined as necessary e.g.,, Enforce syntax rules e.g., correct nesting

17 A Minimal Document <!DOCTYPE xhtml PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "DTD/xhtml1-strict.dtd"> Virtual Library Moved to vlib.org.

18 Constructing a DTD: Entities

19 Constructing a DTD: Entities Latin-1 characters <!ENTITY % HTMLlat1 PUBLIC "-//W3C//ENTITIES Latin 1 for XHTML//EN" " Special characters <!ENTITY % HTMLspecial PUBLIC "-//W3C//ENTITIES Special for XHTML//EN" " Symbols <!ENTITY % HTMLsymbol PUBLIC "-//W3C//ENTITIES Symbols for XHTML//EN" "

20 The Full Example (XHTML) The full DTD is: