Presentation is loading. Please wait.

Presentation is loading. Please wait.

Chapter 29. Copyright 2003, Paradigm Publishing Inc. CHAPTER 29 BACKNEXTEND 29-2 LINKS TO OBJECTIVES Attach an XML Schema Attach an XML Schema Load XML.

Similar presentations


Presentation on theme: "Chapter 29. Copyright 2003, Paradigm Publishing Inc. CHAPTER 29 BACKNEXTEND 29-2 LINKS TO OBJECTIVES Attach an XML Schema Attach an XML Schema Load XML."— Presentation transcript:

1 Chapter 29

2 Copyright 2003, Paradigm Publishing Inc. CHAPTER 29 BACKNEXTEND 29-2 LINKS TO OBJECTIVES Attach an XML Schema Attach an XML Schema Load XML Data into an Excel Worksheet Load XML Data into an Excel Worksheet Use a Schema as a Template Use a Schema as a Template Validate a Schema Display XML Options Enhance a Schema Transform XML Open in Internet Explorer Open in Internet Explorer Add a Solution Delete Schemas and Solutions Delete Schemas and Solutions Commands Review USING XML IN WORD 2003 Signature: Microsoft Word 2003

3 Copyright 2003, Paradigm Publishing Inc. CHAPTER 29 BACKNEXTEND 29-3 LINKS TO OBJECTIVES Attach an XML Schema Attach an XML Schema Load XML Data into an Excel Worksheet Load XML Data into an Excel Worksheet Use a Schema as a Template Use a Schema as a Template Validate a Schema Display XML Options Enhance a Schema Transform XML Open in Internet Explorer Open in Internet Explorer Add a Solution Delete Schemas and Solutions Delete Schemas and Solutions Commands Review Performance Objectives Attach an XML schema to a Word document Load XML data into an Excel worksheet Use a schema as a template Validate a schema Display XML options Enhance a schema Transform XML Open a file in Internet Explorer Add a solution Delete schemas and solutions

4 Copyright 2003, Paradigm Publishing Inc. CHAPTER 29 BACKNEXTEND 29-4 LINKS TO OBJECTIVES Attach an XML Schema Attach an XML Schema Load XML Data into an Excel Worksheet Load XML Data into an Excel Worksheet Use a Schema as a Template Use a Schema as a Template Validate a Schema Display XML Options Enhance a Schema Transform XML Open in Internet Explorer Open in Internet Explorer Add a Solution Delete Schemas and Solutions Delete Schemas and Solutions Commands Review Introducing XML Extensible Markup Language (XML) –method for exchanging complex sets of data –terms are restricted only by a set of rules that defines how new terms can be added HTML and XML have similar attributes but are intended to be used differently –HTML meant to be a finished document –XML typically used as one part of a more complicated application XML is self-documenting –contains data and information about what those data items represent and how they relate to each other

5 Copyright 2003, Paradigm Publishing Inc. CHAPTER 29 BACKNEXTEND 29-5 LINKS TO OBJECTIVES Attach an XML Schema Attach an XML Schema Load XML Data into an Excel Worksheet Load XML Data into an Excel Worksheet Use a Schema as a Template Use a Schema as a Template Validate a Schema Display XML Options Enhance a Schema Transform XML Open in Internet Explorer Open in Internet Explorer Add a Solution Delete Schemas and Solutions Delete Schemas and Solutions Commands Review Providing Structure with XML Schemas A schema enables non-XML applications to properly structure an XML data document. Schema files are roughly the XML equivalent of Word templates. highlighted data could be loaded into a database file

6 Copyright 2003, Paradigm Publishing Inc. CHAPTER 29 BACKNEXTEND 29-6 LINKS TO OBJECTIVES Attach an XML Schema Attach an XML Schema Load XML Data into an Excel Worksheet Load XML Data into an Excel Worksheet Use a Schema as a Template Use a Schema as a Template Validate a Schema Display XML Options Enhance a Schema Transform XML Open in Internet Explorer Open in Internet Explorer Add a Solution Delete Schemas and Solutions Delete Schemas and Solutions Commands Review Attaching an XML Schema File, New

