DefaultTransform Property

Microsoft Word Visual Basic

DefaultTransform Property

Returns an XSLTransform object that represents the default Extensible Stylesheet Language Transformation (XSLT) file to use when opening a document from an XML schema for a particular namespace.

expression.DefaultTransform

expression    Required. An expression that returns an XMLNamespace object.

Example

The following example returns the default XSLT for the first schema in the Schema Library that Microsoft Word will use to open XML files associated with that schema's namespace. This example assumes that the first schema has one or more applied XSLT files.

    Dim objXSLT As XSLTransform

Set objXSLT = Application.XMLNamespaces(1).DefaultTransform