XSLT Inference Tool [Word 2003 XML Reference] --  Microsoft Office Word 2003 XML Software Development Kit

XSLT Inference Tool [Word 2003 XML Reference]

The XSLT Inference tool helps you easily create XSL Transformations (XSLT) that quickly transform XML files into documents with complex and rich formatting. The process begins with a raw XML file that is representative of the XML files you wish to transform. This file is opened in Microsoft© Office Word 2003 and each of its XML elements is formatted the same way you want it formatted in your other similar XML files, in effect making it into a formatting template. The saved version of this file is called the seed document, and is used as the parameter to the XSLT Inference Tool. For detailed information on how to create a seed document, see Creating a Seed Document.

Instructions on how to use the tool are below. The tool creates a .XSL file named after the seed file. For example, if the seed file is named mySeedFile.xml, the transformation created will be named mySeedFile.xsl.

wml2xslt filename [options]
Argument Description
filename The name of the seed document to process.
Option Description
-dbstore Specifies that the tool runs in data binding mode. See Creating a Seed Document for details on data binding.
-mx Specifies that the resulting transform contains templates for mixed content (bitmaps, headers, footers, etc.) and all leaf nodes.
-nf Specifies that some XSLT is always produced, regardless of warnings.
-nsnamespace Specifies the namespace to process in the seed document.
-nsa Specifies that all namespaces in the seed document are to be processed.
-ooutputfilename Specifies the name of the file to print to.
-oinode Specifies that the children of node are ordered the same way they are ordered in the input XML file after the resulting transformation is applied to it (default).
-osnode Specifies that the children of node are ordered the same way they are ordered in the seed document after the resulting transformation is applied.
-v Specifies that verbose output is produced.

Note  If two options conflict, then the rightmost is used.

©2004 Microsoft Corporation. All rights reserved. Permission to copy, display and distribute this document is available at: http://msdn.microsoft.com/library/en-us/odcXMLRef/html/odcXMLRefLegalNotice.asp