HUFS MCLAB 1 April, 2006 Chap 14. XML and Multimedia 2006. 4. 11 ( 화 ) 한 민 규

Slides:



Advertisements
Similar presentations
XML-XSL Introduction SHIJU RAJAN SHIJU RAJAN Outline Brief Overview Brief Overview What is XML? What is XML? Well Formed XML Well Formed XML Tag Name.
Advertisements

CSCI N241: Fundamentals of Web Design Copyright ©2004 Department of Computer & Information Science Introducing XHTML: Module B: HTML to XHTML.
XML III. Learning Objectives Formatting XML Documents: Overview Using Cascading Style Sheets to format XML documents Using XSL to format XML documents.
What is XML? a meta language that allows you to create and format your own document markups a method for putting structured data into a text file; these.
1 XSLT – eXtensible Stylesheet Language Transformations Modified Slides from Dr. Sagiv.
XML 6.3 DTD 6. XML and DTDs A DTD (Document Type Definition) describes the structure of one or more XML documents. Specifically, a DTD describes:  Elements.
XML Unit 6 October 31. XML, review XML is used to markup data Used to describe information Uses tags like HTML –But all tags are user-defined –Must be.
3 November 2008CIS 340 # 1 Topics To define XML as a technology To place XML in the context of system architectures.
Tutorial 9 Working with XHTML
CS 898N – Advanced World Wide Web Technologies Lecture 21: XML Chin-Chih Chang
Chapter 10 © 2001 by Addison Wesley Longman, Inc. 1 Chapter 10 Sebesta: Programming the World Wide Web.
Tutorial 9 Working with XHTML. XP Objectives Describe the history and theory of XHTML Understand the rules for creating valid XHTML documents Apply a.
26-Jun-15 XML. 2 HTML and XML, I XML stands for eXtensible Markup Language HTML is used to mark up text so it can be displayed to users XML is used to.
XML(EXtensible Markup Language). XML XML stands for EXtensible Markup Language. XML is a markup language much like HTML. XML was designed to describe.
Jackson, Web Technologies: A Computer Science Perspective, © 2007 Prentice-Hall, Inc. All rights reserved Chapter 7 Representing Web Data:
Tutorial 11 Creating XML Document
September 15, 2003Houssam Haitof1 XSL Transformation Houssam Haitof.
Document Type Definitions. XML and DTDs A DTD (Document Type Definition) describes the structure of one or more XML documents. Specifically, a DTD describes:
Introducing XHTML: Module B: HTML to XHTML. Goals Understand how XHTML evolved as a language for Web delivery Understand the importance of DTDs Understand.
Copyright © 2002 ProsoftTraining. All rights reserved. XML Document Design.
Introducing HTML & XHTML:. Goals  Understand hyperlinking  Understand how tags are formed and used.  Understand HTML as a markup language  Understand.
ECA 228 Internet/Intranet Design I Intro to XML. ECA 228 Internet/Intranet Design I HTML markup language very loose standards browsers adjust for non-standard.
XP New Perspectives on XML Tutorial 4 1 XML Schema Tutorial – Carey ISBN Working with Namespaces and Schemas.
XP New Perspectives on XML Tutorial 3 1 DTD Tutorial – Carey ISBN
Sheet 1XML Technology in E-Commerce 2001Lecture 6 XML Technology in E-Commerce Lecture 6 XPointer, XSLT.
XML Anisha K J Jerrin Thomas. Outline  Introduction  Structure of an XML Page  Well-formed & Valid XML Documents  DTD – Elements, Attributes, Entities.
An Introduction to XML Patrice Bonhomme & Laurent Romary Lucid-ITLORIA eXtensible Markup Language version 1.0 Recommendation,
Introduction to XML cs3505. References –I got most of this presentation from this site –O’reilly tutorials.
Why XML ? Problems with HTML HTML design - HTML is intended for presentation of information as Web pages. - HTML contains a fixed set of markup tags. This.
XML CPSC 315 – Programming Studio Fall 2008 Project 3, Lecture 1.
XP New Perspectives on XML Tutorial 6 1 TUTORIAL 6 XSLT Tutorial – Carey ISBN
XP 1 CREATING AN XML DOCUMENT. XP 2 INTRODUCING XML XML stands for Extensible Markup Language. A markup language specifies the structure and content of.
Introduction to XML Eugenia Fernandez IUPUI. What is XML? From the World Wide Web Consortium (W3C) The Extensible Markup Language (XML) is the universal.
An Introduction to XML Presented by Scott Nemec at the UniForum Chicago meeting on 7/25/2006.
1 © Netskills Quality Internet Training, University of Newcastle Introducing XML © Netskills, Quality Internet Training University.
XML 1 Enterprise Applications CE00465-M XML. 2 Enterprise Applications CE00465-M XML Overview Extensible Mark-up Language (XML) is a meta-language that.
XML - Why: The HTML-Dilemma HTML, SGML, XML - How: Syntax, Concept, Language Elements Basics Well-formed XML-Documents (without DTD) Valid XML-Documents.
1 CIS336 Website design, implementation and management (also Semester 2 of CIS219, CIS221 and IT226) Lecture 6 XSLT (Based on Møller and Schwartzbach,
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.
XML About XML Things to be known Related Technologies XML DOC Structure Exploring XML.
XML TUTORIAL Portions from w3 schools By Dr. John Abraham.
1 Tutorial 13 Validating Documents with DTDs Working with Document Type Definitions.
XML A web enabled data description language 4/22/2001 By Mark Lawson & Edward Ryan L’Herault.
ECA 228 Internet/Intranet Design I XSLT Example. ECA 228 Internet/Intranet Design I 2 CSS Limitations cannot modify content cannot insert additional text.
CP3024 Lecture 9 XML: Extensible Markup Language.
XML Instructor: Charles Moen CSCI/CINF XML  Extensible Markup Language  A set of rules that allow you to create your own markup language  Designed.
XP 1 Creating an XML Document Developing an XML Document for the Jazz Warehouse XML Tutorial.
Lecture 16 Introduction to XML Boriana Koleva Room: C54
1 Introduction to XML XML stands for Extensible Markup Language. Because it is extensible, XML has been used to create a wide variety of different markup.
XML Design Goals 1.XML must be easily usable over the Internet 2.XML must support a wide variety of applications 3.XML must be compatible with SGML 4.It.
1 Tutorial 11 Creating an XML Document Developing a Document for a Cooking Web Site.
1 Tutorial 14 Validating Documents with Schemas Exploring the XML Schema Vocabulary.
Tutorial 13 Validating Documents with Schemas
INFSY 547: WEB-Based Technologies Gayle J Yaverbaum, PhD Professor of Information Systems Penn State Harrisburg.
COMP9321 Web Application Engineering Semester 2, 2015 Dr. Amin Beheshti Service Oriented Computing Group, CSE, UNSW Australia Week 4 1COMP9321, 15s2, Week.
XML A Language Presentation. Outline 1. Introduction 2. XML 2.1 Background 2.2 Structure 2.3 Advantages 3. Related Technologies 3.1 DTD 3.2 Schemas and.
Tutorial 9 Working with XHTML. New Perspectives on HTML, XHTML, and XML, Comprehensive, 3rd Edition 2 Objectives Describe the history and theory of XHTML.
C Copyright © 2011, Oracle and/or its affiliates. All rights reserved. Introduction to XML Standards.
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.
 XML derives its strength from a variety of supporting technologies.  Structure and data types: When using XML to exchange data among clients, partners,
Jackson, Web Technologies: A Computer Science Perspective, © 2007 Prentice-Hall, Inc. All rights reserved Chapter 7 Representing Web Data:
SEMI-STRUCTURED DATA (XML) 1. SEMI-STRUCTURED DATA ER, Relational, ODL data models are all based on schema Structure of data is rigid and known is advance.
Tutorial 9 Working with XHTML. XP Objectives Describe the history and theory of XHTML Understand the rules for creating valid XHTML documents Apply a.
Digital Multimedia, 2nd edition Nigel Chapman & Jenny Chapman Chapter 14 This presentation © 2004, MacAvon Media Productions XML.
1 Extensible Stylesheet Language (XSL) Extensible Stylesheet Language (XSL)
Rendering XML Documents ©NIITeXtensible Markup Language/Lesson 5/Slide 1 of 46 Objectives In this session, you will learn to: * Define rendering * Identify.
1 Extensible Stylesheet Language (XSL) Extensible Stylesheet Language (XSL)
Extensible Markup Language (XML) Pat Morin COMP 2405.
Unit 4 Representing Web Data: XML
Chapter 7 Representing Web Data: XML
Presentation transcript:

HUFS MCLAB 1 April, 2006 Chap 14. XML and Multimedia ( 화 ) 한 민 규

HUFS MCLAB 2 April, 2006 Contents DirectShow Overview DirectShow Filter Type Support various hardwares DirectShow Function Setup DirectShow SDK Microsoft Component Model 정지영상 캡쳐 프로그램 Appendix A. WDM

HUFS MCLAB 3 April, 2006 Overview

HUFS MCLAB 4 April, 2006 Overview(1/2) Since HTML’s tags are not sufficient for the class of Web pages as it has evolved, new tags are requried. ▲ why not sufficient?  Ex) search to “chocolate mousse’s” on the web HTML 에 Sort 하기 위한 어떤 정보 (new tag) 를 더 넣은 것은 HTML 을 더 무겁게 하고 unmanageable 하게 할 것이다. SGML (Standard Generalized Markup Language) ▲ 규정된 response time 동안 parsing 하기 어렵다. SGML Subset  XML ▲ Overhead 없이 SGML 에서 제공하는 것을 지원하게 설계되었다. ▲ XML 은 Web Doucment 를 만들기 위해 웹 디자이너가 자신의 Tag Set 을 define 할 수 있게 한다. ▲ HTML 의 제한에서 자유로워짐  규정된 Tag 의 사용으로써 Content 를 표현하려 하던 Web 에서 Content 를 중심으 로 한 Document 의 개념으로 확장됨  DTD (Document Type Definition)

