Define a default data view for an XML document

Microsoft Office Word 2003

Show All Show All

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 to the Schema Library, you can associate one or more Extensible Stylesheet Language Transformation (XSLT) 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.