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.
- On the Tools menu, click Templates and Add-Ins, and then click the XML Schemas tab.
- Click Schema Library.
- In the Select a schema box, click the schema that you want to associate XSLTs with.
- In the Use solution with box, click Word.
- Click Add Solution, browse to the XSLT file, and then click Open.
- 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.
- Click OK.
- Repeat steps 4 through 6 for each of the XSLTs you want to associate with the schema.
- In the Default solution box, click the name of the XSLT that you want to be used by default.