Copyright © 2002 ProsoftTraining. All rights reserved. XML Document Design.

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

XML III. Learning Objectives Formatting XML Documents: Overview Using Cascading Style Sheets to format XML documents Using XSL to format XML documents.
XML: Extensible Markup Language
XML/EDI Overview West Chester Electronic Commerce Resource Center (ECRC)
An Introduction to XML Based on the W3C XML Recommendations.
1 CP3024 Lecture 9 XML revisited, XSL, XSLT, XPath, XSL Formatting Objects.
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.
1 COS 425: Database and Information Management Systems XML and information exchange.
XML Introduction What is XML –XML is the eXtensible Markup Language –Became a W3C Recommendation in 1998 –Tag-based syntax, like HTML –You get to make.
XML Introduction By Hongming Yu Feb 6 th, Index Markup Language: SGML, HTML, XML An XML example Why is XML important XML introduction XML applications.
September 15, 2003Houssam Haitof1 XSL Transformation Houssam Haitof.
Manohar – Why XML is Required Problem: We want to save the data and retrieve it further or to transfer over the network. This.
Chapter 12 Creating and Using XML Documents HTML5 AND CSS Seventh Edition.
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.
WPF chapter 15 Dr. John Abraham Professor UTPA. WPF –an introduction WPF provides a single platform capable of handling graphics, audio and video. WPF.
Scientific Markup Languages Birds of a Feather A 10-Minute Introduction to XML Timothy W. Cole Mathematics Librarian & Professor of.
CREATED BY ChanoknanChinnanon PanissaraUsanachote
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.
WORKING WITH XSLT AND XPATH
Chapter 1 Understanding the Web Design Environment Principles of Web Design, 4 th Edition.
Week 1 Understanding the Web Design Environment. 1-2 HTML: Then and Now HTML is an application of the Standard Generalized Markup Language Intended to.
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.
Sheet 1XML Technology in E-Commerce 2001Lecture 7 XML Technology in E-Commerce Lecture 7 XSL Formatting Objects, Java Data Binding.
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 is designed to describe data and to focus on what data is. HTML is designed to display data and to focus on how data looks.  XML is created to structure,
Intro. to XML & XML DB Bun Yue Professor, CS/CIS UHCL.
Session IV Chapter 9 – XML Schemas
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 Chapter 10: XML What is XML What is XML Basic Components of XML Basic Components of XML XPath XPath XQuery XQuery.
Dr. Ahmet Cengizhan Dirican BIL 374 Internet Technologies 7. XML.
Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter X IXXXXXXXXXX XXXXXX.
XML 2nd EDITION Tutorial 1 Creating An Xml Document.
Windows Presentation Foundation (WPF) Chapter 16 Dr. Abraham.
Waqas Anwar Next SlidePrevious Slide. Waqas Anwar Next SlidePrevious Slide XML XML stands for EXtensible Markup Language.
1 Introduction  Extensible Markup Language (XML) –Uses tags to describe the structure of a document –Simplifies the process of sharing information –Extensible.
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.
XP 1 Creating an XML Document Developing an XML Document for the Jazz Warehouse XML Tutorial.
1 XML eXtensible Markup Language. 2 XML vs. HTML HTML is a HyperText Markup language HTML is a HyperText Markup language Designed for a specific application,
XML Introduction. Markup Language A markup language must specify What markup is allowed What markup is required How markup is to be distinguished from.
XML Basics A brief introduction to XML in general 1XML Basics.
1 Tutorial 11 Creating an XML Document Developing a Document for a Cooking Web Site.
XP New Perspectives on XML, 2 nd Edition Tutorial 8 1 TUTORIAL 8 CREATING ELEMENT GROUPS.
COMP9321 Web Application Engineering Semester 2, 2015 Dr. Amin Beheshti Service Oriented Computing Group, CSE, UNSW Australia Week 4 1COMP9321, 15s2, Week.
Web Technologies Lecture 4 XML and XHTML. XML Extensible Markup Language Set of rules for encoding a document in a format readable – By humans, and –
C Copyright © 2011, Oracle and/or its affiliates. All rights reserved. Introduction to XML Standards.
 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:
