Share via


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 2007 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>