HUFS MCLAB 5 April, 2006 Overview(2/2) XML 1.0 was adopted as a World Wide Web Consortium Recommendation early in DTD (Document Type Definition) formal definition of set of elements, their attributes and constraints on usage

HUFS MCLAB 6 April, 2006 XML(eXtensible Markup Language) Although XML itself has no direct support for multimedia, it underlies the more specialized markup language SMIL (Synchronized Multimedia Integration Language) and SVG (Scalable Vector Graphics). ▲ ‘ Like XHTML, except that you can make up your own tags and attribute names ’ ▲ …   Properly nested ▲ attribute-name = "attribute-value" ▲ &entity-reference

HUFS MCLAB 7 April, 2006 Well-formed XML

HUFS MCLAB 8 April, 2006 XML – Structure Model The structure which XML markup imposes on a document can be represented in the form of a tree, sometimes called a structure model Structure Model

HUFS MCLAB 9 April, 2006 DTDs(Document Type Definition) Validity : If a well-formed document has a specification attached to it and conforms to the rules in that specification, the document is said to be valid. In XML, there are two ways of providing such a specification. The older, better-established method is by means of a DTDs; a newer method, which is gaining in popularity, is by an XML Schema. DTD 에는 XML 문서의 구성요소 ( 태그 및 속성 ) 들을 어떻게 사용하는지를 정 의하고 그런 구성요소 ( 태그 및 속성 ) 들 사이의 관계나 데이터 타입, 출현빈 도 등의 규칙들을 정의한다. DTD 는 XML 문서내에서 작성될 수도 있고, 별도의 파일로 작성될 수도 있다.