Digital Multimedia, 2nd edition Nigel Chapman & Jenny Chapman Chapter 14 This presentation © 2004, MacAvon Media Productions XML.
XML Notes taken from w3schools. What is XML? XML stands for EXtensible Markup Language. XML was designed to store and transport data. XML was designed.
Rendering XML Documents ©NIITeXtensible Markup Language/Lesson 5/Slide 1 of 46 Objectives In this session, you will learn to: * Define rendering * Identify.
1 XML eXtensible Markup Language. 2 Introduction and Motivation Dr. Praveen Madiraju Modified from Dr.Sagiv’s slides.
Beyond HTML: Extensible Markup Language (XML)
Extensible Markup Language (XML) Pat Morin COMP 2405.
Unit 4 Representing Web Data: XML
Database Processing with XML
Chapter 7 Representing Web Data: XML
Chapter X IXXXXXXXXXXXXXXXX.
XML Introduction By Hongming Yu Feb 6th, 2002.
CSE591: Data Mining by H. Liu
Unit 6 - XML Transformations
Presentation transcript:

Copyright © 2002 ProsoftTraining. All rights reserved. XML Document Design

Copyright © 2002 ProsoftTraining. All rights reserved. Lesson 1: Introduction to XML

Objectives Explain the basic concepts of markup languages List the goals of XML Describe the relationship between XML and HTML Name the organizations that govern and contribute to XML development Define XHTML Identify browsers that support XML

What Is XML? Extensible Markup Language Hypertext Markup Language Tags Tiger Woods

Markup Languages Markup WYSIWYG

SGML Roots STML and HTML –Meta-language HTML went astray HTML tried to recover its vision –Cascading Style Sheets SGML and XML –Extensible Stylesheet Language

XML Directives Design goals for XML XML implementation

XHTML, XML and HTML Extensible Hypertext Markup Language 1.0 –No tags

XML Development Organizations W3C Oasis BizTalk XML.org Arbortext Microsoft XML Web Services IBM XML Zone Apache XML Project

XML Parsers and Browsers Parsers –Validating –Non-validating Browsers –Mozilla –Microsoft Internet Explorer 6 –Opera –Netscape Navigator 7

XML Alone Is Insufficient No linking capability No formatting capabilities XML documents are abstract –EDI

Implementing XML XML schema Development tools

Benefits of XML One source Management of metadata Universal representation and meaning Management of content One to many Database publishing

Summary Explain the basic concepts of markup languages List the goals of XML Describe the relationship between XML and HTML Name the organizations that govern and contribute to XML development Define XHTML Identify browsers that support XML

Copyright © 2002 ProsoftTraining. All rights reserved. Lesson 2: Well-Formed XML Documents

Objectives Construct XML documents Explain the differences between tags and elements in XML Specify the five rules for creating a well- formed XML document Convert an HTML document into an XHTML file Create a well-formed XML document

What Is an XML Document? HTML: The lazy developer’s dream XML: The lazy developer’s nightmare

Tags and Elements in XML

Rules for Well-Formed XML Opening and closing tags New rules for empty tags Attribute values Nesting Matching case between tags Simple well-formed XML XHTML: Stepping stone to XML

Tag Nesting

Discerning Structure XML character strings –Character data White space The root (or document) element Tree structure of a well-formed document

Tree Structure

Working with Mixed Content Creating a well-formed XML document from text Adding comments to XML documents XML encoding

Balkanization of the Web Confusing assortment of tags resulting from numerous tagging schemes

Summary Construct XML documents Explain the differences between tags and elements in XML Specify the five rules for creating a well- formed XML document Convert an HTML document into an XHTML file Create a well-formed XML document

Copyright © 2002 ProsoftTraining. All rights reserved. Lesson 3: Creating a Valid XML Document

Objectives Define the DTD Define the DOM Identify DTD declarations Create a DTD Validate an XML document Create an XML file that conforms to a DTD Use DTD repositories