7 Copyright 2003, Paradigm Publishing Inc. CHAPTER 29 BACKNEXTEND 29-7 LINKS TO OBJECTIVES Attach an XML Schema Attach an XML Schema Load XML Data into an Excel Worksheet Load XML Data into an Excel Worksheet Use a Schema as a Template Use a Schema as a Template Validate a Schema Display XML Options Enhance a Schema Transform XML Open in Internet Explorer Open in Internet Explorer Add a Solution Delete Schemas and Solutions Delete Schemas and Solutions Commands Review Attaching an XML Schema…/2 navigate to folder double-click file type descriptive text that describes the schema root element in the schema names of the sub elements

8 Copyright 2003, Paradigm Publishing Inc. CHAPTER 29 BACKNEXTEND 29-8 LINKS TO OBJECTIVES Attach an XML Schema Attach an XML Schema Load XML Data into an Excel Worksheet Load XML Data into an Excel Worksheet Use a Schema as a Template Use a Schema as a Template Validate a Schema Display XML Options Enhance a Schema Transform XML Open in Internet Explorer Open in Internet Explorer Add a Solution Delete Schemas and Solutions Delete Schemas and Solutions Commands Review Mapping Elements in the Schema The elements in the XML schema must be mapped to the corresponding data items in the Word document. double-click first name click element Map the remaining elements and sub elements in the schema to specific text by repeating steps.

9 Copyright 2003, Paradigm Publishing Inc. CHAPTER 29 BACKNEXTEND 29-9 LINKS TO OBJECTIVES Attach an XML Schema Attach an XML Schema Load XML Data into an Excel Worksheet Load XML Data into an Excel Worksheet Use a Schema as a Template Use a Schema as a Template Validate a Schema Display XML Options Enhance a Schema Transform XML Open in Internet Explorer Open in Internet Explorer Add a Solution Delete Schemas and Solutions Delete Schemas and Solutions Commands Review Saving Only the XML Data File, Save As select XML type click

10 Copyright 2003, Paradigm Publishing Inc. CHAPTER 29 BACKNEXTEND 29-10 LINKS TO OBJECTIVES Attach an XML Schema Attach an XML Schema Load XML Data into an Excel Worksheet Load XML Data into an Excel Worksheet Use a Schema as a Template Use a Schema as a Template Validate a Schema Display XML Options Enhance a Schema Transform XML Open in Internet Explorer Open in Internet Explorer Add a Solution Delete Schemas and Solutions Delete Schemas and Solutions Commands Review Loading XML Data into an Excel Worksheet in Excel 2003, open the.xml file loads both the XML data and the XML structure click Click OK at the message that appears.

11 Copyright 2003, Paradigm Publishing Inc. CHAPTER 29 BACKNEXTEND 29-11 LINKS TO OBJECTIVES Attach an XML Schema Attach an XML Schema Load XML Data into an Excel Worksheet Load XML Data into an Excel Worksheet Use a Schema as a Template Use a Schema as a Template Validate a Schema Display XML Options Enhance a Schema Transform XML Open in Internet Explorer Open in Internet Explorer Add a Solution Delete Schemas and Solutions Delete Schemas and Solutions Commands Review Loading XML Data into an Excel Worksheet…/2 use the options at the drop-down list to sort or select items display the XML Source task pane

12 Copyright 2003, Paradigm Publishing Inc. CHAPTER 29 BACKNEXTEND 29-12 LINKS TO OBJECTIVES Attach an XML Schema Attach an XML Schema Load XML Data into an Excel Worksheet Load XML Data into an Excel Worksheet Use a Schema as a Template Use a Schema as a Template Validate a Schema Display XML Options Enhance a Schema Transform XML Open in Internet Explorer Open in Internet Explorer Add a Solution Delete Schemas and Solutions Delete Schemas and Solutions Commands Review Using Schemas as Templates Add the schema by navigating to the folder and double-clicking the file.

13 Copyright 2003, Paradigm Publishing Inc. CHAPTER 29 BACKNEXTEND 29-13 LINKS TO OBJECTIVES Attach an XML Schema Attach an XML Schema Load XML Data into an Excel Worksheet Load XML Data into an Excel Worksheet Use a Schema as a Template Use a Schema as a Template Validate a Schema Display XML Options Enhance a Schema Transform XML Open in Internet Explorer Open in Internet Explorer Add a Solution Delete Schemas and Solutions Delete Schemas and Solutions Commands Review Validating a Schema XML allows schemas to specify requirements and restrictions for XML documents constructed with that schema. icon displays because the schema requires that the document contains each of the sub elements

