Presentation is loading. Please wait.

Presentation is loading. Please wait.

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

Similar presentations


Presentation on theme: "Copyright © 2002 ProsoftTraining. All rights reserved. XML Document Design."— Presentation transcript:

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

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

3 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

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

5 Markup Languages Markup WYSIWYG

6 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

7 XML Directives Design goals for XML XML implementation

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

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

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

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

12 Implementing XML XML schema Development tools

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

14 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

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

16 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

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

18 Tags and Elements in XML

19 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

20 Tag Nesting

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

22 Tree Structure

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

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

25 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

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

27 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

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

29 Document Object Model Core Level 1 HTML Level 1

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

31 Referencing DTD Definitions in XML DOCTYPE declaration Internal DTD External DTD

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

33 Pre-Existing DTDs XML/DTD repositories

34 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

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

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

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

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

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

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

41 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

42 The XML Family Namespaces in XML XLink XPath XPointer

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

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

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

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

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

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

49 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

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

51 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

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

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

54 Transforming Data: XML to XML Scenario Models Solution Element transformation

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

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

57 Multiple Document Sources The document () function

58 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

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

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

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

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

63 CSS Syntax Selectors CSS1 XML and CSS tools

64 XML and XSL Areas Indents

65 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

66 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

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

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

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

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

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

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

73 Schemas XML Schema

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

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

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

77 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

78 Attributes The content attribute User-defined attributes

79 Facets Fourteen facets defined by XML Schema

80 Grouping Element

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

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

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

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

85 XHTML Definition Variations XHTML document declarations –Document type declaration

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

87 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)

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

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

90 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

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

92 Tool Types Command-line tools Visual tools Graphical tools

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

94 Creating a DTD Creating an XML DTD with SML Spy

95 Creating a Schema Creating an XML schema with XML Spy

96 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

97 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

98 XML-Driven Technologies Simple Object Access Protocol BizTalk

99 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

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

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


Download ppt "Copyright © 2002 ProsoftTraining. All rights reserved. XML Document Design."

Similar presentations


Ads by Google