Show All

# useTransform Element

Specifies that the upgrade will be handled by an XSL Transformation (XSLT) supplied by the newer version of the form template.

## Type

    xsd:complexType

## Structure

Name | Description
--- | ---
maxToVersionUpgrade | (Optional attribute) Inclusive value for the latest form that needs to be upgraded.
minVersionToUpgrade | (Required attribute) Inclusive value for the oldest form that can be upgraded.
transform | (Required attribute) Specifies the XSLT file name relative to the form template.

## Remarks

The useTransform element is an optional element of the documentVersionUpgrade element.

When a user fills out a form, Microsoft Office InfoPath 2003 automatically runs the specified XSLT on the form's underlying XML document and uses the output as the XML data to be edited, if the version of the form is greater than or equal to the minVersionToUpgrade attribute and the version is less than or equal to the maxVersionToUpgrade attribute.

## Example

The following is an example of the useTransform element:

    <xsf:documentVersionUpgrade>
       <xsf:useTransform
          transform="upgrade.xsl"
          minVersionToUpgrade="0.0.0.0"
          maxVersionToUpgrade="1.0.0.5"/>
    </xsf:documentVersionUpgrade>

©2003-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