14 Copyright 2003, Paradigm Publishing Inc. CHAPTER 29 BACKNEXTEND 29-14 LINKS TO OBJECTIVES Attach an XML Schema Attach an XML Schema Load XML Data into an Excel Worksheet Load XML Data into an Excel Worksheet Use a Schema as a Template Use a Schema as a Template Validate a Schema Display XML Options Enhance a Schema Transform XML Open in Internet Explorer Open in Internet Explorer Add a Solution Delete Schemas and Solutions Delete Schemas and Solutions Commands Review Enforcing Validation Rules XML supports three general types of data validation –Required Elements: some or all of the elements in the schema be included in any data file created with that schema –Define Entry: specify that the data entered into a given element be a whole number, decimal number, date, or an Internet URL –Restrict Values: specify in detail the sort of data that is valid for an element

15 Copyright 2003, Paradigm Publishing Inc. CHAPTER 29 BACKNEXTEND 29-15 LINKS TO OBJECTIVES Attach an XML Schema Attach an XML Schema Load XML Data into an Excel Worksheet Load XML Data into an Excel Worksheet Use a Schema as a Template Use a Schema as a Template Validate a Schema Display XML Options Enhance a Schema Transform XML Open in Internet Explorer Open in Internet Explorer Add a Solution Delete Schemas and Solutions Delete Schemas and Solutions Commands Review Displaying XML Options insert a check mark to display more information about the validation error

16 Copyright 2003, Paradigm Publishing Inc. CHAPTER 29 BACKNEXTEND 29-16 LINKS TO OBJECTIVES Attach an XML Schema Attach an XML Schema Load XML Data into an Excel Worksheet Load XML Data into an Excel Worksheet Use a Schema as a Template Use a Schema as a Template Validate a Schema Display XML Options Enhance a Schema Transform XML Open in Internet Explorer Open in Internet Explorer Add a Solution Delete Schemas and Solutions Delete Schemas and Solutions Commands Review Enhancing the Schema to replace the raw XML display with one that looks more like a typical Word fill-in document right-click a tag and click Attributes type the desired text

17 Copyright 2003, Paradigm Publishing Inc. CHAPTER 29 BACKNEXTEND 29-17 LINKS TO OBJECTIVES Attach an XML Schema Attach an XML Schema Load XML Data into an Excel Worksheet Load XML Data into an Excel Worksheet Use a Schema as a Template Use a Schema as a Template Validate a Schema Display XML Options Enhance a Schema Transform XML Open in Internet Explorer Open in Internet Explorer Add a Solution Delete Schemas and Solutions Delete Schemas and Solutions Commands Review Transforming XML with Style Sheets XML uses style sheet files (.xsl) to provide a method of using HTML formatting with XML data Methods to use style sheets include –Browse with Style: after you open an XML document, you can use the XML Document task pane to select an XML style sheet –Save as HTML: when saving an XML document, you can select a style sheet –Associate Style Sheets with Schemas: in the Schema Library you can define a solution

18 Copyright 2003, Paradigm Publishing Inc. CHAPTER 29 BACKNEXTEND 29-18 LINKS TO OBJECTIVES Attach an XML Schema Attach an XML Schema Load XML Data into an Excel Worksheet Load XML Data into an Excel Worksheet Use a Schema as a Template Use a Schema as a Template Validate a Schema Display XML Options Enhance a Schema Transform XML Open in Internet Explorer Open in Internet Explorer Add a Solution Delete Schemas and Solutions Delete Schemas and Solutions Commands Review Transforming XML Transformation is a process in which an XML document is converted to a standard Web HTML document using the XML style sheet as a formatting guide. File, Save As click At the Choose an XML Transformation dialog box, navigate to the folder and then double-click the.xsl file.

19 Copyright 2003, Paradigm Publishing Inc. CHAPTER 29 BACKNEXTEND 29-19 LINKS TO OBJECTIVES Attach an XML Schema Attach an XML Schema Load XML Data into an Excel Worksheet Load XML Data into an Excel Worksheet Use a Schema as a Template Use a Schema as a Template Validate a Schema Display XML Options Enhance a Schema Transform XML Open in Internet Explorer Open in Internet Explorer Add a Solution Delete Schemas and Solutions Delete Schemas and Solutions Commands Review Opening a File in Internet Explorer in Internet Explorer, click File, Open You will need to change the file extension from.xml to.htm. This is because Internet Explorer determines its display mode based on the extension of the file you are opening.

