+ All Categories
Home > Technology > Chen's first test slides

Chen's first test slides

Date post: 15-Jan-2015
Category:
Upload: hima-challa
View: 357 times
Download: 0 times
Share this document with a friend
Description:
 
Popular Tags:
32
Together Control Center and XML Greg Cathcart Mentor
Transcript
Page 1: Chen's first test slides

Together Control Centerand XML

Greg CathcartMentor

Page 2: Chen's first test slides

2

Why XML

• The Situation

• The Problem

• The Opportunity

• The Solution

Page 3: Chen's first test slides

3

The Situation

• HTML “Foundation of World Wide Web”

• HTML and HTTP have Revolutionized how Information is Shared

• HTML Designed Primarily for Display How Information Looks Not How Information is Structured

Page 4: Chen's first test slides

4

The Problem

• Presentation and Content are Combined

• Difficult to Manage Efficiently (Modifying HTML page every time data changes.)

• Difficult for Data Intensive Applications

Page 5: Chen's first test slides

5

The Opportunity

• Need for Separation of Presentation and Content

• Vast Opportunities in Almost Every Industry Standardization of Data Custom Applications

Page 6: Chen's first test slides

6

The Solution

• XML is an Open Text Based Markup Language

• Provides Structural and Semantic Information to Data

• Provides Additional Meaning and Context to Applications Using Data

• Data about Data or “Metadata”

• Subset of SGML Optimized for the Web

Page 7: Chen's first test slides

7

What is XML

• The Origin of XML

• The Structure of XML

• Variants of XML

• The Future of XML

Page 8: Chen's first test slides

8

The Origin of XML

• Markup Languages

• SGML

• HTML

• XML

Page 9: Chen's first test slides

9

Variants of XML

• XSL Patterns (Query Language)

• XSL (Style Sheet Based Formatting)

• SMIL (Multimedia Authoring)

• WML (Wireless Markup Language)

• XLL (Extended Linking Specification)

• Others

Page 10: Chen's first test slides

10

Goals of XML

• XML SHALL BE STRAIGHTFORWARDLY USABLE OVER THE INTERNET

• XML SHALL SUPPORT A WIDE VARIETY OF APPLICATIONS • XML SHALL BE COMPATIBLE WITH SGMLSGML • IT SHALL BE EASY TO WRITE PROGRAMS WHICH PROCESS XML

DOCUMENTS • THE NUMBER OF OPTIONAL FEATURES IN XML IS TO BE KEPT TO

THE ABSOLUTE MINIMUM, IDEALLY ZERO • XML DOCUMENTS SHOULD BE HUMAN-LEGIBLE AND

REASONABLY CLEAR. • THE XML DESIGN SHOULD BE PREPARED QUICKLY • THE DESIGN OF XML SHALL BE FORMAL AND CONCISE. • XML DOCUMENTS SHALL BE EASY TO CREATE • TERSENESS IN XML MARKUP IS OF MINIMAL IMPORTANCE

Page 11: Chen's first test slides

11

The XML Document

• Prolog XML Declaration DTD (Document Type

Declaration/Definition)

• Document Element (Can be nested) Elements Attributes Entities

Page 12: Chen's first test slides

12

The Document Type Definition

• Outlines the Rules for the Document

• Document Validation

• Ensures Document Obeys Validity Constraints Identified in XML Specification

• External and Internal DTD Subsets

Page 13: Chen's first test slides

13

Internal/External DTD Subsets

• External (DTD reference in Declaration) Exists Outside the Content of the Document Common DTD for a Group of Documents

• Internal (Written Directly in Document) Exists within the Content of the Document Used to Customize Document for a Specific

Application

Page 14: Chen's first test slides

14

Element Declarations

• Element Name

• Content Specification List of Other Elements/Content Model Keyword Empty Keyword Any Mixed Content

Page 15: Chen's first test slides

15

Content Model Example

• <!ELEMENT EMAIL (TO, FROM, CC, SUBJECT, BODY)>