Beyond Well-Formedness: Valid XML Documents Valid conformance with a Document Type Definition –Rules that define the structure, syntax and vocabulary related to tags

Document Object Model Core Level 1 HTML Level 1

Document Type Definition The root element Element type declarations –#PCDATA –Child elements –Element content –Mixed content –Empty elements

Referencing DTD Definitions in XML DOCTYPE declaration Internal DTD External DTD

Declaring Attributes in a DTD Attribute-list declarations Commonly used attribute types Entities Parameter entities Notation declarations

Pre-Existing DTDs XML/DTD repositories

Summary Define the DTD Define the DOM Identify DTD declarations Create a DTD Validate an XML document Create an XML file that conforms to a DTD Use DTD repositories

Copyright © 2002 ProsoftTraining. All rights reserved. Lesson 4: XML Parsers

Objectives Explain the requirements for a parser Identify the differences between validating and non-validating parsers Use online parsers Use command-line parsers

Parsers Also known as processors Varying levels of conformance Object-based parsers Event-based parsers Validating parsers Non-validating parsers

Command-Line Parsing Verifies document compliance with well- formedness requirements and DTD

Summary Explain the requirements for a parser Identify the differences between validating and non-validating parsers Use online parsers Use command-line parsers

Copyright © 2002 ProsoftTraining. All rights reserved. Lesson 5: The XML Family of Technologies

Objectives Define XML namespaces and usage Explain the XPath recommendation Explain the XLink recommendation Explain the XPointer recommendation Describe the XForms and XML Query proposals

The XML Family Namespaces in XML XLink XPath XPointer

Namespaces in XML Namespace components Explicit and implicit namespace declaration Multiple namespaces Inline namespace declaration Namespace scope/inheritance Namespaces and DTDs Namespace attributes

XPath XML Path Language XPath nodes –Document –Root –Element –Attribute –Text –Processing instruction –Namespace –Comment

XPath Expressions Operand Location paths –Context node Function calls –Predicate

XLink XML Linking Language –Simple links –Extended links –Locators –Arcs –Resources –Titles Link behavior

XPointer Fragment identifier Tracing a path Shorthand notation Shorthand syntax Formal XPointer syntax Range or portion selection

XForms and XML Query XForms –New generation of forms introducing business logic, calculations, and form processing XML Query –Based pm XML Infoset

Summary Define XML namespaces and usage Explain the XPath recommendation Explain the XLink recommendation Explain the XPointer recommendation Describe the XForms and XML Query proposals

Copyright © 2002 ProsoftTraining. All rights reserved. Lesson 6: XSL Transformation

Objectives Describe the relationship between XSL and XSLT Use XSLT templates and patterns Convert XML to a new XML output document Reorganize XML data to an output file Convert XML to HTML Compile remote data sources into an XML output file

XSL, XSLT and Style Sheets Extensible Stylesheet Language Transformation Formatting objects (flow objects) Transformation languages XSLT processing XSLT namespace

XSLT Document Structure Style sheet element and namespace Templates apply-templates select

Transforming Data: XML to XML Scenario Models Solution Element transformation

Saxon XSLT Processor Running Saxon Processing XSLT using Saxon Converting XML data structure using XSLT

Transforming Data: XML to HTML Advanced matching and selecting Top-level elements Instruction elements Comments

Multiple Document Sources The document () function

Summary Describe the relationship between XSL and XSLT Use XSLT templates and patterns Convert XML to a new XML output document Reorganize XML data to an output file Convert XML to HTML Compile remote data sources into an XML output file

Copyright © 2002 ProsoftTraining. All rights reserved. Lesson 7: XML Formatting

Objectives Define XML formatting requirements Apply CSS to XML Use XSL flow objects and patterns Apply XSL to XML Convert XSL into PDF

XML Styling Cascading Style Sheets Extensible Stylesheet Language –Language for transforming XML documents –Vocabulary for specifying formatting semantics

XML and CSS The absence of predefined formatting eliminates conflicts between inherent element properties and style properties in XML

