Mapping Element

Applies to: SharePoint Foundation 2010

Used in an HtmlTransInfo.xml file (\Program Files\Common Files\Microsoft Shared\web server extensions\12TEMPLATE\XML) to direct requests to the URL for handling the requests when the client computer does not have the 2007 Microsoft Office system installed.

<Mapping
  AcceptHeader = "Text"
  Extension = "Text"
  HandlerUrl = "Text"
  ProgId = "Text">
</Mapping>

Attributes

Attribute

Description

AcceptHeader

Optional Text. Specifies the application to use to open a file in a document library. If HTML viewing is enabled, Microsoft SharePoint Foundation compares the value of this attribute with the Accept-Header HTTP header of the request, and either opens the document in its native format through the specified application, or offers to convert the document to HTML. For more information, see Programming with the Microsoft.HtmlTrans Namespace.

Extension

Optional Text. Specifies the file name extension for the document type.

HandlerUrl

Optional Text. Specifies the URL of a converter program used by the server to handle a request when the client computer does not have Microsoft Office system installed.

ProgId

Optional Text. Specifies the name of the ActiveX control used to open the type of document.

Child Elements

None

Parent Elements

HtmlTrInfo

Occurrences

Minimum: 0

Maximum: Unbounded