20 Copyright 2003, Paradigm Publishing Inc. CHAPTER 29 BACKNEXTEND 29-20 LINKS TO OBJECTIVES Attach an XML Schema Attach an XML Schema Load XML Data into an Excel Worksheet Load XML Data into an Excel Worksheet Use a Schema as a Template Use a Schema as a Template Validate a Schema Display XML Options Enhance a Schema Transform XML Open in Internet Explorer Open in Internet Explorer Add a Solution Delete Schemas and Solutions Delete Schemas and Solutions Commands Review Streamlining XML in Word The Schema Library contains a feature called a solution, which allows you to associate one or more style sheets with a given schema. click

21 Copyright 2003, Paradigm Publishing Inc. CHAPTER 29 BACKNEXTEND 29-21 LINKS TO OBJECTIVES Attach an XML Schema Attach an XML Schema Load XML Data into an Excel Worksheet Load XML Data into an Excel Worksheet Use a Schema as a Template Use a Schema as a Template Validate a Schema Display XML Options Enhance a Schema Transform XML Open in Internet Explorer Open in Internet Explorer Add a Solution Delete Schemas and Solutions Delete Schemas and Solutions Commands Review Deleting Schemas and Solutions to delete a schema, click the schema and then click the Delete Schema button to delete a solution, click the schema, click the solution, and then click the Delete Solution button

22 Copyright 2003, Paradigm Publishing Inc. CHAPTER 29 BACKNEXTEND 29-22 LINKS TO OBJECTIVES Attach an XML Schema Attach an XML Schema Load XML Data into an Excel Worksheet Load XML Data into an Excel Worksheet Use a Schema as a Template Use a Schema as a Template Validate a Schema Display XML Options Enhance a Schema Transform XML Open in Internet Explorer Open in Internet Explorer Add a Solution Delete Schemas and Solutions Delete Schemas and Solutions Commands Review How do you display the XML Structure task pane? File, New

23 Copyright 2003, Paradigm Publishing Inc. CHAPTER 29 BACKNEXTEND 29-23 LINKS TO OBJECTIVES Attach an XML Schema Attach an XML Schema Load XML Data into an Excel Worksheet Load XML Data into an Excel Worksheet Use a Schema as a Template Use a Schema as a Template Validate a Schema Display XML Options Enhance a Schema Transform XML Open in Internet Explorer Open in Internet Explorer Add a Solution Delete Schemas and Solutions Delete Schemas and Solutions Commands Review How do you display the Templates and Add-ins dialog box? File, New

24 Copyright 2003, Paradigm Publishing Inc. CHAPTER 29 BACKNEXTEND 29-24 LINKS TO OBJECTIVES Attach an XML Schema Attach an XML Schema Load XML Data into an Excel Worksheet Load XML Data into an Excel Worksheet Use a Schema as a Template Use a Schema as a Template Validate a Schema Display XML Options Enhance a Schema Transform XML Open in Internet Explorer Open in Internet Explorer Add a Solution Delete Schemas and Solutions Delete Schemas and Solutions Commands Review How do you display the XML Options dialog box?

25 Copyright 2003, Paradigm Publishing Inc. CHAPTER 29 BACKNEXTEND 29-25 LINKS TO OBJECTIVES Attach an XML Schema Attach an XML Schema Load XML Data into an Excel Worksheet Load XML Data into an Excel Worksheet Use a Schema as a Template Use a Schema as a Template Validate a Schema Display XML Options Enhance a Schema Transform XML Open in Internet Explorer Open in Internet Explorer Add a Solution Delete Schemas and Solutions Delete Schemas and Solutions Commands Review How do you display the Schema Library dialog box?

26 Copyright 2003, Paradigm Publishing Inc. CHAPTER 29 BACKNEXTEND 29-26 LINKS TO OBJECTIVES Attach an XML Schema Attach an XML Schema Load XML Data into an Excel Worksheet Load XML Data into an Excel Worksheet Use a Schema as a Template Use a Schema as a Template Validate a Schema Display XML Options Enhance a Schema Transform XML Open in Internet Explorer Open in Internet Explorer Add a Solution Delete Schemas and Solutions Delete Schemas and Solutions Commands Review Coming Next PERFORMANCE ASSEMENTS


Download ppt "Chapter 29. Copyright 2003, Paradigm Publishing Inc. CHAPTER 29 BACKNEXTEND 29-2 LINKS TO OBJECTIVES Attach an XML Schema Attach an XML Schema Load XML."

Similar presentations


Ads by Google