CSS Syntax Selectors CSS1 XML and CSS tools

XML and XSL Areas Indents

Formatting Objects Types –Those that generate block and inline areas –Those that return areas but do not generate them –Those that are used to generate layout areas

XSL Page Layout fo:layout-master-set fo:simple-page-master fo:region fo:page-sequence-master and fo:page-sequence fo:page-sequence-master sub elements Content flow objects

Page Layout (cont’d) fo:block fo:list-block fo:table

XML, XSL and Formatting Objects Transforming an XML document Processing an XSL style sheet

Converting XSL Flow Objects to PDF Portable Document Format Formatting Object Processor

Summary Define XML formatting requirements Apply CSS to XML Use XSL flow objects and patterns Apply XSL to XML Convert XSL into PDF

Copyright © 2002 ProsoftTraining. All rights reserved. Lesson 8: XML Schemas

Objectives Explain the purpose of schemas Explain data types and facets Define attributes and references Define simple and complex elements Create an XML schema

Schemas XML Schema

Components Schema component categories –Definition components –Declaration components –Model group components –Annotation component

Data Types Built-in data types User-defined data types

Schema Element The targetNamespace attribute The elementFormDefault attribute Document instance schema reference Undeclared target namespaces Annotation Element declarations Element references

ComplexType vs. SimpleType ComplexType –Elements that contain sub-elements or carry attributes SimpleType –Elements that contain numbers but do not contain sub-elements or attributes

Attributes The content attribute User-defined attributes

Facets Fourteen facets defined by XML Schema

Grouping Element

Summary Explain the purpose of schemas Explain data types and facets Define attributes and references Define simple and complex elements Create an XML schema

Copyright © 2002 ProsoftTraining. All rights reserved. Lesson 9: Extensible Hypertext Markup Language (XHTML)

Objectives Identify the reasons for XHTML's development Identify key features of XHTML documents Create XHTML documents

HTML vs. XML Clients Browser forgiveness What does HTML forgive? –Case-sensitivity –Nesting –Closing elements –Attributes What does XML not forgive?

XHTML Definition Variations XHTML document declarations –Document type declaration

XHTML Conformance Requirements Correct case Root element Empty elements Nesting Fragment identifiers

XHTML 1.1 and Modules XHTML 1.1 versus XHTML (Second Edition) W3C-approved modules for XHTML 1.1 W3C-approved sub-elements for XHTML 1.1 XHTML 2.0 (2003)

Summary Identify the reasons for XHTML's development Identify key features of XHTML documents Create XHTML documents

Copyright © 2002 ProsoftTraining. All rights reserved. Lesson 10: XML Tools

Objectives Use XML tools to clean existing documents Use a DTD editor Use an editor to create XSL and schemas Import database information for XML conversion Use graphical editors to create XML documents Convert XML to various outputs Define SOAP and BizTalk

XML Tools Simple tools  XML Notepad Complete tools  Arbortext Epic, XML Spy

Tool Types Command-line tools Visual tools Graphical tools

HTML to Well-Formed XML Cleaning an HTML document with TidyGUI

Creating a DTD Creating an XML DTD with SML Spy

Creating a Schema Creating an XML schema with XML Spy

Importing Database Information Importing database data Editing XML code with Epic Editor Styles Creating XSL style sheets One-to-many output Creating multiple output files from XML

XML Project Management Guidelines Development –Design the required DTD –Develop style sheets –Store in a repository Staffing –Project managers –Application developers –Format/layout designers –Content authors

XML-Driven Technologies Simple Object Access Protocol BizTalk

Summary Use XML tools to clean existing documents Use a DTD editor Use an editor to create XSL and schemas Import database information for XML conversion Use graphical editors to create XML documents Convert XML to various outputs Define SOAP and BizTalk

XML Document Design Introduction to XML Well-Formed XML Documents Creating a Valid XML Document XML Parsers The XML Family of Technologies

XML Document Design XSL Transformation XML Formatting XML Schemas Extensible Hypertext Markup Language (XHTML) XML Tools