Working with XML Data

graphics/microsoftoffice57.gif

The Schema Library is a place to manage XML schemas. When you add a schema to the Schema Library, you create a namespace for any XML document in which the schema is attached. A namespace provides a unique identifier for elements defined by a schema. A namespace can also associate other XML related files, such as an XML Transformations file, to the XML document. An XML Transformations file ( XSLT ) is used to save and transform XML documents into other types of documents, such as HTML or XML, in different views. In the Schema Library, you can add, delete, update, and modify schemas and solutions, which are the files associated with the schema, such as XSLT. For example, you can add friendly names (aliases) to schemas and any files associated with the schema. You can add more than one schema to a single document. Word applies both sets of rules and alerts you of any conflicts.

Associate or Modify an XML Transformation with a Schema

graphics/one_icon.jpg

Click the Tools menu, and then click Templates And Add-Ins.

graphics/two_icon.jpg

Click the XML Schema tab, and then click Schema Library.

graphics/three_icon.jpg

Click the schema you want to associate a transformation file (XSLT) with.

graphics/four_icon.jpg

Click the Use Solution With list arrow, and then click Word.

graphics/five_icon.jpg

Click Add Solution.

graphics/six_icon.jpg

Locate and select the XSLT file, and then click Open.

graphics/seven_icon.jpg

Type a name for the XSLT file, and then select the options you want.

graphics/eight_icon.jpg

Click OK.

graphics/nine_icon.jpg

Click the Default Solution list arrow, and then click the default transform you want.

graphics/ten_icon.jpg

To delete a solution or update settings, select the solution, and then click Delete Solutions or Solution Settings.

graphics/eleven_icon.jpg

Click OK, and then click OK again.

graphics/15inf11.jpg

graphics/15inf12.jpg

Save an XML Document and Apply a Transformation

graphics/one_icon.jpg

Open the document you want to save as an XML document.

graphics/two_icon.jpg

Click the File menu, and then click Save As.

graphics/three_icon.jpg

Select a location where you want to save the XML data.

graphics/four_icon.jpg

Click the Save As Type list arrow, and then click XML Document.

graphics/five_icon.jpg

Type a name for the XML document.

graphics/six_icon.jpg

To save only XML data (disregard Word formatting), select the Save Data Only check box.

graphics/seven_icon.jpg

To apply a transformation, select the Apply Transform check box, click Transform, select a transformation file (XSLT), and then click Open.

graphics/eight_icon.jpg

Click Save.

graphics/15inf13.jpg

Did You Know?

You can create a Word XML schema . Create a normal Word document, and then save it as an XML document. Word creates the WordML schema.

You can insert XML data . Place the insertion point where you want to insert the data, click the Insert menu, click File, click the Files Of Type list arrow, click XML Files, locate and select the XML file, and then click Insert.




Show Me. Microsoft Office Word 2003. See it Done, Do It Yourself
Show Me. Microsoft Office Word 2003. See it Done, Do It Yourself
ISBN: N/A
EAN: N/A
Year: 2002
Pages: 310

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net