•Contains Subelements

•Corresponding Element Declaration Must Appear

Page 16: Chen's first test slides

16

DTD Document Content Example

<!DOCTYPE EMAIL [

<!ELEMENT EMAIL (TO, FROM, CC, BODY)>

<!ELEMENT TO (#PCDATA)>

<!ELEMENT FROM (#PCDATA)>

<!ELEMENT CC (#PCDATA)>

<!ELEMENT BODY (#PCDATA)>

]>

Page 17: Chen's first test slides

17

Attribute Declaration Example

• <!ATTLIST ElementName AttributeName Type Default>

• Multiple Attribute Declarations Allowed

• Can be Located Anywhere in the DTD

• Best to Locate Near Corresponding Element

Page 18: Chen's first test slides

18

Attribute Declaration Example

<?xml version="1.0"?>

<!DOCTYPE EMAIL [

<!ELEMENT EMAIL (TO+, FROM, CC*, BCC*, SUBJECT?, BODY?)>

<!ATTLIST EMAIL

LANGUAGE (Western|Greek|Latin|Universal) "Western“

ENCRYPTED CDATA #IMPLIED

PRIORITY (NORMAL|LOW|HIGH) "NORMAL">

<!ELEMENT TO (#PCDATA)> <!ELEMENT FROM (#PCDATA)>

<!ELEMENT CC (#PCDATA)> <!ELEMENT BCC (#PCDATA)>

Page 19: Chen's first test slides

19

Attribute Types and Usage (Example)

CDATA Only character data can be used in the attribute.

ENTITY Attribute value must refer to an external binary entity declared in the DTD.

IDAttribute value must be a unique identifier. If a document contains ID attributes with the same value, the processor should generate an error.

IDREF Value must be a reference to an ID declared elsewhere in the document. If the attribute does not match the referenced ID value, the processor should generate an error.

IDREFS Same as IDREF, but allows multiple values separated by white space.

NMTOKENAttribute value is any mixture of name token characters, which must be letters, numbers, periods, dashes, colons, or underscores.

NMTOKENSSame as NMTOKEN, but allows multiple values separated by white space.

Page 20: Chen's first test slides

20

Attribute Defaults

#REQUIRED Every element containing this attribute must specify a value for that attribute. A missing value results in an error.

#IMPLIED This attribute is optional. The processor can ignore this attribute if no value is found.

#FIXED fixed value This attribute must have the value fixedvalue. If the attribute is not included in the element, fixedvalue is assumed.

Default Identifies a default value for an attribute. If the element does not include the attribute, the value default is assumed.

Page 21: Chen's first test slides

21

Entities

• Containers for Content

• Internal/External

• General and Parameter

• Parsed/Unparsed

Page 22: Chen's first test slides

22

Entity Declaration Example

<!ENTITY EntityName EntityDefinition>

Page 23: Chen's first test slides

23

Together Control Center

• Overview of XML Functionality The XML Structure Diagram DTD Creation and Modification DTD Import/Export

• Future Directions

Page 24: Chen's first test slides

24

XML Structure Diagram

• Elements

• Groups

• Reference Links

• Attribute Groups

• Notes

• Note Links

Page 25: Chen's first test slides

25

TCC Diagram Pane with DTD

Page 26: Chen's first test slides

26

Element Properties

Page 27: Chen's first test slides

27

XML Structure Diagram Properties Tab

• Properties

• Reusable Attributes

• General Entities

• Notations

• Processing Instructions

• Hyperlinks

• Description

• HTMLdoc

• Req

• Custom Properties

Page 28: Chen's first test slides

28

Diagram Properties

Page 29: Chen's first test slides

29

Attribute Properties Tab

Page 30: Chen's first test slides

30

Diagram Pane with HTML Edit

Page 31: Chen's first test slides

31

Diagram Pane with DTD Edit

Page 32: Chen's first test slides

32

XML Schema

Specification Designed for Data Exchange

Does Not Require a DTD


Recommended