# caption Attribute (initialXmlDocument Element)

Defines the text string to be used as the name of the form in the Template Gallery and in the most recently used list.

## Type

    xsf:xdTitle

## Remarks

The caption attribute is a required attribute of the initialXmlDocument element.

If this attribute is not specified, the name of the form is used as the caption. The maximum size for the caption text string is 255 characters.

## Example

The following is an example of the caption attribute as it is used in the initialXmlDocument element:

    <xsf:fileNew>
       <xsf:initialXmlDocument
          caption="Travel Report"
          href="TravelReportTemplate.xml"/>
    </xsf:fileNew>

©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