Chen's first test slides

493 views
431 views

Published on

Published in: Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
493
On SlideShare
0
From Embeds
0
Number of Embeds
13
Actions
Shares
0
Downloads
4
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Chen's first test slides

  1. 1. Together Control Center and XML Greg Cathcart Mentor
  2. 2. Why XML <ul><li>The Situation </li></ul><ul><li>The Problem </li></ul><ul><li>The Opportunity </li></ul><ul><li>The Solution </li></ul>
  3. 3. The Situation <ul><li>HTML “Foundation of World Wide Web” </li></ul><ul><li>HTML and HTTP have Revolutionized how Information is Shared </li></ul><ul><li>HTML Designed Primarily for Display </li></ul><ul><ul><li>How Information Looks </li></ul></ul><ul><ul><li>Not How Information is Structured </li></ul></ul>
  4. 4. The Problem <ul><li>Presentation and Content are Combined </li></ul><ul><li>Difficult to Manage Efficiently (Modifying HTML page every time data changes.) </li></ul><ul><li>Difficult for Data Intensive Applications </li></ul>
  5. 5. The Opportunity <ul><li>Need for Separation of Presentation and Content </li></ul><ul><li>Vast Opportunities in Almost Every Industry </li></ul><ul><ul><li>Standardization of Data </li></ul></ul><ul><ul><li>Custom Applications </li></ul></ul>
  6. 6. The Solution <ul><li>XML is an Open Text Based Markup Language </li></ul><ul><li>Provides Structural and Semantic Information to Data </li></ul><ul><li>Provides Additional Meaning and Context to Applications Using Data </li></ul><ul><li>Data about Data or “Metadata” </li></ul><ul><li>Subset of SGML Optimized for the Web </li></ul>
  7. 7. What is XML <ul><li>The Origin of XML </li></ul><ul><li>The Structure of XML </li></ul><ul><li>Variants of XML </li></ul><ul><li>The Future of XML </li></ul>
  8. 8. The Origin of XML <ul><li>Markup Languages </li></ul><ul><li>SGML </li></ul><ul><li>HTML </li></ul><ul><li>XML </li></ul>
  9. 9. Variants of XML <ul><li>XSL Patterns (Query Language) </li></ul><ul><li>XSL (Style Sheet Based Formatting) </li></ul><ul><li>SMIL (Multimedia Authoring) </li></ul><ul><li>WML (Wireless Markup Language) </li></ul><ul><li>XLL (Extended Linking Specification) </li></ul><ul><li>Others </li></ul>
  10. 10. Goals of XML <ul><li>XML SHALL BE STRAIGHTFORWARDLY USABLE OVER THE INTERNET </li></ul><ul><li>XML SHALL SUPPORT A WIDE VARIETY OF APPLICATIONS </li></ul><ul><li>XML SHALL BE COMPATIBLE WITH SGML SGML </li></ul><ul><li>IT SHALL BE EASY TO WRITE PROGRAMS WHICH PROCESS XML DOCUMENTS </li></ul><ul><li>THE NUMBER OF OPTIONAL FEATURES IN XML IS TO BE KEPT TO THE ABSOLUTE MINIMUM, IDEALLY ZERO </li></ul><ul><li>XML DOCUMENTS SHOULD BE HUMAN-LEGIBLE AND REASONABLY CLEAR. </li></ul><ul><li>THE XML DESIGN SHOULD BE PREPARED QUICKLY </li></ul><ul><li>THE DESIGN OF XML SHALL BE FORMAL AND CONCISE. </li></ul><ul><li>XML DOCUMENTS SHALL BE EASY TO CREATE </li></ul><ul><li>TERSENESS IN XML MARKUP IS OF MINIMAL IMPORTANCE </li></ul>
  11. 11. The XML Document <ul><li>Prolog </li></ul><ul><ul><li>XML Declaration </li></ul></ul><ul><ul><li>DTD (Document Type Declaration/Definition) </li></ul></ul><ul><li>Document Element (Can be nested) </li></ul><ul><ul><li>Elements </li></ul></ul><ul><ul><li>Attributes </li></ul></ul><ul><ul><li>Entities </li></ul></ul>
  12. 12. The Document Type Definition <ul><li>Outlines the Rules for the Document </li></ul><ul><li>Document Validation </li></ul><ul><li>Ensures Document Obeys Validity Constraints Identified in XML Specification </li></ul><ul><li>External and Internal DTD Subsets </li></ul>
  13. 13. Internal/External DTD Subsets <ul><li>External (DTD reference in Declaration) </li></ul><ul><ul><li>Exists Outside the Content of the Document </li></ul></ul><ul><ul><li>Common DTD for a Group of Documents </li></ul></ul><ul><li>Internal (Written Directly in Document) </li></ul><ul><ul><li>Exists within the Content of the Document </li></ul></ul><ul><ul><li>Used to Customize Document for a Specific Application </li></ul></ul>
  14. 14. Element Declarations <ul><li>Element Name </li></ul><ul><li>Content Specification </li></ul><ul><ul><li>List of Other Elements/Content Model </li></ul></ul><ul><ul><li>Keyword Empty </li></ul></ul><ul><ul><li>Keyword Any </li></ul></ul><ul><ul><li>Mixed Content </li></ul></ul>
  15. 15. Content Model Example <ul><li><!ELEMENT EMAIL (TO, FROM, CC, SUBJECT, BODY)> </li></ul><ul><li>Contains Subelements </li></ul><ul><li>Corresponding Element Declaration Must Appear </li></ul>
  16. 16. DTD Document Content Example <ul><li><!DOCTYPE EMAIL [ </li></ul><ul><li><!ELEMENT EMAIL (TO, FROM, CC, BODY)> </li></ul><ul><li><!ELEMENT TO (#PCDATA)> </li></ul><ul><li><!ELEMENT FROM (#PCDATA)> </li></ul><ul><li><!ELEMENT CC (#PCDATA)> </li></ul><ul><li><!ELEMENT BODY (#PCDATA)> </li></ul><ul><li>]> </li></ul>
  17. 17. Attribute Declaration Example <ul><li><!ATTLIST ElementName AttributeName Type Default > </li></ul><ul><li>Multiple Attribute Declarations Allowed </li></ul><ul><li>Can be Located Anywhere in the DTD </li></ul><ul><li>Best to Locate Near Corresponding Element </li></ul>
  18. 18. Attribute Declaration Example <ul><li><?xml version=&quot;1.0&quot;?> </li></ul><ul><li><!DOCTYPE EMAIL [ </li></ul><ul><li><!ELEMENT EMAIL (TO+, FROM, CC*, BCC*, SUBJECT?, BODY?)> </li></ul><ul><li><!ATTLIST EMAIL </li></ul><ul><li>LANGUAGE (Western|Greek|Latin|Universal) &quot;Western“ </li></ul><ul><li>ENCRYPTED CDATA #IMPLIED </li></ul><ul><li>PRIORITY (NORMAL|LOW|HIGH) &quot;NORMAL&quot;> </li></ul><ul><li><!ELEMENT TO (#PCDATA)> <!ELEMENT FROM (#PCDATA)> </li></ul><ul><li><!ELEMENT CC (#PCDATA)> <!ELEMENT BCC (#PCDATA)> </li></ul>
  19. 19. Attribute Types and Usage (Example) <ul><li>CDATA Only character data can be used in the attribute. </li></ul><ul><li>ENTITY Attribute value must refer to an external binary entity declared in the DTD. </li></ul><ul><li>ID Attribute value must be a unique identifier. If a document contains ID attributes with the same value, the processor should generate an error. </li></ul><ul><li>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. </li></ul><ul><li>IDREFS Same as IDREF , but allows multiple values separated by white space. </li></ul><ul><li>NMTOKEN Attribute value is any mixture of name token characters, which must be letters, numbers, periods, dashes, colons, or underscores. </li></ul><ul><li>NMTOKENS Same as NMTOKEN , but allows multiple values separated by white space. </li></ul>
  20. 20. Attribute Defaults <ul><li>#REQUIRED Every element containing this attribute must specify a value for that attribute. A missing value results in an error. </li></ul><ul><li>#IMPLIED This attribute is optional. The processor can ignore this attribute if no value is found. </li></ul><ul><li>#FIXED fixed value This attribute must have the value fixedvalue. If the attribute is not included in the element, fixedvalue is assumed. </li></ul><ul><li>Default Identifies a default value for an attribute. If the element does not include the attribute, the value default is assumed. </li></ul>
  21. 21. Entities <ul><li>Containers for Content </li></ul><ul><li>Internal/External </li></ul><ul><li>General and Parameter </li></ul><ul><li>Parsed/Unparsed </li></ul>
  22. 22. Entity Declaration Example <ul><li><!ENTITY EntityName EntityDefinition > </li></ul>
  23. 23. Together Control Center <ul><li>Overview of XML Functionality </li></ul><ul><ul><li>The XML Structure Diagram </li></ul></ul><ul><ul><li>DTD Creation and Modification </li></ul></ul><ul><ul><li>DTD Import/Export </li></ul></ul><ul><li>Future Directions </li></ul>
  24. 24. XML Structure Diagram <ul><li>Elements </li></ul><ul><li>Groups </li></ul><ul><li>Reference Links </li></ul><ul><li>Attribute Groups </li></ul><ul><li>Notes </li></ul><ul><li>Note Links </li></ul>
  25. 25. TCC Diagram Pane with DTD
  26. 26. Element Properties
  27. 27. XML Structure Diagram Properties Tab <ul><li>Properties </li></ul><ul><li>Reusable Attributes </li></ul><ul><li>General Entities </li></ul><ul><li>Notations </li></ul><ul><li>Processing Instructions </li></ul><ul><li>Hyperlinks </li></ul><ul><li>Description </li></ul><ul><li>HTMLdoc </li></ul><ul><li>Req </li></ul><ul><li>Custom Properties </li></ul>
  28. 28. Diagram Properties
  29. 29. Attribute Properties Tab
  30. 30. Diagram Pane with HTML Edit
  31. 31. Diagram Pane with DTD Edit
  32. 32. XML Schema Specification Designed for Data Exchange Does Not Require a DTD

×