Microsoft Office Online
Sign in to My Office Online (What's this?) | Sign in

 
 
Microsoft Office Word
Search
Search
 
Check for updates: (c) Microsoft
Office downloads
 
 
 
Warning: You are viewing this page with an unsupported Web browser. This Web site works best with Microsoft Internet Explorer 6.0 or later, Firefox 1.5, or Netscape Navigator 8.0 or later. Learn more about supported browsers.

Email this linkEmail this link Printer-Friendly VersionPrinter-Friendly Version Bookmark and ShareShare
About the Schema Library
 

Note  XML features, except for saving documents as XML with the Word XML schema, are available only in Microsoft Office Professional Edition 2003 and stand-alone Microsoft Office Word 2003.

The Schema Library helps automate procedures related to editing Extensible Markup Language (XML) (Extensible Markup Language (XML): A condensed form of Standard Generalized Markup Language (SGML) that enables developers to create customized tags that offer flexibility in organizing and presenting information.) documents. Using XML schemas and other files in the Schema Library as well as characteristics of the XML document being edited, Microsoft Word provides you with information about the document that makes it easy to work with XML in Word.

Understanding schemas

An XML schema (.xsd file) defines the structure, content, and semantics of an XML document. It's like a blueprint that determines the kind of data that is allowed in the XML document, as well as the structure of the data. For example, a schema that defines how names and addresses are stored might specify that a "name" element consists of two elements: "firstname" and "lastname."

The schemas you add to the Schema Library may be developed by your company or a third party to meet a particular business need. Many vendors and XML developers create XML schemas that are specifically designed to handle data for a given industry or field, such as business, publishing, finance, education, communications, and more.

Understanding namespaces

When you add a schema to the Schema Library, you establish a namespace for any document that the schema is attached to. The namespace provides a unique identifier for all of the elements that are defined by the schema. This identifier is especially important, for instance, if a custom schema happens to define an element name that matches an element name in the Word XML schema (WordML). The elements do not conflict because each element can be specified by a prefix that identifies the element's namespace.

A namespace can also function as a way of associating other auxiliary files with a document, such as one or more Extensible Stylesheet Language Transformation (XSLT) (XSL Transformation (XSLT): A file that is used to transform XML documents into other types of documents, such as HTML or XML. It is designed for use as part of XSL.) files.

Using the Schema Library

The Schema Library provides a way to specify the namespaces that are available, as well as to configure options, such as friendly names (aliases) for schemas and any XSLT files that are associated with a schema.

Schemas in the Schema Library are available to attach to a document and are listed on the XML Schema tab of the Templates and Add-ins dialog box. When you attach an XML schema to a document, the document becomes associated with the same namespace as the schema and with any auxiliary files that are also associated with the same namespace.

Note  When there is more than one schema attached to a document, the document is associated with the namespace of the root element in the document. The root element is the single element in which all other elements in the document reside, according to the rules of standard XML hierarchy.

advertisement