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
Define a default data view for an XML document
 

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.

When you add an XML schema (XML Schema: A formal specification, written in XML, that defines the structure of an XML document, including element names and rich data types, which elements can appear in combination, and which attributes are available for each element.) to the Schema Library, you can associate 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 with the schema. When you attach that schema to a document and open the document in Microsoft Word, you can specify how to display the data by selecting one of the available data views, or XSLTs.

  1. On the Tools menu, click Templates and Add-Ins, and then click the XML Schemas tab.
  2. Click Schema Library.
  3. In the Select a schema box, click the schema that you want to associate XSLTs with.
  4. In the Use solution with box, click Word.
  5. Click Add Solution, browse to the XSLT file, and then click Open.
  6. In the Solution Settings dialog box, select the options you want, and type a name for the XSLT in the Alias box.

    Note  The name you type for the alias is the name that will appear in the list of available data views in the XML data views task pane.

  7. Click OK.
  8. Repeat steps 4 through 6 for each of the XSLTs you want to associate with the schema.
  9. In the Default solution box, click the name of the XSLT that you want to be used by default.
advertisement