HUFS MCLAB 10 April, 2006 Referencing a DTD XML declaration ▲ Example of a Processing Instruction (PI)   PIs beginning with “xml” are used for special purposes in XML processing. DOCTYPE declaration ▲ If a DTD in an external file is being used, the XML declaration should be followed by a DOCTYPE declaration resembling the following:   XML 문서작성자는 XML 문서가 어떤 마크업 언어로 작성된 것인지를 XML 문서를 해석하는 측에 알려줄 목적으 로 문서 유형 선언을 하게 된다.  DOCTYPE document element  DOCTYPE books : books – document root element  PUBLIC 키워드를 사용해서 문서 유형을 선언하는 문법 : PUBLIC 키워드는 공개적인 사용을 위해서 업체 및 국제공인 단체에서 작성된 외부 DTD 서브셋 문서를 지정할 경우 사용된다.  “-//DMM/BOOK Bibliographic information 1.0//EN” : [+,-]//DTD 를 개발 및 유지보수 업체명 //DTD 명 및 버전번호 // 사용된 언어 + : IS 와 같은 국제적으로 공인된 단체, - : 국제적으로 공인된 단체가 아닌 업체  : DTD 문서를 다운로드할 수 있는 URL 경로를 기술

HUFS MCLAB 11 April, 2006 Element Declarations in DTDs ▲  EMPTY – no content. ▲  (#PCDATA)* - obscure way of referring to textual content. ▲  Books must consist of one or more book elements. ▲  Where a sequence of elements must occur in order, ther are writeen on affter another, separated by commas. ▲  Note the use of brackets to delimit the choice.

HUFS MCLAB 12 April, 2006 Attribute-list declarations in DTDs(1/2) In a DTD, an element’s attributes are listed in a separate attribute-list declaration. ▲  CDATA indicates that the attribute takes values which are character data(strings)  #REQURIED  must be given an explicit value  #IMPLED  attribute is optional

HUFS MCLAB 13 April, 2006 Attribute-list declarations in DTDs(2/2) Default value – if attribute is omitted, takes on specified value ▲

HUFS MCLAB 14 April, 2006 Namespaces In order to make it easy to generate unique names, XML namespaces define a two-level naming system that ensures that different names can be referred to differently, without requiring any administrative mechanism to control the use of names globally. Where namespaces are being used, an element or attribute name may have a prefix, which is separated form the name by a colon. (paper prefix bbl:title, lecturers prefix ppl:title) Dr … On the use of brains Dr … On the use of brains

HUFS MCLAB 15 April, 2006 Namespaces Prefixed name is an abbreviation for combination of URL + name, URLs are always unique, so combination is unique Assign namespace URL to an attribute ▲ Xmlns:prefix Usually done in start tag of the document element, so prefix is in scope throughout document ▲ You can also assign a namespace URL to an attribute simply called xmlns, with no colon or suffix ▲ ▲ You can’t use a namespace declaration inside a DTD, but you can use prefixed names, so that, after the DTD has been processed, documents that use it will be valid.

HUFS MCLAB 16 April, 2006 Stylesheets No layout information at all in XML ▲ This must be done with an external stylesheet ▲ Use xml-stylesheet instruction  CSS and XML(1/3) ▲ Using CSS with XML is a straightforward generalization of using CSS with HTML  You simply define rules for each element type in your XML document.  XML tends to be used in a slightly different way from HTML.  CSS1  Support HTML & CSS2  Support HTML & XML  In CSS2, it has a lengthy list of possible values, many of them concerned with table elements

HUFS MCLAB 17 April, 2006 CSS and XML(2/3) 스타일 쉬트는 여러 개의 룰셋 (Rule set) 으로 구성된다. CSS example Book { display:block; } Title { font-family:fantasy; font-size:large; color:blue; display:block; } author { font-family:fantasy; font-size:large; color:green; display:block; } Selector Rule set Attribute name : value display attribute Block Inline List-item none 앞, 뒤의 element 에 대해 줄바꿈 사용 앞, 뒤의 element 에 대해 줄바꿈 없음 Block 과 동일한 기능에 목록 표시 추가 지정한 element 에 대해 출력안함

HUFS MCLAB 18 April, 2006 CSS and XML(3/3) attr(x) to insert value of X attribute Use element Selector ▲ Price:before { content: “\00A3” attr(sterling);} Use attribute Selector ▲ Price[euro]:after { content:”/\20AC” attr(euro);}

HUFS MCLAB 19 April, 2006 Problems of CSS & XSL CSS 는 출력되는 내용을 XML 문서의 원래 구조대로 출력하는 것을 원칙으로 한다. 입력 XML 문서와 전혀 다른 구조로 출력 하는 것은 불가능 하다. CSS 는 XML 문서에 없는 새로운 내용이나 계산된 결과를 출력 할 수 있는 기능을 제공하지 않는다. 폰트나 색깔, 여백주기 그 리고 불릿기호, 순번, 라벨을 엘리먼트의 앞뒤에 삽입할 수 있 는 정도의 간단한 스타일 밖에 지정할 수 없다. CSS 는 XML 문서의 모든 내용을 출력할수 없다. 예를 들어 속 성값을 출력할 수 있는 방법은 전혀 제공되지 않는다.

HUFS MCLAB 20 April, 2006 XSLT and XSL-FO(1/2) CSS does not really incorporate a layout model suitable for paged media, such as print The Extensible Stylesheet Language(XSL) was devised to overcome these deficiencies of CSS. ▲ It is a much more complex language than CSS, having many of the characteristics of a functional programming language with pattern matching. ▲ Its approach to formatting uses a two-stage process. XML DOC XSL DOC + XSLD Transformation Formatter PDF DOC Acrobat Reader App XSL-FO Document Result Tree XSL Processor Transformation ProcessFormatting Process

HUFS MCLAB 21 April, 2006 XSLT and XSL-FO(2/2) XSLD Three Part ▲ XSLT(XSLD Transformation) ▲ XPath(XML Path Language) ▲ XSL-FO(XSL formatting Objects) In order to transform the nodes of a tree, it is necessary to be able to address them using their position in the hierarchy of the tree structure. ▲ XPath can be used to define links between XML documents. ▲ XSLD-FO comprises the formatting objects themselves. Formally, this is now known simply as XSLD, but because of the possible confusion this may cause, it is more often referred to as XSL-FO, where the FO stands for ‘formatting objects’ ▲ XSLT and XSL-FO are themselves XML. That is, an XSLT stylesheet is an XML document that uses a vocabulary of elements suitable for specifying tree transformations. Essentially, an XSLT stylesheet comprises a collection of templates, which define how to build part of a new tree out of parts of the old one.

HUFS MCLAB 22 April, 2006 Linking in XML Three components ▲ XPointer – language for identifying link destinations ▲ XPath – language for addressing nodes in a structure tree, used by XPointer ▲ XLink – a set of attributes for constructing elements that serve as links XPath ▲ XPath does not use the syntax of XML proper. It uses its own notation, which is more suited for the purpose of describing locations in a document. ▲ A location or set of locations is described in XPath by a location path. ▲ Location path  Set of instructions (location steps), separated by /s, telling you how to reach a specific point in a document. ▲ Context node  The node reached by following any preceding location steps.

HUFS MCLAB 23 April, 2006 Location Steps / - root node A location path that begins with a / is an absolute path The simplest form of location step consists of the name of an element type. ▲ Element name[number], e.g. book[2]  Particular child node of that element type, e.g. 2 nd book child ▲ Instead of selecting a node by name from among the context node’s children, you can select it from various other sets of nodes, which are structurally related to the context node in various ways.  Axes is simple method for select a node.

HUFS MCLAB 24 April, 2006 XML Document Tree Root Element Attribute Text Element Text 2 nd Node Set Element Node Text Node Attribute Node Location path /root element/child element/ …/ child element Absolute path /root element node/ child element node/ … / child element node Relative path./child element node/ … /child element node Sibling path../sibling element node

HUFS MCLAB 25 April, 2006 Axis Syntax Axis::NodeTest[Predicate] Axis

HUFS MCLAB 26 April, 2006 Axis(Con’t) Nodetest[Predicate]

HUFS MCLAB 27 April, 2006 Axes Tree

HUFS MCLAB 28 April, 2006

HUFS MCLAB 29 April, 2006

HUFS MCLAB 30 April, 2006 XPointer

HUFS MCLAB 31 April, 2006 XLink