# name Attribute (view Element)

Identifies the view for object model calls when switching views, and for specifying the default view.

## Type

    xsf:xdViewName

## Remarks

The name attribute is a required attribute of the view element.

## Example

The following is an example of the name attribute as it is used in the view element:

    <xsf:views default="View">
       <xsf:view name="View" caption="View">
          <xsf:mainpane transform="view1.xsl"></xsf:mainpane>
          ...
       </xsf:view>
    </xsf:views>

©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